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.1.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.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for devtools_sitecustomize-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6ec4e873a59bc676a503343079c25cf45f9996188baae54ecfb5a294e81555c9
MD5 f9466fbefa6dea8910a1ccd85fa8c8e9
BLAKE2b-256 3a3d0db3e00c260ac10c2c2cddeb0dbca590a8dba186c2c66890d81992896c24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for devtools_sitecustomize-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9faf7b3d90fb7fdfd8b2069d3d862ad10fb780e378c74fe5308cfe4c18285ac0
MD5 1f619df2ed2f65bdc77020a1e60b98ba
BLAKE2b-256 710ac0f48b0ea2f0cc41b9927ab7b02588ab0cfd429375eff1257ba6c1c8e892

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