Poetryize 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.
- Seamless Conversion: Poetryize effortlessly transforms requirements.txt files into pyproject.toml files compatible with Poetry.
- Dependency Initialization: Poetryize automatically initializes Poetry if a pyproject.toml file is not found in the project, streamlining the conversion process.
- Error Handling: Poetryize includes error-handling mechanisms to address issues with the specified requirements file, providing informative messages to guide users.
- Versatile Support: Poetryize supports a range of requirements.txt formats, including:
package==version
package>=version
package<=version
package~=version
package
pip install poetryize
βββ create_db.py
βββ database.py
βββ main.py
βββ models.py
βββ __pycache__
βΒ Β βββ database.cpython-310.pyc
βΒ Β βββ main.cpython-310.pyc
βΒ Β βββ models.cpython-310.pyc
βββ requirements.txt
βββ test_main.http
- Run poetryize on the project folder, while in the same directory as the requirements.txt file
poetryize
Note: Using Poetryize without any requirement.txt path argument would automatically use the requirements.txt file in the project folder.
poetryize /path/to/requirements.txt
poetryize-demo.mp4
This project is licensed under the MIT License.