pip-split-requirements
Split a pip requirement files according to regular expression patterns rules.
Table of Contents
Installation
pipx install pip-split-requirements
Quick start
Assume the following requirements.txt:
--find-links wheelhouse
pkga
git+https://github.com/some/project
pkgb
Running
pip-split-requirements -g slow:git requirements.txt
Will create requirementsgroup-slow.txt:
--find-links wheelhouse
git+https://github.com/some/project
and requirementsgroup-other.txt:
--find-links wheelhouse
pkga
pkgb
Usage
Usage: python -m pip_split_requirements [OPTIONS] REQUIREMENTS_FILE
Split a pip requirements file into multiple files according to patterns.
Comment lines are ignored. Option lines are emitted in all groups.
Arguments:
REQUIREMENTS_FILE [required]
Options:
-g, --group-spec TEXT Group specifications in form name:pattern.
-p, --prefix TEXT Each requirements group file will be named
{prefix}-{group_name}.txt. [default:
requirementsgroup]
--default-group / --no-default-group
Automatically append a group named 'other',
matching all lines not matched by other
groups. [default: default-group]
--help Show this message and exit.
License
pip-split-requirements is distributed under the terms of the
MIT license.
Metadata
Release files for pip-split-requirements 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pip_split_requirements-0.1.0.tar.gz | 11.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pip_split_requirements-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.9 kB
Release files / pip_split_requirements-0.1.0.tar.gz
| Download URL | pip_split_requirements-0.1.0.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ccdde9ea7fdca849add52afe8646c428d5f9456e57ca27f1e848bd9cd6f658a6
|
|
BLAKE2b-256 checksum How to use checksums |
6bfcd7519650411bd7afee270373344807cb34eba2e35e18df8c1a4b27a36e99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Release files / pip_split_requirements-0.1.0-py3-none-any.whl
| Download URL | pip_split_requirements-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4423ac0817e0d66f1885ed0e00319c4b4aa13b93525bb8817d3baa140b48fdba
|
|
BLAKE2b-256 checksum How to use checksums |
3456933be31dcbfe2e4a83748228cd487bd70e422ae1c006b056c5a8cd2c19b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|