{ "info": { "author": "Philippe Duval", "author_email": "t4rk@outlook.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# precept\n\n[![CircleCI](https://circleci.com/gh/T4rk1n/precept.svg?style=svg)](https://circleci.com/gh/T4rk1n/precept)\n[![Documentation Status](https://readthedocs.org/projects/precept/badge/?version=latest)](https://precept.readthedocs.io/en/latest/?badge=latest)\n[![Coverage Status](https://coveralls.io/repos/github/T4rk1n/precept/badge.svg)](https://coveralls.io/github/T4rk1n/precept)\n[![PyPI version](https://badge.fury.io/py/precept.svg)](https://badge.fury.io/py/precept)\n[![LICENSE](https://img.shields.io/github/license/T4rk1n/precept.svg)](./LICENSE)\n[![Downloads](https://pepy.tech/badge/precept)](https://pepy.tech/project/precept)\n\nAsync application framework.\n\n## Install\n\nInstall with pip: `$ pip install precept`\n\n## Usage\n\nBasic:\n```python\nfrom precept import Precept, Command, Argument\n\nclass MyCli(Precept):\n \"\"\"\n The name of the application will be the spinal-case version of \n the name of the class.\n \n Class docstring is added as cli description.\n \"\"\"\n @Command(Argument('argument', type=str))\n async def my_command(self, argument):\n print(argument)\n\ndef cli():\n MyCli().start()\n\nif __name__ == '__main__':\n cli()\n```\n\nFor local testing:\n\n- Set `entry_points.console_script` to `my-cli = my_package.my_cli:cli` in `setup.py`\n- Install locally: `$ pip install -e .`\n- Then call: `$ my-cli my-command hello` -> print `hello`\n\n**[Full documentation](http://precept.readthedocs.io/)**", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/T4rk1n/precept", "keywords": "cli,async", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "precept", "package_url": "https://pypi.org/project/precept/", "platform": "", "project_url": "https://pypi.org/project/precept/", "project_urls": { "Homepage": "https://github.com/T4rk1n/precept" }, "release_url": "https://pypi.org/project/precept/0.6.2/", "requires_dist": null, "requires_python": "", "summary": "Async cli application builder.", "version": "0.6.2" }, "last_serial": 5992925, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "2de4c22e1c21a2818665936ade1e093d", "sha256": "ede31bc2df09bf1690b965887e50299776b2e7ea5e007877e4df16112e0abd1c" }, "downloads": -1, "filename": "precept-0.0.1.tar.gz", "has_sig": false, "md5_digest": "2de4c22e1c21a2818665936ade1e093d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4911, "upload_time": "2019-03-08T03:53:22", "url": "https://files.pythonhosted.org/packages/97/e3/bb56cce00bd15980d3623d22cbd67af12ed2e64ea36d190662abd2dce0c9/precept-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "0c1b3e64f826e5849ec9dfb95506a555", "sha256": "6d9e5083c235c62ee2e1914510d063d1d68c6907d7998a7d79717cffe45c8f13" }, "downloads": -1, "filename": "precept-0.0.2.tar.gz", "has_sig": false, "md5_digest": "0c1b3e64f826e5849ec9dfb95506a555", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4953, "upload_time": "2019-04-27T21:20:46", "url": "https://files.pythonhosted.org/packages/b1/06/a8f9848a3c58c008547f6ba16f7c0477d0fd254992bf199b533201664594/precept-0.0.2.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "a22983ed28d9d65db534b7d0c58f47d1", "sha256": "7f1cb66718984262e081e5fe38f4dbbe6999df40342fdebf6dcb35045fdba0c5" }, "downloads": -1, "filename": "precept-0.1.0.tar.gz", "has_sig": false, "md5_digest": "a22983ed28d9d65db534b7d0c58f47d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9210, "upload_time": "2019-05-05T21:47:06", "url": "https://files.pythonhosted.org/packages/f2/cb/fb008eaef03e096f2ee8caaabc6f5602f887286e126d4bac17110042e8f3/precept-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "6c596eed4b2d2c9585ce18af4bf83d63", "sha256": "61b145796c3c39fd340ffcd045cc9ea4632cdbe58b92611e8c3201da5a366248" }, "downloads": -1, "filename": "precept-0.1.1.tar.gz", "has_sig": false, "md5_digest": "6c596eed4b2d2c9585ce18af4bf83d63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10057, "upload_time": "2019-05-10T01:01:17", "url": "https://files.pythonhosted.org/packages/dd/6e/ab8a07bc836ab275347df2702c8f4c0a655cb178f93d6ee45a98adff616b/precept-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "ab116653c488eafc0cbd294e5d6a719d", "sha256": "2f60ecd3804e892f1a5649339f9d116e8712f4b3a35808c469491ffe81abf5a2" }, "downloads": -1, "filename": "precept-0.2.0.tar.gz", "has_sig": false, "md5_digest": "ab116653c488eafc0cbd294e5d6a719d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13627, "upload_time": "2019-05-26T23:45:42", "url": "https://files.pythonhosted.org/packages/6f/50/a8083153e8145b877d0adb9b3ba4559b2c48d3307eaf7444b59be0c027e6/precept-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "347050ed2b3f2e047dfad0b03ccdb959", "sha256": "edacda102fb30d07777b004cd54252dc697991eab480bc5abc4e9daea63dd34f" }, "downloads": -1, "filename": "precept-0.2.1.tar.gz", "has_sig": false, "md5_digest": "347050ed2b3f2e047dfad0b03ccdb959", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13713, "upload_time": "2019-05-27T23:14:19", "url": "https://files.pythonhosted.org/packages/0b/4c/eff058be8c6221e7db02fe3b2f6c269b3c3cbd261ec024452dc7eb5c3baa/precept-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "f38e71bd189c37829b862b003ee022a6", "sha256": "80105fa101be7d378d095c6ab8f6a4f31cb6a3fdc65795154124e827a0da3275" }, "downloads": -1, "filename": "precept-0.3.0.tar.gz", "has_sig": false, "md5_digest": "f38e71bd189c37829b862b003ee022a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14555, "upload_time": "2019-06-02T19:47:17", "url": "https://files.pythonhosted.org/packages/df/29/d43bee4445c893a64231e2ef2d1da279ed0d251134b8a8df634d4a0fab15/precept-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "eadafbf494c082a400ccd4feef256bf1", "sha256": "6e8549cb3629415e79fb24508a4dfeab7a524e2b0b170e21c897b67127f9ea8d" }, "downloads": -1, "filename": "precept-0.3.1.tar.gz", "has_sig": false, "md5_digest": "eadafbf494c082a400ccd4feef256bf1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14415, "upload_time": "2019-06-23T17:40:24", "url": "https://files.pythonhosted.org/packages/9c/f3/106b98fdfb9b38e80a0ee5d4322b025c6a2dc755c6a43bcea9f3c5d9f5e1/precept-0.3.1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "46a7957c417c4aaf8d089c30bdd09cb0", "sha256": "9106b0300241f3162ef21dd9d714486eb5ac2518d4bc335d8b84a458b62888fa" }, "downloads": -1, "filename": "precept-0.4.0.tar.gz", "has_sig": false, "md5_digest": "46a7957c417c4aaf8d089c30bdd09cb0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15414, "upload_time": "2019-07-06T14:15:54", "url": "https://files.pythonhosted.org/packages/31/d3/4e637e8a97f9fdc1dca7d2ae76b054bd12018bc1b6434e26f84cd5e99f06/precept-0.4.0.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "091873accc0272310f2ee612420a7d35", "sha256": "7a736d014cf927701832be3b24d789645f3f5f4f730b75bfca04134698564ec5" }, "downloads": -1, "filename": "precept-0.5.0.tar.gz", "has_sig": false, "md5_digest": "091873accc0272310f2ee612420a7d35", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17205, "upload_time": "2019-07-30T01:16:05", "url": "https://files.pythonhosted.org/packages/ad/04/a0c725707b7100d80a00a7234559c78b2cd137c9bc8d9edf0c2c62a1ca1c/precept-0.5.0.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "e33bae49553b22c0ec2a6424e3f87cbc", "sha256": "f6aad92af98b8ce8bbdc62f35f63244b2f4020633c044caedd973ca10537a33b" }, "downloads": -1, "filename": "precept-0.5.1.tar.gz", "has_sig": false, "md5_digest": "e33bae49553b22c0ec2a6424e3f87cbc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17667, "upload_time": "2019-08-11T13:50:37", "url": "https://files.pythonhosted.org/packages/99/61/c261819a2dcd3f070f02cbc13453ca3862ea6bcf5e48322c8c83ebdcf903/precept-0.5.1.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "07f4700fb1908917f69483469ee716bd", "sha256": "13215bc1e74d50b8b7dd85abd261a0f74850e1fba4d3135fb275b127b48665b1" }, "downloads": -1, "filename": "precept-0.6.0.tar.gz", "has_sig": false, "md5_digest": "07f4700fb1908917f69483469ee716bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18416, "upload_time": "2019-08-17T21:43:38", "url": "https://files.pythonhosted.org/packages/b9/ad/5e8d1f4efc5a1244302670b0230527482a6e4aee12607d196f8d63a00b86/precept-0.6.0.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "4204ed73de85d38d82d60ca689139b0e", "sha256": "5d73218a1dfd4acea2119b6970912040ae0fa91a2faeb93f6a547260489f5244" }, "downloads": -1, "filename": "precept-0.6.1.tar.gz", "has_sig": false, "md5_digest": "4204ed73de85d38d82d60ca689139b0e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18595, "upload_time": "2019-08-18T03:20:19", "url": "https://files.pythonhosted.org/packages/7d/4a/d355328927593be8fdd82a37386cdc2bbab9ffa62ebd31c3a323397aeb0e/precept-0.6.1.tar.gz" } ], "0.6.2": [ { "comment_text": "", "digests": { "md5": "746038152f583f8bed545f4fa0e0f6b8", "sha256": "d58be9406eb1ec7dcc32d95abbed12be1285bb8d3ff5de626338c1f228ae091a" }, "downloads": -1, "filename": "precept-0.6.2.tar.gz", "has_sig": false, "md5_digest": "746038152f583f8bed545f4fa0e0f6b8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18695, "upload_time": "2019-10-18T00:20:58", "url": "https://files.pythonhosted.org/packages/21/4d/a0b0b9fb2a85e37728a4ba19075f0ecfdc5cce544fe37a04b0cc10397858/precept-0.6.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "746038152f583f8bed545f4fa0e0f6b8", "sha256": "d58be9406eb1ec7dcc32d95abbed12be1285bb8d3ff5de626338c1f228ae091a" }, "downloads": -1, "filename": "precept-0.6.2.tar.gz", "has_sig": false, "md5_digest": "746038152f583f8bed545f4fa0e0f6b8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18695, "upload_time": "2019-10-18T00:20:58", "url": "https://files.pythonhosted.org/packages/21/4d/a0b0b9fb2a85e37728a4ba19075f0ecfdc5cce544fe37a04b0cc10397858/precept-0.6.2.tar.gz" } ] }