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

  • Add support for HTTPS.

Version 0.1.0

  • 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.1.tar.gz (20.4 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.1-py2.py3-none-any.whl (7.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for devpi-cleaner-0.1.1.tar.gz
Algorithm Hash digest
SHA256 776b4a216dbbecc7aee50e92052b0dce2f0bd6ca3c32e7220ad1e13ca41d8e52
MD5 3bb75b7dfd8e7e3ac20e438790f66cb7
BLAKE2b-256 673efb132c60470f293d4f3b5cfead47dfddcdbc7cffc92b7d62ba6d20fa635a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for devpi_cleaner-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4ee97be77bb9dfde09c65d87707f8c35a935b7d9e8421080bf8902ed54bbe6dd
MD5 39754e672f2a88a74681effd9a1e53a9
BLAKE2b-256 54ac35818e533d4595a5c4fc0b5e33d003762f5f1b2eb3e40a879f2a9fcec179

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