{"id":13501516,"url":"https://github.com/rominf/poetry-version","last_synced_at":"2025-03-29T09:30:41.565Z","repository":{"id":57453877,"uuid":"154793660","full_name":"rominf/poetry-version","owner":"rominf","description":"Python library for extracting version from poetry pyproject.toml file","archived":true,"fork":false,"pushed_at":"2021-11-21T07:47:46.000Z","size":13,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T05:49:30.055Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/rominf.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}},"created_at":"2018-10-26T07:19:59.000Z","updated_at":"2024-11-28T16:34:08.000Z","dependencies_parsed_at":"2022-08-29T10:41:31.917Z","dependency_job_id":null,"html_url":"https://github.com/rominf/poetry-version","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rominf%2Fpoetry-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rominf%2Fpoetry-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rominf%2Fpoetry-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rominf%2Fpoetry-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rominf","download_url":"https://codeload.github.com/rominf/poetry-version/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246166991,"owners_count":20734377,"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-07-31T22:01:40.194Z","updated_at":"2025-03-29T09:30:41.294Z","avatar_url":"https://github.com/rominf.png","language":"Python","funding_links":[],"categories":["Other Tools","Python"],"sub_categories":[],"readme":"# poetry-version (deprecated)\n\n## What to use instead\n\nNow there is a better way to extract the version of the package.\n\nAssuming your package is named `mypackage`:\n```python\nimport importlib.metadata\n\n__version__ = importlib.metadata.version(\"mypackage\")\n```\n\nThis code should work as is if you are using Python \u003e= 3.8.\n\nFor Python 3.6 and 3.7 you need to install a backport: https://pypi.org/project/importlib-metadata/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frominf%2Fpoetry-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frominf%2Fpoetry-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frominf%2Fpoetry-version/lists"}