Skip to content

Python library to generate Pipfile from pyproject.toml

License

Notifications You must be signed in to change notification settings

Joffreybvn/poetrip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3cab786 · Aug 14, 2022

History

17 Commits
Aug 13, 2022
Aug 13, 2022
Aug 13, 2022
Aug 13, 2022
Aug 13, 2022
Aug 13, 2022
Aug 11, 2022
Aug 13, 2022
Aug 14, 2022
Aug 14, 2022
Aug 13, 2022
Aug 13, 2022
Aug 13, 2022
Aug 13, 2022

Repository files navigation

Poetrip Poetrip

Generate Pipfile from pyproject.toml.

Version License Python Downloads


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.

Installation

Poetrip requires Python 3.6 or greater.

Using pip:

pip install poetrip

Using poetry:

poetry add --dev poetrip

CLI Quickstart

Get a Pipfile from a pyproject.toml:

$ poetrip --from pyproject.toml --to Pipfile

Or simply:

$ poetrip

Takes the pyproject.toml in the current folder and generate a Pipfile.

API Quickstart

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")

About

Python library to generate Pipfile from pyproject.toml

Resources

License

Stars

Watchers

Forks