Skip to main content

Enables batch removal of packages from a devpi server.

Project description

Devpi Cleaner

Build Status Coverage Status Latest Version Requirements Status

Léon, the devpi cleaner, helps to batch removal of files from a devpi server. Given a package and version specification it will remove the specified versions of a package from all indices of a given user.

Rationale

Devpi cleaner wraps the original devpi remove command. It provides the following extensions:

  • Conditionally limit removal to development packages.

  • Temporarily switch non-volatile indices to volatile.

  • Apply a remove operation to all indices of a user.

Léon by Example

The following command will delete all development packages preceding version 0.2 of delete_me in indices of the user:

> devpi-cleaner http://localhost:2414/ user 'delete_me<=0.2' --dev-only
Password:
Packages to be deleted:
 * http://localhost:2414/user/index2/+f/842/84d1283874110/delete_me-0.2.dev2.tar.gz
 * http://localhost:2414/user/index2/+f/636/95eef6ac86c76/delete_me-0.2.dev2-py2.py3-none-any.whl
 * http://localhost:2414/user/index1/+f/842/84d1283874110/delete_me-0.2.dev2.tar.gz
 * http://localhost:2414/user/index1/+f/636/95eef6ac86c76/delete_me-0.2.dev2-py2.py3-none-any.whl
Enter "yes" to confirm: yes
>

As shown, packages will be listed and confirmation required before they are actually deleted from the server.

Commandline Usage

usage: devpi-cleaner [-h] [--batch] [--dev-only] [--force]
                     [--password PASSWORD]
                     server user package_specification

A utility to clean packages from the Devpi server used at Blue Yonder.

positional arguments:
  server                The devpi server to operate on.
  user                  The devpi server of which to clean the indices.
  package_specification
                        The specification of the package version(s) to remove.

optional arguments:
  -h, --help            show this help message and exit
  --batch               Assume yes on confirmation questions.
  --dev-only            Remove only development versions as specified by PEP
                        440.
  --force               Temporarily make indices volatile to enable package
                        removal.
  --password PASSWORD   The password with which to authenticate.

License

New BSD

Changelog

This is the version history of devpi_cleaner.

Version 0.1

  • Initial release

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

devpi-cleaner-0.1.0.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

devpi_cleaner-0.1.0-py2.py3-none-any.whl (7.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file devpi-cleaner-0.1.0.tar.gz.

File metadata

  • Download URL: devpi-cleaner-0.1.0.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for devpi-cleaner-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3a697814635834e3479cc90a8b6a9f5b78331b4f34133557a103a46cd88dc631
MD5 c38b4c3367c72ef71f4accd1708b573f
BLAKE2b-256 78b34bafddb64887ef20cc21ba74d773aedc960e652582230efb000aad97edc5

See more details on using hashes here.

File details

Details for the file devpi_cleaner-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for devpi_cleaner-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 757dbbdd316bfbc45f5fc1f12c7743974fda5a3f7c254ac8bbc3a00fbe992e6d
MD5 a5175493217155140758aa8403e9e6a2
BLAKE2b-256 45236f2a4e4d2b24fffce5749bf6cafc427dc8ef2bcdc717cfca759600f6eaa1

See more details on using hashes here.

Supported by

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