{ "info": { "author": "HJ", "author_email": "hujun.qu@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Build Tools", "Topic :: Utilities" ], "description": "\nYoutiao\n-------\n\nYoutiao is a project for Micro-Service scaffold generation and provides\na set of related tools.\n\n--------------\n\n- `Prerequisites <#prerequisites>`__\n- `Installation <#installation>`__\n- `Usage <#usage>`__\n- `Project Init <#project-init>`__\n- `Docker image build <#docker-image-build>`__\n- `gRPC protobuf file compile <#grpc-protobuf-file-compile>`__\n- `Rancher deployment (CI/CD) <#rancher-deployment-(CI/CD)>`__\n- `About \"Youtiao\" <#about-%22youtiao%22>`__\n- `Support the project <#support-the-project>`__\n\nPrerequisites\n=============\n\nYoutiao requires python version >= 3.6.0. If you don't have appropriate\npython version installed on your computer, we recommand use\n`pyenv `__ to prepare one.\n\nInstallation\n============\n\nFrom pypi:\n\n::\n\n pip install -U Youtiao\n\nFrom source code:\n\n::\n\n git clone git@github.com:Hujun/youtiao.git && cd Youtiao && python setup.py install\n\nUsage\n=====\n\nWhen you successfully installed youtiao in your python environment, type\n``youtiao`` or ``youtiao \u2014help`` in your console, you will see following\noutputs:\n\n::\n\n Usage: youtiao [OPTIONS] COMMAND [ARGS]...\n\n Micro Service Toolkit\n\n Options:\n --help Show this message and exit.\n\n Commands:\n build_image Build docker image\n init Generate Python service boilerplate\n protoc Shortcut of grpc_tools.protoc to compile...\n rancher_deploy Deploy using rancher (v1.6) API (v2.0 beta)\n\nYou can get detailed guide for each command if you type:\n\n::\n\n youtiao [command] --help\n\nProject init\n============\n\nCreate a new project by command:\n\n::\n\n youtiao init --language=python [directory]\n\nA dialog will be launched for service name and service mode\nconfirmation. If everything goes well, a project skeleton will be\ngenerated. The command will not generate any file under given directory\npath if the process is abort or any exception is raised.\n\nNow available language and service templates:\n\n+------------------------+--------------------+\n| Programming Language | Servcie Template |\n+========================+====================+\n| Python | HTTP |\n+------------------------+--------------------+\n| Python | gRPC |\n+------------------------+--------------------+\n\nDocker image build\n==================\n\n::\n\n Usage: youtiao build_image [OPTIONS]\n\n Build docker image\n\n Options:\n --project-name TEXT project name [required]\n --commit-ref-name TEXT name of git branch or tag [required]\n --commit-sha TEXT git commit hash [required]\n --workdir DIRECTORY [required]\n --registry-url TEXT Docker registry URL\n --help Show this message and exit.\n\nThis command is just a wrapper of docker engine HTTP API using official\ndocker python package. You can use it in some CI/CD scenarios when\ndocker native shell commands are not available.\n\ngRPC protobuf file compile\n==========================\n\n::\n\n Usage: youtiao protoc [OPTIONS]\n\n Shortcut of grpc_tools.protoc to compile .proto file.\n\n Options:\n --proto-path PATH path of protobuf file [required]\n --out DIRECTORY output files location\n --help Show this message and exit.\n\nWrapper of grpcio tool.\n\nRancher deployment (CI/CD)\n==========================\n\n::\n\n Usage: youtiao rancher_deploy [OPTIONS]\n\n Deploy using rancher (v1.6) API (v2.0 beta)\n\n Options:\n --rancher-url TEXT rancher server API endpoint URL [required]\n --rancher-key TEXT rancher account or environment API access\n key [required]\n --rancher-secret TEXT rancher account or environment API secret\n corresponding to the access key [required]\n --rancher-env TEXT used to specify environemnt if account key\n is provided\n --stack TEXT stack name defined in rancher [required]\n --service TEXT service name defined in rancher [required]\n --batch-size INTEGER number of containers to upgrade at once\n --batch-interval INTEGER interval (in second) between upgrade batches\n --sidekicks / --no-sidekicks upgrade sidekicks services at the same time\n --start-before-stopping / --no-start-before-stopping\n start new containers before stopping the old\n ones\n --help Show this message and exit.\n\nYou can have more details about Rancher CI/CD in your\n`blog `__.\n\nAbout \"Youtiao\"\n===============\n\n`\"Youtiao\" `__ is a long\ngolden-brown deepfried strip of dough eaten in China and (by a variety\nof other names) in other East and Southeast Asian cuisines.\nConventionally, youtiao are lightly salted and made so they can be born\nlengthwise in two. Youtiao are normally eaten at breakfast as an\naccompaniment for rice congee, soy milk or regular milk blended with\nsuger.\n\n.. figure:: https://upload.wikimedia.org/wikipedia/commons/thumb/7/78/Youtiao.jpg/500px-Youtiao.jpg\n :alt: youtiao\n\n youtiao\n\nSupport the project\n===================\n\nDonate ETH if you find the project is helpful:\n\n::\n\n 0x7744F44ecB64ce24b09e1F924DD48a4Ada32A835\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Hujun/youtiao", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "Youtiao", "package_url": "https://pypi.org/project/Youtiao/", "platform": "", "project_url": "https://pypi.org/project/Youtiao/", "project_urls": { "Homepage": "https://github.com/Hujun/youtiao" }, "release_url": "https://pypi.org/project/Youtiao/0.0.2/", "requires_dist": [ "click", "colorama", "jinja2", "grpcio-tools", "docker", "requests" ], "requires_python": ">=3.6.0", "summary": "Micro Service Scaffold Generator and Toolkit", "version": "0.0.2" }, "last_serial": 3931002, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "6f4efaefb6d9f524bf0da79d99fe9ed6", "sha256": "244df20b9ca435eb765df7bf6909d2ab1aa35de9b86b0afc33facf6540f37440" }, "downloads": -1, "filename": "Youtiao-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6f4efaefb6d9f524bf0da79d99fe9ed6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 58717, "upload_time": "2018-05-16T06:41:30", "url": "https://files.pythonhosted.org/packages/85/15/703fc2bea3d61e44c80a1808d2115a42bf6783694a78a92b13339513b381/Youtiao-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "792f23a713113ce626297f94c21473c0", "sha256": "163b0c60e83e73ab48a8f99c15dfe3c8609856ff261db39b1239db872cfc01bd" }, "downloads": -1, "filename": "Youtiao-0.0.1-py3.6.egg", "has_sig": false, "md5_digest": "792f23a713113ce626297f94c21473c0", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": ">=3.6.0", "size": 71126, "upload_time": "2018-05-14T07:20:53", "url": "https://files.pythonhosted.org/packages/b4/2e/73e6e1fe43b23e5cedf1c3aa335c98b2bc5dc14771d805d752f70d5234ba/Youtiao-0.0.1-py3.6.egg" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "364f374ede6600dbd762c18cccdca9af", "sha256": "4e78bd3ae629d21e620d64fabe9198832743dd955c80981a2a830d728fe81d06" }, "downloads": -1, "filename": "Youtiao-0.0.2.macosx-10.12-x86_64.tar.gz", "has_sig": false, "md5_digest": "364f374ede6600dbd762c18cccdca9af", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 51017, "upload_time": "2018-06-05T06:29:59", "url": "https://files.pythonhosted.org/packages/6a/01/9e906d5e8e06dae82e6e523e45400943c94acfe1282d157ff076b682ec07/Youtiao-0.0.2.macosx-10.12-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "88acc20e820b2912c04bff739e46e66e", "sha256": "814a08ce9a3b80d104c9720f2e836e14e65b729ba5ccffb2652699809889facc" }, "downloads": -1, "filename": "Youtiao-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "88acc20e820b2912c04bff739e46e66e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 57719, "upload_time": "2018-06-05T06:29:58", "url": "https://files.pythonhosted.org/packages/37/ec/038a39b96f6f7f5a173967136a0a7a515ff109770c3cebf7cfd771ae9137/Youtiao-0.0.2-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "364f374ede6600dbd762c18cccdca9af", "sha256": "4e78bd3ae629d21e620d64fabe9198832743dd955c80981a2a830d728fe81d06" }, "downloads": -1, "filename": "Youtiao-0.0.2.macosx-10.12-x86_64.tar.gz", "has_sig": false, "md5_digest": "364f374ede6600dbd762c18cccdca9af", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 51017, "upload_time": "2018-06-05T06:29:59", "url": "https://files.pythonhosted.org/packages/6a/01/9e906d5e8e06dae82e6e523e45400943c94acfe1282d157ff076b682ec07/Youtiao-0.0.2.macosx-10.12-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "88acc20e820b2912c04bff739e46e66e", "sha256": "814a08ce9a3b80d104c9720f2e836e14e65b729ba5ccffb2652699809889facc" }, "downloads": -1, "filename": "Youtiao-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "88acc20e820b2912c04bff739e46e66e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 57719, "upload_time": "2018-06-05T06:29:58", "url": "https://files.pythonhosted.org/packages/37/ec/038a39b96f6f7f5a173967136a0a7a515ff109770c3cebf7cfd771ae9137/Youtiao-0.0.2-py2.py3-none-any.whl" } ] }