Lightweight debugging utilities for Python development
Project description
brydebug
A collection of lightweight debugging utilities for Python development.
Installation
pip install brydebug
Features
Attribute Path Finding
Ever had a complex nested object and needed to figure out how to access a deeply buried attribute? brydebug helps you navigate object hierarchies during debugging sessions.
find_attr_path(obj, target_attr)
Find the path to a specific attribute within nested objects.
from brydebug import find_attr_path
# Returns a string like "obj.some_nested.attribute_name"
path = find_attr_path(my_complex_object, "attribute_name")
print(path)
find_attr_paths_containing(obj, substring, case_sensitive=False)
Find all attribute paths that contain a specific substring.
from brydebug import find_attr_paths_containing
# Returns a list of paths like ["obj.config.db_host", "obj.settings.db_port"]
paths = find_attr_paths_containing(my_object, "db")
for path in paths:
print(path)
Use Case
This tool is designed for quick debugging sessions. Install it temporarily when you need to introspect complex objects, then remove it once you're done debugging.
# Quick install for debugging
pip install brydebug
# Your debugging session...
# Clean up when done
pip uninstall brydebug
License
MIT
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 brydebug-0.1.0.tar.gz.
File metadata
- Download URL: brydebug-0.1.0.tar.gz
- Upload date:
- Size: 23.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e6ef21dd1822a7b6c3b00848ad032263c25d4471aa17fa4f627097715770dc6
|
|
| MD5 |
3616d500fae1ffe98daea7616ed8469a
|
|
| BLAKE2b-256 |
5d0c3df658e67bd5e409cba83d547c4487fa3be1bb7cba9a3cd7eb0afe7af3dd
|
File details
Details for the file brydebug-0.1.0-py3-none-any.whl.
File metadata
- Download URL: brydebug-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ae0a57996e20bdb9f3eb4461a323ff7ee1bf5e22eed8b81f3c857901d30408f
|
|
| MD5 |
50d8d22f9d0c608e26118d584306bd22
|
|
| BLAKE2b-256 |
86ff19ff8e81c6a81e38c71363e83abb3bb5fafc4652300f56f1dc77f12a9a8a
|