{ "info": { "author": "Agroptima S.L.", "author_email": "developers@agroptima.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Utilities" ], "description": "# Simple IoC\n\n[![Build Status](https://travis-ci.org/agroptima/simple-ioc.svg)](https://travis-ci.org/agroptima/simple-ioc)\n[![License GPLv3](https://img.shields.io/badge/license-GPLv3-red.svg)](https://opensource.org/licenses/GPL-3.0)\n![Python versions](https://img.shields.io/badge/python-3.x-blue.svg)\n\n## Install\n\n```\n$ pipenv install simple-ioc\n```\n\nor\n\n```\n$ pip install simple-ioc\n```\n\n## Usage\n\nIn order to have the IoC (Inversion of Control) working in your application, you must register your services in the IoC container:\n\n```python\nfrom simple_ioc import Container\n\nclass AService:\n # Your service implementation comes here\n\nContainer().register('an_identifier', lambda: AService())\n```\n\nThen, from any point in your application, you can retrieve the service by calling `get`:\n\n```python\na_service = Container().get('an_identifier')\n```\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/agroptima/simple-ioc/releases", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/agroptima/simple-ioc", "keywords": "python", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "simple-ioc", "package_url": "https://pypi.org/project/simple-ioc/", "platform": "", "project_url": "https://pypi.org/project/simple-ioc/", "project_urls": { "Download": "https://github.com/agroptima/simple-ioc/releases", "Homepage": "https://github.com/agroptima/simple-ioc" }, "release_url": "https://pypi.org/project/simple-ioc/3.0/", "requires_dist": null, "requires_python": "", "summary": "A lightweight library with an implementation of IoC", "version": "3.0" }, "last_serial": 5154774, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "bf8bf27f1d845ca2feb94e98153cc7e3", "sha256": "952e207223f64c06f2aa43d6e5da84267d169adeffe96a9adaecd83c8da3da37" }, "downloads": -1, "filename": "simple_ioc-1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "bf8bf27f1d845ca2feb94e98153cc7e3", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 2428, "upload_time": "2018-07-20T10:26:46", "url": "https://files.pythonhosted.org/packages/99/e7/63d27ac09aeed75aa59302979f8f18d94842112322bd528638121f1f2041/simple_ioc-1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "373f6e33aa91b56a478a063d19600c80", "sha256": "5338519c519ed0e63829db99e7d7c56750827fa5446bd209ea3b77da5284f2d3" }, "downloads": -1, "filename": "simple-ioc-1.0.tar.gz", "has_sig": false, "md5_digest": "373f6e33aa91b56a478a063d19600c80", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1864, "upload_time": "2018-07-20T10:26:47", "url": "https://files.pythonhosted.org/packages/b9/c7/173608f042cef05e4ac280257ab8385fded8b94d731f62204890807eff52/simple-ioc-1.0.tar.gz" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "5ce3d314a537124b42138c2608e0fc16", "sha256": "d3b5a696fd544b937c68e781be91d3291612dd81b5cf4f1c4bc8f6fc1cefdcbc" }, "downloads": -1, "filename": "simple_ioc-2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "5ce3d314a537124b42138c2608e0fc16", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 3914, "upload_time": "2019-02-07T15:46:46", "url": "https://files.pythonhosted.org/packages/b9/48/2d1bd3666c805a66707fab83e630f28747b0288e5ffed1271ea5f91bcd2e/simple_ioc-2.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "70c5eda575325204099e086a245d7a45", "sha256": "a6dcb1a5b83ea88c5baf6cd5f41c5e69e78201672f9e2e84548ce9115dbabadb" }, "downloads": -1, "filename": "simple-ioc-2.0.tar.gz", "has_sig": false, "md5_digest": "70c5eda575325204099e086a245d7a45", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2114, "upload_time": "2019-02-07T15:47:49", "url": "https://files.pythonhosted.org/packages/47/e3/09c7e1c22674000213db5c2fe40b90d208b3699a77aa77677551e8c67c26/simple-ioc-2.0.tar.gz" } ], "3.0": [ { "comment_text": "", "digests": { "md5": "e79329b4cf4adbc3ed8672fd5f7f1d07", "sha256": "fd9d5295781210f7390c8a729ec480477238b6e0fb54cf0f0c74f863ca4f84ff" }, "downloads": -1, "filename": "simple_ioc-3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e79329b4cf4adbc3ed8672fd5f7f1d07", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 14861, "upload_time": "2019-04-17T11:32:08", "url": "https://files.pythonhosted.org/packages/0c/7e/51934ffb497a521d32cb8527ca05a3b899d0711828310083cf8c8ab00fe7/simple_ioc-3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1d177c30149758b3ccced3101fd40369", "sha256": "64a4afda1020d501fc8ec59a2d3d3f6a6a1cae16b9d76ac69cf5288c0f66ea62" }, "downloads": -1, "filename": "simple-ioc-3.0.tar.gz", "has_sig": false, "md5_digest": "1d177c30149758b3ccced3101fd40369", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2114, "upload_time": "2019-04-17T11:32:00", "url": "https://files.pythonhosted.org/packages/d5/99/6bf7da624eec70718d7a3b54606dd59f69a1d24b2bd05d7919e992c58371/simple-ioc-3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e79329b4cf4adbc3ed8672fd5f7f1d07", "sha256": "fd9d5295781210f7390c8a729ec480477238b6e0fb54cf0f0c74f863ca4f84ff" }, "downloads": -1, "filename": "simple_ioc-3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e79329b4cf4adbc3ed8672fd5f7f1d07", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 14861, "upload_time": "2019-04-17T11:32:08", "url": "https://files.pythonhosted.org/packages/0c/7e/51934ffb497a521d32cb8527ca05a3b899d0711828310083cf8c8ab00fe7/simple_ioc-3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1d177c30149758b3ccced3101fd40369", "sha256": "64a4afda1020d501fc8ec59a2d3d3f6a6a1cae16b9d76ac69cf5288c0f66ea62" }, "downloads": -1, "filename": "simple-ioc-3.0.tar.gz", "has_sig": false, "md5_digest": "1d177c30149758b3ccced3101fd40369", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2114, "upload_time": "2019-04-17T11:32:00", "url": "https://files.pythonhosted.org/packages/d5/99/6bf7da624eec70718d7a3b54606dd59f69a1d24b2bd05d7919e992c58371/simple-ioc-3.0.tar.gz" } ] }