- Overview
- Tutorial
- Installation
- Testing
- First steps
- Using the database API
- Distribution dependencies
- Using the locators API
- Using the index API
- Using the metadata and markers APIs
- Using the resource API
- Using the scripts API
- Using the version API
- Using the wheel API
- Using the manifest API
- Next steps
- Distlib’s design
- API Reference
- The
distlib
package - The
distlib.database
package - The
distlib.resources
package - The
distlib.scripts
package- Classes
ScriptMaker
ScriptMaker.source_dir
ScriptMaker.target_dir
ScriptMaker.add_launchers
ScriptMaker.force
ScriptMaker.clobber
ScriptMaker.executable
ScriptMaker.set_mode
ScriptMaker.script_template
ScriptMaker.version_info
ScriptMaker.variant_separator
ScriptMaker.__init__()
ScriptMaker.make()
ScriptMaker.make_multiple()
ScriptMaker.get_script_filenames()
- Functions
- Classes
- The
distlib.locators
package - The
distlib.index
package- Classes
PackageIndex
PackageIndex.__init__()
PackageIndex.register()
PackageIndex.upload_file()
PackageIndex.upload_documentation()
PackageIndex.verify_signature()
PackageIndex.read_configuration()
PackageIndex.save_configuration()
PackageIndex.search()
PackageIndex.username
PackageIndex.password
PackageIndex.gpg
PackageIndex.gpg_home
PackageIndex.mirrors
PackageIndex.boundary
- Classes
- The
distlib.util
package - The
distlib.wheel
package - The
distlib.versions
package - The
distlib.manifest
package - The
distlib.metadata
package - The
distlib.markers
package - Next steps
- The
- Migrating from older APIs
Source code for distlib
# -*- coding: utf-8 -*-
#
# Copyright (C) 2012-2023 Vinay Sajip.
# Licensed to the Python Software Foundation under a contributor agreement.
# See LICENSE.txt and CONTRIBUTORS.txt.
#
import logging
__version__ = '0.3.9.dev0'
try:
from logging import NullHandler
except ImportError: # pragma: no cover
class NullHandler(logging.Handler):
def handle(self, record):
pass
def emit(self, record):
pass
def createLock(self):
self.lock = None
logger = logging.getLogger(__name__)
logger.addHandler(NullHandler())