├── .gitignore ├── LICENSE ├── README.md ├── demos └── web │ ├── apprun.py │ ├── bktool.py │ ├── logic │ ├── __init__.py │ └── demo.py │ ├── restful │ ├── __init__.py │ └── index.py │ ├── service.py │ ├── setting.py │ └── utest │ └── __init__.py ├── kpages ├── __init__.py ├── api2doc.py ├── app.py ├── cache.py ├── consistenthash.py ├── context.py ├── kpages_init.py ├── kpages_rpc.py ├── kpages_service.py ├── kpages_tool.py ├── kpages_web.py ├── log.py ├── mongo_util.py ├── router.py ├── service.py ├── settings.py ├── utest.py ├── utility.py ├── web.py └── web.zip ├── setup.py └── tests ├── __init__.py ├── run_all_test.sh ├── test_router.py └── test_utility.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/README.md -------------------------------------------------------------------------------- /demos/web/apprun.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/demos/web/apprun.py -------------------------------------------------------------------------------- /demos/web/bktool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/demos/web/bktool.py -------------------------------------------------------------------------------- /demos/web/logic/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | -------------------------------------------------------------------------------- /demos/web/logic/demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/demos/web/logic/demo.py -------------------------------------------------------------------------------- /demos/web/restful/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | -------------------------------------------------------------------------------- /demos/web/restful/index.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/demos/web/restful/index.py -------------------------------------------------------------------------------- /demos/web/service.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/demos/web/service.py -------------------------------------------------------------------------------- /demos/web/setting.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/demos/web/setting.py -------------------------------------------------------------------------------- /demos/web/utest/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | -------------------------------------------------------------------------------- /kpages/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/kpages/__init__.py -------------------------------------------------------------------------------- /kpages/api2doc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/kpages/api2doc.py -------------------------------------------------------------------------------- /kpages/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/kpages/app.py -------------------------------------------------------------------------------- /kpages/cache.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/kpages/cache.py -------------------------------------------------------------------------------- /kpages/consistenthash.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/kpages/consistenthash.py -------------------------------------------------------------------------------- /kpages/context.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/kpages/context.py -------------------------------------------------------------------------------- /kpages/kpages_init.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/kpages/kpages_init.py -------------------------------------------------------------------------------- /kpages/kpages_rpc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/kpages/kpages_rpc.py -------------------------------------------------------------------------------- /kpages/kpages_service.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/kpages/kpages_service.py -------------------------------------------------------------------------------- /kpages/kpages_tool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/kpages/kpages_tool.py -------------------------------------------------------------------------------- /kpages/kpages_web.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/kpages/kpages_web.py -------------------------------------------------------------------------------- /kpages/log.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/kpages/log.py -------------------------------------------------------------------------------- /kpages/mongo_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/kpages/mongo_util.py -------------------------------------------------------------------------------- /kpages/router.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/kpages/router.py -------------------------------------------------------------------------------- /kpages/service.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/kpages/service.py -------------------------------------------------------------------------------- /kpages/settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/kpages/settings.py -------------------------------------------------------------------------------- /kpages/utest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/kpages/utest.py -------------------------------------------------------------------------------- /kpages/utility.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/kpages/utility.py -------------------------------------------------------------------------------- /kpages/web.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/kpages/web.py -------------------------------------------------------------------------------- /kpages/web.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/kpages/web.zip -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/setup.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | -------------------------------------------------------------------------------- /tests/run_all_test.sh: -------------------------------------------------------------------------------- 1 | python2.7 -m unittest discover -s ./ -p "test_*.py" -v 2 | -------------------------------------------------------------------------------- /tests/test_router.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/tests/test_router.py -------------------------------------------------------------------------------- /tests/test_utility.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comger/kpages/HEAD/tests/test_utility.py --------------------------------------------------------------------------------