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(): Providesdevtools.debugdirectly in yourbuiltins, accessible asdebug(). - Zero Configuration for Users: Once installed as a dependency, it just works.
uvFriendly: Integrates seamlessly withuv-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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file devtools_sitecustomize-0.1.2.tar.gz.
File metadata
- Download URL: devtools_sitecustomize-0.1.2.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2ed73c096ec9c715eba2f3d027028aa79dbd751df7ad163c458f4439056bf16
|
|
| MD5 |
5e0fe69171ffd790349ebb9f4604e557
|
|
| BLAKE2b-256 |
a44638b8683389c63db95c1d86b084add98f87d5e6e331b4646d3adf9e81c564
|
File details
Details for the file devtools_sitecustomize-0.1.2-py3-none-any.whl.
File metadata
- Download URL: devtools_sitecustomize-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99f6c37e55d7af48d06626ba9fa1615f63093a9cfb7648cccfb5725c3a309903
|
|
| MD5 |
a487ccde41f227509955f267adb6d0ba
|
|
| BLAKE2b-256 |
360d6eff1119e8d59b000ec0ac6ed4412084ff4be89828dda1bd397f3bcfa588
|