{"id":39850417,"url":"https://github.com/miguelgf/flask-pypendency","last_synced_at":"2026-01-18T13:41:46.453Z","repository":{"id":37988359,"uuid":"251089362","full_name":"miguelgf/flask-pypendency","owner":"miguelgf","description":"Flask Extension for Pypendency","archived":false,"fork":false,"pushed_at":"2025-12-06T06:07:28.000Z","size":97,"stargazers_count":4,"open_issues_count":23,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-09T23:49:34.817Z","etag":null,"topics":["flask","flask-extension","python3"],"latest_commit_sha":null,"homepage":null,"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/miguelgf.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-03-29T17:21:16.000Z","updated_at":"2021-12-09T15:48:11.000Z","dependencies_parsed_at":"2023-01-19T13:32:52.695Z","dependency_job_id":"3d597156-4256-42e4-9c7d-0ce0764acd9a","html_url":"https://github.com/miguelgf/flask-pypendency","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/miguelgf/flask-pypendency","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miguelgf%2Fflask-pypendency","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miguelgf%2Fflask-pypendency/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miguelgf%2Fflask-pypendency/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miguelgf%2Fflask-pypendency/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miguelgf","download_url":"https://codeload.github.com/miguelgf/flask-pypendency/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miguelgf%2Fflask-pypendency/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28536773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T13:04:05.990Z","status":"ssl_error","status_checked_at":"2026-01-18T13:01:44.092Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["flask","flask-extension","python3"],"created_at":"2026-01-18T13:41:45.892Z","updated_at":"2026-01-18T13:41:46.446Z","avatar_url":"https://github.com/miguelgf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://github.com/miguelgf/flask-pypendency/workflows/Tests/badge.svg)\n[![PyPI version](https://badge.fury.io/py/Flask-Pypendency.svg)](https://badge.fury.io/py/Flask-Pypendency)\n\n# Flask pypendency extension\nFlask extension for [Pypendency](https://github.com/Feverup/pypendency). \nPypendency is a dependency injection library for python 3.6+.\n\n## Installation\nTo install from source, download the source code, then run this:\n\n```bash\npython setup.py install\n```\n\nOr install with pip:\n    \n```bash\npip install Flask-Pypendency\n```\n\n## Integration with Flask\nAdding the extension to your Flask app is simple:\n\n```python\nfrom flask import Flask\nfrom flask_pypendency import Pypendency\n\napp = Flask(__name__)\npypendency = Pypendency(app)\n```\n\n## Usage\n\nAnywhere in your app, you will be able to access the container using the app\n\n```python\nfrom flask import current_app as app\n\n@app.route('/hello')\ndef hello():\n    service = pypendency.container.get('my.service')\n    \n    return service.say_hello()\n```\n\n## Configuration\n\nThe Flask App could be configure before the `init_app` of Flask-Pypendency, with the following parameteres:\n\n##### `PYPENDENCY_DI_FOLDER_NAME`\n\u003e Specify the name of the folder containing the definitions of services, it should be the same across all\n\u003e the app (if more than one path is defined).\n\u003e\n\u003e Default: `_dependency_injection`\n\n##### `PYPENDENCY_DISCOVER_PATHS`\n\u003e Iterable of absolute paths where to search for definitions of services\n\u003e\n\u003e Default: [Flask's app root path](https://flask.palletsprojects.com/en/1.1.x/api/#flask.Flask.root_path)\n\n#### Examples\nThe file `test/test_flask_pypendency.py` has a end-to-end test that shows how the extension could\nbe used on a real Flask app.\n\n## Contributing / Running project locally\nBuild the docker image:\n```bash\ndocker build . -t flask-pypendency-dev\n```\n\nRun tests:\n```bash\ndocker run -v $(pwd)/.:/usr/src/app flask-pypendency-dev bash -c \"pipenv run make run-tests\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiguelgf%2Fflask-pypendency","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiguelgf%2Fflask-pypendency","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiguelgf%2Fflask-pypendency/lists"}