Generate Pipfile from pyproject.toml.
Source Code: https://github.com/Joffreybvn/poetrip
Pypi: https://pypi.org/project/poetrip/
Poetrip is a small library and CLI to quickly create Pipfile from existing pyproject.toml.
Poetrip requires Python 3.6 or greater.
Using pip:
pip install poetripUsing poetry:
poetry add --dev poetripGet a Pipfile from a pyproject.toml:
$ poetrip --from pyproject.toml --to PipfileOr simply:
$ poetripTakes the pyproject.toml in the current folder and generate a Pipfile.
Get a Pipfile from a pyproject.toml:
from poetrip import PyProject
# Load and transform
pyproject = PyProject.from_file("./pyproject.toml")
pipfile = pyproject.to_pipfile()
# Write to disk
pipfile.to_file("./Pipfile")