{"id":13625874,"url":"https://github.com/xiaowan/pyclient","last_synced_at":"2025-04-16T10:33:24.879Z","repository":{"id":217073254,"uuid":"123104399","full_name":"xiaowan/pyclient","owner":"xiaowan","description":"脚本类快速开发脚手架，集成了mysql/redis/rabbitmq/mongodb/elasticsearch，可快速进行业务开发","archived":false,"fork":false,"pushed_at":"2019-02-09T08:43:07.000Z","size":27,"stargazers_count":51,"open_issues_count":3,"forks_count":22,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-08T15:45:12.073Z","etag":null,"topics":["python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xiaowan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-27T09:20:51.000Z","updated_at":"2024-04-03T15:37:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"e98ffcbd-16cc-4a4b-bc35-f8e9622702dd","html_url":"https://github.com/xiaowan/pyclient","commit_stats":null,"previous_names":["xiaowan/pyclient"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaowan%2Fpyclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaowan%2Fpyclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaowan%2Fpyclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaowan%2Fpyclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiaowan","download_url":"https://codeload.github.com/xiaowan/pyclient/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249228273,"owners_count":21233852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python"],"created_at":"2024-08-01T21:02:04.315Z","updated_at":"2025-04-16T10:33:24.592Z","avatar_url":"https://github.com/xiaowan.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"注意：最近更新的代码中有部分类有个改动，使用方法截图中的代码已经不适用，具体使用方法见controllers目录下的两个demo文件即可\n\n这是一个基于python3.5的脚本开发脚手架，集成了mysql(sqlalchemy), rabbitmq(pika), redis(redis)等常用的中间件，快速开发业务。\n具体的使用方法见 controllers 目录下的 Test.py 文件\n\n**配置环境**  \n此脚手架使用openstack的 oslo.config 作为配置管理，目前区分三个环境，分别是线上环境(conf)，开发环境(debug)，预览环境(pre)。 指定环境有三种方式：\n\n- 方式一：使用 --config-file=conf/xxx.ini 参数来读取指定配置。  \n- 方式二：设置 UNITYMOB_ENVIRON 环境变量，变量值分别为 conf, debug, pre ，分别对应上述三个环境。  \n- 方式三：如果不指定配置文件，也没有设置环境变量，则默认使用conf环境的配置。  \n注意：如果同时设置了方式一和方式二，方式一的优先级级别最高。  \n\n**使用方法**\n- python3.5 cli.py --executer=test/get_all_user\n- test_rabbitmq为一个rabbitmq 的worker端：python3.5 cli.py --executer=test/test_rabbitmq\n\n- 同时也支持给方法传参数，方法如下：\npython3.5 cli.py --executer=plan --args=one,two --kwargs=three:hello\n\n**使用方法截图**\n![Alt text](https://github.com/xiaowan/pyadmin/blob/master/snapshot/logincontroller.jpeg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaowan%2Fpyclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiaowan%2Fpyclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaowan%2Fpyclient/lists"}