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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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