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.10.tar.gz (2.0 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.10-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for devtools_sitecustomize-0.1.10.tar.gz
Algorithm Hash digest
SHA256 8b93c64a1afe78078185025a6733466a561944038c95486a4d49423c8000e93c
MD5 3b8d8f5790c611b5eac02682951b218b
BLAKE2b-256 29b39884503ed3a1cac518de83bc2fd7db51ab11197d8ee71c2ffbf9c9463541

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for devtools_sitecustomize-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 cf372169de414704e32126ecc2009697294afce0bc2955ec71f3864fdf065d87
MD5 12b5dbd4c99465e2b8c277c3eb0a0a49
BLAKE2b-256 6f8dae0322d2fee9fdef699361a774d3ad18181da63250828d652d1d3d9f85b9

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