Skip to main content

reqwire

Codacy Badge https://img.shields.io/pypi/v/reqwire.svg https://img.shields.io/pypi/pyversions/reqwire.svg https://travis-ci.org/darvid/reqwire.svg?branch=master https://img.shields.io/coveralls/darvid/reqwire.svg Join the chat at https://gitter.im/python-reqwire/Lobby

reqwire wires up your pip requirements with pip-tools.

https://asciinema.org/a/97035.png

Install

>From PyPI:

$ pip install -U reqwire

>From source:

$ pip install -e git+https://github.com/darvid/reqwire.git#egg=reqwire

Features

  • Manage multiple requirement source files, or tags

  • Add requirements from the command line (à la npm --save)

  • Compile tagged source files with pip-compile (from pip-tools)

Rationale

Until PEP 518 and Pipfile become reality, maintaining one or more requirements.txt files for Python projects will continue to be subject to personal preference and differing opinions on best practices [1]. Typical workflows involve maintaining multiple requirements.txt files, and many projects have some form of tooling, be it Makefile targets or external tools, such as Vincent Driessen’s excellent pip-tools.

reqwire is a glorified wrapper around pip-tools, and imposes a slightly opinionated workflow:

  • Python requirements are split into source files and built files, with the built files being the output from pip-compile, containing pinned versions of the entire dependency graph. (Use reqwire init to quickly scaffold the necessary directory structure.)

  • Source files (with the .in extension) represent a project’s immediate dependencies, and are always pinned to specific versions or version ranges.

  • Source filenames are synonymous with tags, which can be passed to reqwire add and reqwire build to maintain requirements for entirely separate environments.

Disclaimer

reqwire makes no claims about being designed specifically for humans, bonobos, cats, or any other land mammal. This project is not farm raised, free range, organic, low sugar, MSG free, gluten free, halal, kosher, vegan, or particularly of any nutritional value whatsoever. It just wraps pip-tools and helps you manage your freakin Python requirements. ☮ 🌈

Roadmap

  • Unit tests

  • Provide a command to update requirements (user-specified version)

  • Provide a command to freshen requirements

  • Provide a command to combine tags to a single output file (easily possible with pip-compile)

  • Provide a utility for generating setup and runtime requirements in setup.py scripts using setuptools.

  • Abandon in favor of Pipfile 👌

Release files for reqwire 0.2.1

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

Built distribution (wheel)

Table of built distributions (wheels) for reqwire 0.2.1
File Interpreter ABI Platform
reqwire-0.2.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Release files / reqwire-0.2.1-py2.py3-none-any.whl

Download URL reqwire-0.2.1-py2.py3-none-any.whl
Size 20.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
bfe37824a0ea6b464d5f115de19ad02fddcf251b7397cf1efc11ecbce3c618f9
BLAKE2b-256 checksum
How to use checksums
a147b16b52f3b6381d0bc8cae7ee365b7d8c432a47d61022ba6fb3ae06dbe7d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file

0.2.0

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

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