Skip to main content

Add your description here

Project description

devtools-sitecustomize

A simple Python package designed to automatically make devtools.debug available as a global debug() function in your Python interpreter sessions and scripts, by leveraging the sitecustomize-entrypoints mechanism. This removes the need for manual import statements or custom PYTHONSTARTUP configurations.

✨ Features

  • Automatic debug(): Provides devtools.debug directly in your builtins, accessible as debug().
  • Zero Configuration for Users: Once installed as a dependency, it just works.
  • uv Friendly: Integrates seamlessly with uv-managed Python environments.
  • Non-Interactive & Interactive Mode: Works for both running scripts and interactive interpreter sessions.

🚀 Installation

Install devtools-sitecustomize into your project's environment. If your project is uv-managed: Just run uv add --dev devtools-sitecustomize.

⚙️ How it Works

This package works by defining a sitecustomize entry point in its own pyproject.toml. When devtools-sitecustomize is installed, the sitecustomize-entrypoints library (which is a dependency of this package) intercepts Python's startup sequence. It finds all registered sitecustomize entry points, including the one from this package, and executes them. This allows devtools.debug to be imported and assigned to builtins.debug very early in the Python interpreter's lifecycle.

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

devtools_sitecustomize-0.1.8.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

devtools_sitecustomize-0.1.8-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file devtools_sitecustomize-0.1.8.tar.gz.

File metadata

File hashes

Hashes for devtools_sitecustomize-0.1.8.tar.gz
Algorithm Hash digest
SHA256 9b5be8aae20ea92b877271e5f8809a8a182c682d4e6adfb3a96e76c59f4e92e0
MD5 e57306caed3492d7570fef97c05fd45c
BLAKE2b-256 89596620f620ba6b3c6b3f621df2420b93aafa325392bd2c496fe617219a5f80

See more details on using hashes here.

File details

Details for the file devtools_sitecustomize-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for devtools_sitecustomize-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 705d853308735603faf748e5db7069cefd63825fbde9730c803baed90c7b7cbd
MD5 edfdd66fadb681bdfd9db0c81120714a
BLAKE2b-256 c51d10feda0d4db3fc20f272f69c5d3a5ebb89e14675c0e34e3ac0db79e5bb46

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