Skip to main content

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

Metadata

Release files for chattr-req2toml 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chattr-req2toml 1.1.1
File Size Uploaded
chattr_req2toml-1.1.1.tar.gz 8.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chattr-req2toml 1.1.1
File Interpreter ABI Platform
chattr_req2toml-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.9 kB

Release files / chattr_req2toml-1.1.1.tar.gz

Download URL chattr_req2toml-1.1.1.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7859789a7896f201b8f0e8d74d5eda69c523440b811e02ce49ad70e35be34a55
BLAKE2b-256 checksum
How to use checksums
f38355badf3b2c5ba2537fdbbb607feff1837603cfe71d7e58c6feadcfeb1280
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / chattr_req2toml-1.1.1-py3-none-any.whl

Download URL chattr_req2toml-1.1.1-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6821ed99d85040f7629f8660c50bf854d41708a92fb0fbb0bb9903e12089de7a
BLAKE2b-256 checksum
How to use checksums
39a2bf9bee56ae82508d9bd54fa93269694a5efb7e9e3ace308a04e68be91a4e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page