bendlog
Utilities for analyzing Databend logs.
Installation
# From the bendlog directory
pip install .
# Editable install (for development, changes take effect immediately)
pip install -e .
# With dev dependencies (pytest)
pip install -e ".[dev]"
Usage
from bendlog import read_lines
# Plain text file
for line in read_lines("file.log"):
print(line)
# Zstd compressed
for line in read_lines("file.log.zst"):
print(line)
# Tar.gz archive (reads all files inside)
for line in read_lines("logs.tar.gz"):
print(line)
# Stdin
for line in read_lines("-"):
print(line)
Run Tests
pytest tests/ -v
Publish to PyPI
# Install publish dependencies
pip install -e ".[publish]"
# Get API token from https://pypi.org/manage/account/token/
# or https://test.pypi.org/manage/account/token/ for TestPyPI
# Publish to TestPyPI first (recommended)
TWINE_PASSWORD=pypi-xxx ./publish.sh test
# Publish to PyPI
TWINE_PASSWORD=pypi-xxx ./publish.sh
Metadata
Release files for bendlog 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 | |
|---|---|---|---|
| bendlog-0.1.0.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bendlog-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.5 kB
Release files / bendlog-0.1.0.tar.gz
| Download URL | bendlog-0.1.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86ae93ff8b84e52e18613111acff832dc0f3e841a00a6bff0e945d42ff6c051e
|
|
BLAKE2b-256 checksum How to use checksums |
deaf43a5a742725d151a8183619521ec2b7d9ad6f58f59f96d091eae7cc5b43b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Release files / bendlog-0.1.0-py3-none-any.whl
| Download URL | bendlog-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7fe4bb4e27109af78784329ee2950a7e51a1d9047a8db44be3b960dc7ec8888e
|
|
BLAKE2b-256 checksum How to use checksums |
b554994ed35e4f391881d66fe09073740f581dba076ecd04f92d53a482f5823f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|