Debian Codegraph @

README.rst

raw
1 |badge1| |badge2|
2
3 .. |badge1| image:: https://img.shields.io/github/actions/workflow/status/pypa/distlib/package-tests.yml
4 :alt: GitHub Workflow Status (with event)
5
6 .. |badge2| image:: https://img.shields.io/codecov/c/github/pypa/distlib
7 :target: https://app.codecov.io/gh/pypa/distlib
8 :alt: GitHub coverage status
9
10 What is it?
11 -----------
12
13 Distlib is a library which implements low-level functions that relate to
14 packaging and distribution of Python software. It is intended to be used as the
15 basis for third-party packaging tools. The documentation is available at
16
17 https://distlib.readthedocs.io/
18
19 Main features
20 -------------
21
22 Distlib currently offers the following features:
23
24 * The package ``distlib.database``, which implements a database of installed
25 distributions, as defined by :pep:`376`, and distribution dependency graph
26 logic. Support is also provided for non-installed distributions (i.e.
27 distributions registered with metadata on an index like PyPI), including
28 the ability to scan for dependencies and building dependency graphs.
29 * The package ``distlib.index``, which implements an interface to perform
30 operations on an index, such as registering a project, uploading a
31 distribution or uploading documentation. Support is included for verifying
32 SSL connections (with domain matching) and signing/verifying packages using
33 GnuPG.
34 * The package ``distlib.metadata``, which implements distribution metadata as
35 defined by :pep:`643`, :pep:`566`, :pep:`345`, :pep:`314` and :pep:`241`.
36 * The package ``distlib.markers``, which implements environment markers as
37 defined by :pep:`508`.
38 * The package ``distlib.manifest``, which implements lists of files used
39 in packaging source distributions.
40 * The package ``distlib.locators``, which allows finding distributions, whether
41 on PyPI (XML-RPC or via the "simple" interface), local directories or some
42 other source.
43 * The package ``distlib.resources``, which allows access to data files stored
44 in Python packages, both in the file system and in .zip files.
45 * The package ``distlib.scripts``, which allows installing of scripts with
46 adjustment of shebang lines and support for native Windows executable
47 launchers.
48 * The package ``distlib.version``, which implements version specifiers as
49 defined by :pep:`440`, but also support for working with "legacy" versions and
50 semantic versions.
51 * The package ``distlib.wheel``, which provides support for building and
52 installing from the Wheel format for binary distributions (see :pep:`427`).
53 * The package ``distlib.util``, which contains miscellaneous functions and
54 classes which are useful in packaging, but which do not fit neatly into
55 one of the other packages in ``distlib``.* The package implements enhanced
56 globbing functionality such as the ability to use ``**`` in patterns to
57 specify recursing into subdirectories.
58
59
60 Python version and platform compatibility
61 -----------------------------------------
62
63 Distlib is intended to be used on and is tested on Python versions 2.7 and 3.6 or later,
64 pypy-2.7 and pypy3 on Linux, Windows, and macOS.
65
66 Project status
67 --------------
68
69 The project has reached a mature status in its development: there is a comprehensive
70 test suite and it has been exercised on Windows, Ubuntu and macOS. The project is used
71 by well-known projects such as `pip <https://pypi.org/pypi/pip>`_ and `caniusepython3
72 <https://pypi.org/pypi/caniusepython3>`_.
73
74 This project was migrated from Mercurial to Git and from BitBucket to GitHub, and
75 although all information of importance has been retained across the migration, some
76 commit references in issues and issue comments may have become invalid.
77
78 Code of Conduct
79 ---------------
80
81 Everyone interacting in the distlib project's codebases, issue trackers, chat
82 rooms, and mailing lists is expected to follow the `PyPA Code of Conduct`_.
83
84 .. _PyPA Code of Conduct: https://www.pypa.io/en/latest/code-of-conduct/