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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for devtools_sitecustomize-0.1.6.tar.gz
Algorithm Hash digest
SHA256 dc623db46138b0d4bd8cc8702dd680b214a3794c12f716f37e6ea65d194e5483
MD5 4de3d438ae4b1d617f2ac0f1fea8b7b8
BLAKE2b-256 c39d7701b9bf652223802ac53c3d8b8b0c64107ada34be3131c306e3383b2749

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for devtools_sitecustomize-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 31fb45ecac71ec015463d7bbfd3c8366f19af8b0b66144ff589e1aefca422a48
MD5 9ce6bbc1a19642bf6036ca145863b4c8
BLAKE2b-256 6dc83194276e2810b43e952584de80ffce84241f8ccfd857a8b8fc468f1f5978

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