Skip to main content

Convert requirements.txt to pyproject.toml

Project description

Req2Toml

Adding the dependencies from requirements.txt to pyproject.toml and poetry.lock with one command 😉

Install

$ pip install req2toml

Usages

The entrypoint of the converter is req2lock

Options

  • -f [required] The path to the requirements.txt
  • --install [optional] By default, it will only update the lock, add this flag to install the dependencies at the same time.
  • --dev [optional] By default, the flag is disable, pass --dev to add packages to dev section.
  • -v: Enable verbose mode to print out the debug logs
# Only update the poetry.lock
$ req2lock -f requirements.txt

# Install
$ req2lock -f requirements.txt --install

# To dev
$ req2lock -f requirements_test.txt --install --dev

Contributing

PR is always welcome <3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chattr_req2toml-1.1.1.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

chattr_req2toml-1.1.1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file chattr_req2toml-1.1.1.tar.gz.

File metadata

  • Download URL: chattr_req2toml-1.1.1.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.28.2 requests-toolbelt/0.10.1 urllib3/1.26.14 tqdm/4.65.0 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.8.10

File hashes

Hashes for chattr_req2toml-1.1.1.tar.gz
Algorithm Hash digest
SHA256 7859789a7896f201b8f0e8d74d5eda69c523440b811e02ce49ad70e35be34a55
MD5 26897729d69946b1c6a86cefe3dda76a
BLAKE2b-256 f38355badf3b2c5ba2537fdbbb607feff1837603cfe71d7e58c6feadcfeb1280

See more details on using hashes here.

File details

Details for the file chattr_req2toml-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: chattr_req2toml-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.28.2 requests-toolbelt/0.10.1 urllib3/1.26.14 tqdm/4.65.0 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.8.10

File hashes

Hashes for chattr_req2toml-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6821ed99d85040f7629f8660c50bf854d41708a92fb0fbb0bb9903e12089de7a
MD5 36d13e787197de8bf5a605cc9271b2fa
BLAKE2b-256 39a2bf9bee56ae82508d9bd54fa93269694a5efb7e9e3ace308a04e68be91a4e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page