Skip to main content

GitHub Workflow Status (with event) GitHub coverage status

What is it?

Distlib is a library which implements low-level functions that relate to packaging and distribution of Python software. It is intended to be used as the basis for third-party packaging tools. The documentation is available at

https://distlib.readthedocs.io/

Main features

Distlib currently offers the following features:

  • The package distlib.database, which implements a database of installed distributions, as defined by PEP 376, and distribution dependency graph logic. Support is also provided for non-installed distributions (i.e. distributions registered with metadata on an index like PyPI), including the ability to scan for dependencies and building dependency graphs.

  • The package distlib.index, which implements an interface to perform operations on an index, such as registering a project, uploading a distribution or uploading documentation. Support is included for verifying SSL connections (with domain matching) and signing/verifying packages using GnuPG.

  • The package distlib.metadata, which implements distribution metadata as defined by PEP 643, PEP 566, PEP 345, PEP 314 and PEP 241.

  • The package distlib.markers, which implements environment markers as defined by PEP 508.

  • The package distlib.manifest, which implements lists of files used in packaging source distributions.

  • The package distlib.locators, which allows finding distributions, whether on PyPI (XML-RPC or via the “simple” interface), local directories or some other source.

  • The package distlib.resources, which allows access to data files stored in Python packages, both in the file system and in .zip files.

  • The package distlib.scripts, which allows installing of scripts with adjustment of shebang lines and support for native Windows executable launchers.

  • The package distlib.version, which implements version specifiers as defined by PEP 440, but also support for working with “legacy” versions and semantic versions.

  • The package distlib.wheel, which provides support for building and installing from the Wheel format for binary distributions (see PEP 427).

  • The package distlib.util, which contains miscellaneous functions and classes which are useful in packaging, but which do not fit neatly into one of the other packages in distlib.* The package implements enhanced globbing functionality such as the ability to use ** in patterns to specify recursing into subdirectories.

Python version and platform compatibility

Distlib is intended to be used on and is tested on Python versions 2.7 and 3.6 or later, pypy-2.7 and pypy3 on Linux, Windows, and macOS.

Project status

The project has reached a mature status in its development: there is a comprehensive test suite and it has been exercised on Windows, Ubuntu and macOS. The project is used by well-known projects such as pip and caniusepython3.

This project was migrated from Mercurial to Git and from BitBucket to GitHub, and although all information of importance has been retained across the migration, some commit references in issues and issue comments may have become invalid.

Code of Conduct

Everyone interacting in the distlib project’s codebases, issue trackers, chat rooms, and mailing lists is expected to follow the PyPA Code of Conduct.

Release files for distlib 0.4.3

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

Source distribution (sdist)

Source distribution for distlib 0.4.3
File Size Uploaded
distlib-0.4.3.tar.gz 615.1 kB Details

Built distribution (wheel)

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

Total release size: 1.1 MB

Release files / distlib-0.4.3.tar.gz

Download URL distlib-0.4.3.tar.gz
Size 615.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f152097224a0ae24be5a0f6bae1b9359af82133bce63f98a95f86cae1aede9ed
BLAKE2b-256 checksum
How to use checksums
c902bd72be9134d25ed783ecbbc38a539ffaefbf90c78418c7fb7229600dbac7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0+

Release files / distlib-0.4.3-py2.py3-none-any.whl

Download URL distlib-0.4.3-py2.py3-none-any.whl
Size 470.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
4b0ce306c966eb73bc3a7b6abad017c556dadd92c44701562cd528ac7fde4d5b
BLAKE2b-256 checksum
How to use checksums
02089c41fb51ab5b43eb21674aff13df270e8ba6c4b29c8624e328dc7a9482af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0+

Release history Release notifications | RSS feed

This release

0.4.3 This release

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

1 release file

0.2.9

1 release file

0.2.8

1 release file

0.2.7

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.9

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

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