{"id":19445182,"url":"https://github.com/thoth2357/poetryize","last_synced_at":"2025-04-25T01:31:12.205Z","repository":{"id":205963596,"uuid":"715234814","full_name":"thoth2357/Poetryize","owner":"thoth2357","description":"💻 Poetryize: A Typer-based CLI tool that converts requirements.txt to pyproject.toml, streamlining Python dependency management with Poetry. Enhances project maintainability through modern tooling integration.","archived":false,"fork":false,"pushed_at":"2024-01-25T12:25:52.000Z","size":74,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T17:52:45.335Z","etag":null,"topics":["poetry","python-tools"],"latest_commit_sha":null,"homepage":"","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/thoth2357.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}},"created_at":"2023-11-06T18:28:20.000Z","updated_at":"2024-12-30T22:28:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"33e4d65c-7d2d-4a70-9e5d-ff1b32053348","html_url":"https://github.com/thoth2357/Poetryize","commit_stats":null,"previous_names":["thoth2357/poetry-convert"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoth2357%2FPoetryize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoth2357%2FPoetryize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoth2357%2FPoetryize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoth2357%2FPoetryize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thoth2357","download_url":"https://codeload.github.com/thoth2357/Poetryize/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250737923,"owners_count":21479109,"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":["poetry","python-tools"],"created_at":"2024-11-10T16:09:37.051Z","updated_at":"2025-04-25T01:31:11.932Z","avatar_url":"https://github.com/thoth2357.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Tests](https://github.com/thoth2357/Poetryize/actions/workflows/python-app.yml/badge.svg)](https://github.com/thoth2357/Poetryize/actions/workflows/python-app.yml) [![Coverage Status](https://coveralls.io/repos/github/thoth2357/Poetryize/badge.svg?branch=main)](https://coveralls.io/github/thoth2357/Poetryize?branch=main) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white)](https://github.com/pre-commit/pre-commit) [![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/Poetryize)\n\n# Poetryize\n\nPoetryize is a command-line tool built with Typer that facilitates the conversion of requirements.txt files into pyproject.toml files. This allows seamless integration with Poetry, a dependency manager for Python projects. If you've ever found yourself wanting to use Poetry for dependency management but stuck with a project that uses requirements.txt, Poetryize is here to help.\n\n## Features\n\n- **Seamless Conversion**: Poetryize effortlessly transforms requirements.txt files into pyproject.toml files compatible with Poetry.\n- **Dependency Initialization**: Poetryize automatically initializes Poetry if a pyproject.toml file is not found in the project, streamlining the conversion process.\n- **Error Handling**: Poetryize includes error-handling mechanisms to address issues with the specified requirements file, providing informative messages to guide users.\n- **Versatile Support**: Poetryize supports a range of requirements.txt formats, including:\n  - `package==version`\n  - `package\u003e=version`\n  - `package\u003c=version`\n  - `package~=version`\n  - `package`\n\n\n## Installation\n\n```bash\n  pip install poetryize\n```\n\n## Example/Usage\n#### 1. Using Poetryize on project folder with requirements.txt file\n```\n├── create_db.py\n├── database.py\n├── main.py\n├── models.py\n├── __pycache__\n│   ├── database.cpython-310.pyc\n│   ├── main.cpython-310.pyc\n│   └── models.cpython-310.pyc\n├── requirements.txt\n└── test_main.http\n```\n- Run poetryize on the project folder, while in the same directory as the requirements.txt file\n```bash\n  poetryize\n```\n\n-\n\n**Note**: Using Poetryize without any requirement.txt path argument would automatically use the requirements.txt file in the project folder.\n\n#### 2. Using Poetryize on a project with a requirements.txt file in a different folder\n``` bash\n  poetryize /path/to/requirements.txt\n```\n\n\n## Demo\n\u003cvideo src='https://github.com/thoth2357/Poetryize/assets/98170427/b2a72dad-c484-4cbf-b4c4-2923eb4be59a' height=50\u003e\u003c/video\u003e\n\n## License\nThis project is licensed under the [MIT](https://choosealicense.com/licenses/mit/) License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoth2357%2Fpoetryize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthoth2357%2Fpoetryize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoth2357%2Fpoetryize/lists"}