distlib
| Use Case | Command | Description |
|---|---|---|
| 📦 Install a package from source | from distlib.database import Distribution | Manage installed and source distributions. |
| 🔍 Locate packages in indexes | from distlib.locators import locate | Find packages in PyPI or other indexes. |
| 📝 Create console scripts | from distlib.scripts import ScriptMaker | Generate entry points and scripts. |
| 🏷️ Work with metadata | from distlib.metadata import Metadata | Parse and manipulate package metadata. |
| 🔢 Version comparisons | from distlib.version import SemanticVersion | Handle version strings and comparisons. |
# -*- coding: utf-8 -*-
#
# Copyright (C) 2012-2019 Vinay Sajip.
# Licensed to the Python Software Foundation under a contributor agreement.
# See LICENSE.txt and CONTRIBUTORS.txt.
#
builtins.Exception(builtins.BaseException)
Method resolution order:
__weakref__ — list of weak references to the object (if defined)__init__(self, /, *args, **kwargs) — Initialize self. See help(type(self)) for accurate signature.__new__(*args, **kwargs) from builtins.type — Create and return a new object. See help(type) for accurate signature.__delattr__(self, name, /) — Implement delattr(self, name).__getattribute__(self, name, /) — Return getattr(self, name).__reduce__(...) — Helper for pickle.__repr__(self, /) — Return repr(self).__setattr__(self, name, value, /) — Implement setattr(self, name, value).__setstate__(...)__str__(self, /) — Return str(self).with_traceback(...) — Exception.with_traceback(tb) — set self.__traceback__ to tb and return self.__cause__ — exception cause__context__ — exception context__dict____suppress_context____traceback__argslogger = <Logger distlib (WARNING)>
0.3.4
/usr/lib/python3/dist-packages/distlib/__init__.py
Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-01 16:52 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)