{ "info": { "author": "ducdetronquito", "author_email": "g.paulet@zero-gachis.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "Nurse\n=====\n\n.. image:: https://img.shields.io/badge/license-public%20domain-ff69b4.svg\n :target: https://github.com/ZeroGachis/nurse#license\n\n\n.. image:: https://img.shields.io/badge/pypi-v0.2.1-blue.svg\n :target: https://pypi.org/project/nurse/\n\n\nOutline\n~~~~~~~\n\n1. `Overview `_\n2. `Installation `_\n3. `Usage `_\n4. `License `_\n\n\nOverview\n~~~~~~~~\n\n\n**Nurse** is a **dependency injection framework** with a small API that uses\ntype annotations to manage dependencies in your codebase.\n\n\nInstallation\n~~~~~~~~~~~~\n\n**Nurse** is a Python3-only module that you can install via `Poetry `_\n\n.. code:: sh\n\n poetry add nurse\n\n\nIt can also be installed with `pip`\n.. code:: sh\n\n pip3 install nurse\n\n\nUsage\n~~~~~\n\n**Nurse** stores the available dependencies into a service catalog, that needs to be\nfilled-in generally at the startup of your application.\n\n.. code:: python3\n\n import nurse\n \n # A user defined class that will be used accross your application\n class SSHClient:\n \n def user(self) -> str:\n return \"John Doe\"\n \n # Now, add it to nurse service catalog in order to use it later in your application\n nurse.serve(SSHClient())\n\n\nOnce you filled-in the service catalog with your different component, your can declare them as dependencies\nto any of your class.\n\n.. code:: python3\n\n import nurse\n\n @nurse.inject\n class Server:\n ssh_client: SSHClient\n\n def response(self) -> str:\n return f\"Hello {self.ssh_client.user()} !\"\n \n\n server = Server()\n server.response()\n # Hello John Doe !\n\n\nLicense\n~~~~~~~\n\n**Nurse** is released into the Public Domain. \u00f0\u0178\u017d\u2030\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ZeroGachis/nurse", "keywords": "dependency,injection", "license": "", "maintainer": "ducdetronquito", "maintainer_email": "g.paulet@zero-gachis.com", "name": "nurse", "package_url": "https://pypi.org/project/nurse/", "platform": "", "project_url": "https://pypi.org/project/nurse/", "project_urls": { "Homepage": "https://github.com/ZeroGachis/nurse", "Repository": "https://github.com/ZeroGachis/nurse" }, "release_url": "https://pypi.org/project/nurse/0.2.1/", "requires_dist": null, "requires_python": ">=3.6,<4.0", "summary": "A thoughtful dependency injection framework \ud83d\udc89", "version": "0.2.1" }, "last_serial": 4752247, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "d5b423599233fcd9619a0261ef114262", "sha256": "ae188e3138d8caff788e67a332b291c1004c9ca1b835b6068a15814ab90618c6" }, "downloads": -1, "filename": "nurse-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d5b423599233fcd9619a0261ef114262", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 1072, "upload_time": "2019-01-28T18:05:01", "url": "https://files.pythonhosted.org/packages/50/96/1dc3e1aa6c4d4f814104b13737d8f0cf132cc19e10a78164f2ab14b9565d/nurse-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4d00cd2e076b8469b17b9be0f1668f76", "sha256": "bfb653a52586e619589aa9599e5a4a366d48fa22472a52c6313301ec0eced98f" }, "downloads": -1, "filename": "nurse-0.1.0.tar.gz", "has_sig": false, "md5_digest": "4d00cd2e076b8469b17b9be0f1668f76", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 850, "upload_time": "2019-01-28T18:05:03", "url": "https://files.pythonhosted.org/packages/44/fd/1f247323821f3e3f1f85084fe51e8e270841f2f4f302869dc3c9837e169a/nurse-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "a851959b5fd3f49fa1cb96218e45d424", "sha256": "a8e5f5d99a945a16ad5124a267a17d92d5e91abe394bd2e6a6c7ffaf5f2507ac" }, "downloads": -1, "filename": "nurse-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a851959b5fd3f49fa1cb96218e45d424", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 3066, "upload_time": "2019-01-28T22:22:03", "url": "https://files.pythonhosted.org/packages/da/ae/737056fc12f81dffa47d8eb3e86ab858f10bbde4600c6caa0ec57949dd8e/nurse-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3bb779fdcc1ddadac7371b02c03f778f", "sha256": "b2dc5a4cb669244c7786f22e9d462cdb1d7cffd5c2a567c3b16df9d8c12cd361" }, "downloads": -1, "filename": "nurse-0.2.0.tar.gz", "has_sig": false, "md5_digest": "3bb779fdcc1ddadac7371b02c03f778f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 1524, "upload_time": "2019-01-28T22:22:04", "url": "https://files.pythonhosted.org/packages/c4/16/5027430dfeb83eb49e8e6b85c61d0274c1a9eaae73915e549409cc456975/nurse-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "b06eb54e5c7cfbe9ffed7d0ca8d1d5d7", "sha256": "5b716f74b065c530e818875eb8fe4c671684ee071551ed2303b638b157bf9ba8" }, "downloads": -1, "filename": "nurse-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b06eb54e5c7cfbe9ffed7d0ca8d1d5d7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 3881, "upload_time": "2019-01-28T22:40:42", "url": "https://files.pythonhosted.org/packages/6a/b1/00f23d25c724662bfc722d5e598bd8d5266cf8179f8ab1df373ce1d0561d/nurse-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f6a6b2dc2e39275b19460523bb054d39", "sha256": "972b720b502f62c03e3755bb416bae23e06123b221d47e9bffeb2f695f8d9795" }, "downloads": -1, "filename": "nurse-0.2.1.tar.gz", "has_sig": false, "md5_digest": "f6a6b2dc2e39275b19460523bb054d39", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 2601, "upload_time": "2019-01-28T22:40:43", "url": "https://files.pythonhosted.org/packages/de/0b/431c7082f3f7dcb3b91e50b4bb964bf5a8d46be0080cc3c0366f8865a79d/nurse-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b06eb54e5c7cfbe9ffed7d0ca8d1d5d7", "sha256": "5b716f74b065c530e818875eb8fe4c671684ee071551ed2303b638b157bf9ba8" }, "downloads": -1, "filename": "nurse-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b06eb54e5c7cfbe9ffed7d0ca8d1d5d7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 3881, "upload_time": "2019-01-28T22:40:42", "url": "https://files.pythonhosted.org/packages/6a/b1/00f23d25c724662bfc722d5e598bd8d5266cf8179f8ab1df373ce1d0561d/nurse-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f6a6b2dc2e39275b19460523bb054d39", "sha256": "972b720b502f62c03e3755bb416bae23e06123b221d47e9bffeb2f695f8d9795" }, "downloads": -1, "filename": "nurse-0.2.1.tar.gz", "has_sig": false, "md5_digest": "f6a6b2dc2e39275b19460523bb054d39", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 2601, "upload_time": "2019-01-28T22:40:43", "url": "https://files.pythonhosted.org/packages/de/0b/431c7082f3f7dcb3b91e50b4bb964bf5a8d46be0080cc3c0366f8865a79d/nurse-0.2.1.tar.gz" } ] }