{"id":16631786,"url":"https://github.com/rande/python-simple-ioc","last_synced_at":"2025-03-21T15:31:26.098Z","repository":{"id":7387460,"uuid":"8715921","full_name":"rande/python-simple-ioc","owner":"rande","description":"A simple Python IOC based on Symfony2 Dependency Component","archived":false,"fork":false,"pushed_at":"2014-09-14T23:44:38.000Z","size":704,"stargazers_count":24,"open_issues_count":0,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-18T02:44:15.676Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://python-ioc.readthedocs.org/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rande.png","metadata":{"files":{"readme":"README.txt","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-11T23:50:49.000Z","updated_at":"2020-10-30T18:36:18.000Z","dependencies_parsed_at":"2022-08-19T14:00:28.847Z","dependency_job_id":null,"html_url":"https://github.com/rande/python-simple-ioc","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rande%2Fpython-simple-ioc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rande%2Fpython-simple-ioc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rande%2Fpython-simple-ioc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rande%2Fpython-simple-ioc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rande","download_url":"https://codeload.github.com/rande/python-simple-ioc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244822652,"owners_count":20516144,"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":[],"created_at":"2024-10-12T04:56:01.129Z","updated_at":"2025-03-21T15:31:25.541Z","avatar_url":"https://github.com/rande.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"============================================\nPython Simple Dependency Injection Container\n============================================\n\nThis project is a simple port of the Symfony2 DependencyInjection lib available at https://github.com/symfony/DependencyInjection\n\nStatus: Work In Progress\n\nUsage\n-----\n\n- Create a services.yml file, the file will contains different service definiton such as\n\n.. code-block:: yaml\n\n    parameters:\n        foo.bar: argument 1\n\n    services:\n        fake:\n            class: tests.ioc.service.Fake\n            arguments: \n                - \"%foo.bar%\"\n            kargs:\n                param: here a parameter\n            calls:\n                 - [ set_ok, [ false ]]\n                 - [ set_ok, [ true ], {arg2: \"arg\"} ]\n\n        foo:\n            class: tests.ioc.service.Foo\n            arguments: [\"@fake\", \"#@weak_reference\"]\n            kargs: {}\n\n        weak_reference:\n            class: tests.ioc.service.WeakReference\n\n\nThen to use and access a service just do\n\n.. code-block:: python\n\n    import ioc\n\n    container = ioc.build(['services.yml'])\n\n    foo = container.get('foo')\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frande%2Fpython-simple-ioc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frande%2Fpython-simple-ioc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frande%2Fpython-simple-ioc/lists"}