Skip to main content

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.

Metadata

Release files for devtools-sitecustomize 0.1.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for devtools-sitecustomize 0.1.10
File Size Uploaded
devtools_sitecustomize-0.1.10.tar.gz 2.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for devtools-sitecustomize 0.1.10
File Interpreter ABI Platform
devtools_sitecustomize-0.1.10-py3-none-any.whl Python 3 none any Details

Total release size: 4.8 kB

Release files / devtools_sitecustomize-0.1.10.tar.gz

Download URL devtools_sitecustomize-0.1.10.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8b93c64a1afe78078185025a6733466a561944038c95486a4d49423c8000e93c
BLAKE2b-256 checksum
How to use checksums
29b39884503ed3a1cac518de83bc2fd7db51ab11197d8ee71c2ffbf9c9463541
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.6

Release files / devtools_sitecustomize-0.1.10-py3-none-any.whl

Download URL devtools_sitecustomize-0.1.10-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf372169de414704e32126ecc2009697294afce0bc2955ec71f3864fdf065d87
BLAKE2b-256 checksum
How to use checksums
6f8dae0322d2fee9fdef699361a774d3ad18181da63250828d652d1d3d9f85b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.6

Release history Release notifications | RSS feed

This release

0.1.10 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page