cipdb - Conditional iPDB
Simple conditional debugging for Python with ID-based breakpoint control.
Installation
pip install cipdb
Quick Start
Control by Global State Call in Python
# Disable all debugging programmatically
cipdb.disable()
Disable all debugging by Environmental Variable
CIPDB_ID=false python your_script.py
Control by Boolean
import cipdb
cipdb.set_trace() # Identical with ipdb.set_trace()
cipdb.set_trace(False) # Identical with pass
cipdb.set_trace(os.getenv("DEBUG")) # Development vs Production
cipdb.set_trace(os.getenv("AGENT_ID")=="DebuggingAgent_01") # Runner Specific for debugging by multiple agent
Control by Breakpoint IDs
# your_script.py
def process_user(user):
cipdb.set_trace(id="validate")
validate(user)
cipdb.set_trace(id="save")
save_user(user)
cipdb.set_trace(id="notify")
send_notification(user)
# Development mode: All ID breakpoints work (no env vars needed)
python your_script.py # All ID breakpoints trigger
# Production mode: Control with environment variables
CIPDB_IDS=validate,save python your_script.py # Only stops at validate and save
CIPDB_IDS=save python your_script.py # Only stops at save
CIPDB_ID=save python your_script.py # Only stops at save (Equivalent to CIPDB_IDS=save)
Priority Logic
Global Control > CIPDB=false Environmental Variable > ID Matching > Boolean Conditioning
License
MIT
Metadata
Release files for cipdb 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| cipdb-0.1.0.tar.gz | 7.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cipdb-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.5 kB
Release files / cipdb-0.1.0.tar.gz
| Download URL | cipdb-0.1.0.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
23aba28e25de79d454af48e0dda930915012c312ed8fdd43bcb56b5bf7d8b4f9
|
|
BLAKE2b-256 checksum How to use checksums |
28f92d18fe66df4883313183b16db3ec36651d4c9032f995422ba0b90927ec7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.0rc1
|
Release files / cipdb-0.1.0-py3-none-any.whl
| Download URL | cipdb-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0f4c6e130900439b18726dc5d23114d8cb3235c3af490f863c4385bda989d33
|
|
BLAKE2b-256 checksum How to use checksums |
f72a396405dbbe488f232b3859e628c062912ce63da57a2ea8fc497cceaa62a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.0rc1
|
Security for cipdb 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.