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 therequirements.txt
--install
[optional] By default, it will only update the lock, add this flag to install the dependencies at the same time.-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
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
req2toml-1.1.2.tar.gz
(8.4 kB
view details)
Built Distribution
req2toml-1.1.2-py3-none-any.whl
(10.0 kB
view details)
File details
Details for the file req2toml-1.1.2.tar.gz
.
File metadata
- Download URL: req2toml-1.1.2.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f26c3c292d720b5ea6116f0d62a06bb5fbc0d619351270d3add9e4df09655ae |
|
MD5 | 130899a6ad8a302eea9ce17e2bb4af72 |
|
BLAKE2b-256 | 8c6b0ef600868f6edfbd01ef2d0a261e2dacfe04623ce243db3b6b436bdfe0e0 |
File details
Details for the file req2toml-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: req2toml-1.1.2-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f59e8b998a948cf203c7909994c3c10f0cddb0ce9b56606f038f2b8f4637d87 |
|
MD5 | 1a18e0fa948b114ed5368c631ef31824 |
|
BLAKE2b-256 | 8e7732f8e861fee4a569d50f0b424fad00af20aa3d7c1909164deda2fe03b25f |