Skip to main content

No project description provided

Project description

pip-split-requirements

PyPI - Version PyPI - Python Version


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.

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

pip_split_requirements-0.1.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

pip_split_requirements-0.1.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file pip_split_requirements-0.1.0.tar.gz.

File metadata

File hashes

Hashes for pip_split_requirements-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ccdde9ea7fdca849add52afe8646c428d5f9456e57ca27f1e848bd9cd6f658a6
MD5 ca3b0624ed2890ec1f9aaeb457cd40db
BLAKE2b-256 6bfcd7519650411bd7afee270373344807cb34eba2e35e18df8c1a4b27a36e99

See more details on using hashes here.

File details

Details for the file pip_split_requirements-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pip_split_requirements-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4423ac0817e0d66f1885ed0e00319c4b4aa13b93525bb8817d3baa140b48fdba
MD5 45c129505a21252ae0b8d762f1700e0b
BLAKE2b-256 3456933be31dcbfe2e4a83748228cd487bd70e422ae1c006b056c5a8cd2c19b6

See more details on using hashes here.

Supported by

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