DevLogBus Python SDK
Standard-library Python SDK for publishing records to the DevLogBus HTTP API.
python3 -m pip install /path/to/DevLogBus/sdk/python
from devlogbus import DevLogBusClient, redact_attrs
devlog = DevLogBusClient(
source="checkout_worker",
redactor=redact_attrs(["authorization", "token"]),
)
devlog.publish(
level="INFO",
message="checkout started",
attrs={"request_id": "req-1"},
)
The default endpoint is http://127.0.0.1:7423. Pass endpoint explicitly for
other local or trusted-network daemons.
Use the logging handler when you want normal logging records to publish:
import logging
from devlogbus import DevLogBusLoggingHandler
logger = logging.getLogger("checkout")
logger.addHandler(DevLogBusLoggingHandler(source="checkout_worker"))
logger.warning("payment provider slow")
Run tests from the repository root:
python3 -m unittest discover -s sdk/python/tests
Metadata
Release files for devlogbus 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| devlogbus-1.3.1.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| devlogbus-1.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.9 kB
Release files / devlogbus-1.3.1.tar.gz
| Download URL | devlogbus-1.3.1.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7a14aa029ec34b17d3e61e0902024aed6cc8461941bf76e9b5be832cef83344
|
|
BLAKE2b-256 checksum How to use checksums |
3dbae0f56db30deacd1a821114400e6a79b2305d835e84fe8ac6d8f261ffb586
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / devlogbus-1.3.1-py3-none-any.whl
| Download URL | devlogbus-1.3.1-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c90e6b0fc83a8e050b1572c7e11430240ec3f11ae632349aea2815ee4030799e
|
|
BLAKE2b-256 checksum How to use checksums |
ecfb623829b528da98819f2b86ed3b346e3e35ecdcdccc71341b2f806bbde6dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|