Skip to main content

Mario the Devpi Plumber

Coverage Status Latest Version

Mario, the devpi-plumber, helps to automate and test large devpi installations. It offers a simple python commandline wrapper around the devpi client binary and utilities for using devpi in a test harness. To get access to the latter, install Mario with the extra test requirement:

pip install devpi-plumber[test]

Mario by Example:

Among others, it can be used to automate the upload of packages:

with DevpiClient('https://devpi.company.com', 'user', 'secret') as devpi:
    devpi.use('user/testindex')
    devpi.upload('path/to/package-1.0.tar.gz')

To make it easier to perform modifications on non-volatile indices, there is a context manager that temporarily toggles the volatile flag.

with volatile_index(devpi, 'user/prodindex'):
    devpi.remove('broken_package==0.1.0')

In order to simplify the testing of such plumbing scripts, it ships with a simple context manager for starting and stopping devpi servers in tests.

def do_maintenance(devpi):
    """ My plumbing script """
    devpi.use('user/testindex')
    # ...

users = {
    'user': {'password': 'secret'},
}
indices = {
    'user/prodindex': {},
    'user/testindex': {'bases': 'user/prodindex'},
}
with TestServer(users, indices) as devpi:
    do_maintenance(devpi)

License

New BSD

Metadata

Release files for devpi-plumber 0.7.0

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

Source distribution (sdist)

Source distribution for devpi-plumber 0.7.0
File Size Uploaded
devpi-plumber-0.7.0.tar.gz 182.3 kB Details

Built distribution (wheel)

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

Total release size: 189.9 kB

Release files / devpi-plumber-0.7.0.tar.gz

Download URL devpi-plumber-0.7.0.tar.gz
Size 182.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e53105c3f7ae29f74aa6ae0ab46c2c54ad29d8175e59f82950f2852b04c14996
BLAKE2b-256 checksum
How to use checksums
286b6f67ece93542c2c659bfe760d5e4c3cff2754bc3238c39a5f0a26cb0a83c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / devpi_plumber-0.7.0-py2.py3-none-any.whl

Download URL devpi_plumber-0.7.0-py2.py3-none-any.whl
Size 7.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e9aff00606aa3f4a74c53b45d734492179e33cdbae30e0c4ded2f11f2a925b0c
BLAKE2b-256 checksum
How to use checksums
ec049149c8773af694a1a1e18f14c801cdb13dc3023b556f9c4f48df90415e12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.15

2 release files

0.2.14

2 release files

0.2.13

2 release files

0.2.12

2 release files

0.2.11

2 release files

0.2.10

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.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