{"id":43877563,"url":"https://github.com/pavalso/potage","last_synced_at":"2026-02-06T14:46:40.059Z","repository":{"id":229698066,"uuid":"777411863","full_name":"pavalso/potage","owner":"pavalso","description":"A simple Python package that provides an easy way to use Dependency Injection in your projects.","archived":false,"fork":false,"pushed_at":"2025-02-09T20:45:14.000Z","size":203,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-01T17:23:33.790Z","etag":null,"topics":["beans","dependency-injection","dependency-injection-container","dependency-injection-framework","design-patterns","development","factory","ioc","ioc-container","potage","python","python-3","python3","utility"],"latest_commit_sha":null,"homepage":"https://pypotage.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pavalso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-25T20:00:06.000Z","updated_at":"2024-12-08T10:43:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"927e5a6f-03c7-496c-9842-77c81a84d12d","html_url":"https://github.com/pavalso/potage","commit_stats":null,"previous_names":["pavalso/potage"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/pavalso/potage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavalso%2Fpotage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavalso%2Fpotage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavalso%2Fpotage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavalso%2Fpotage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pavalso","download_url":"https://codeload.github.com/pavalso/potage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavalso%2Fpotage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29165110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T14:37:12.680Z","status":"ssl_error","status_checked_at":"2026-02-06T14:36:22.973Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["beans","dependency-injection","dependency-injection-container","dependency-injection-framework","design-patterns","development","factory","ioc","ioc-container","potage","python","python-3","python3","utility"],"created_at":"2026-02-06T14:46:39.433Z","updated_at":"2026-02-06T14:46:40.051Z","avatar_url":"https://github.com/pavalso.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pypotage\n\n[![img](https://img.shields.io/pypi/v/pypotage.svg)](https://pypi.org/project/pypotage/)\n[![img](https://img.shields.io/pypi/pyversions/pypotage.svg)](https://pypi.org/project/pypotage/)\n![python-package-yml](https://github.com/pavalso/potage/actions/workflows/python-package.yml/badge.svg)\n[![codecov](https://codecov.io/github/pavalso/potage/graph/badge.svg?token=GU0RXRS1E4)](https://codecov.io/github/pavalso/potage)\n\nA simple Python package that provides an easy way to use Dependency Injection in your projects.\n\n![alt text](https://imgur.com/7eK0mHJ.png)\n\n## Key Features\n\n- Easy to use\n- Supports both function and class-based dependency \ninjection\n- Allows customizing the way dependencies are resolved\n- Allows for the use of custom containers\n\n## Installing\n\nTo install the latest **pypotage** version, run the following command:\n````bash\npython -m pip install -U pypotage\n````\n\n#### Development\n\nTo install the development version:\n````bash\ngit clone https://github.com/pavalso/potage.git\ncd potage\npython -m pip install -U .\n````\n\n## Quick Examples\n\n#### Basic usage\n````python\nimport pypotage\nimport logging\n\n@pypotage.prepare\ndef logger():\n    logging.basicConfig(level=logging.DEBUG)\n    return logging.getLogger(__name__)\n\npypotage.cook(logging.Logger).take_out().info(\"Hello World!\")\n````\n\n#### Using classes\n````python\nimport pypotage\n\nclass A:\n    def __init__(self):\n        ...\n\n@pypotage.prepare\nclass B(A):\n    def __init__(self):\n        ...\n\npypotage.cook(A).take_out()  # returns an instance of B\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpavalso%2Fpotage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpavalso%2Fpotage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpavalso%2Fpotage/lists"}