Skip to main content

Utilities for analyzing Databend logs

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bendlog-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bendlog-0.1.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file bendlog-0.1.0.tar.gz.

File metadata

  • Download URL: bendlog-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for bendlog-0.1.0.tar.gz
Algorithm Hash digest
SHA256 86ae93ff8b84e52e18613111acff832dc0f3e841a00a6bff0e945d42ff6c051e
MD5 60c20265beaaf3a5f6dae30727c6a242
BLAKE2b-256 deaf43a5a742725d151a8183619521ec2b7d9ad6f58f59f96d091eae7cc5b43b

See more details on using hashes here.

File details

Details for the file bendlog-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bendlog-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for bendlog-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7fe4bb4e27109af78784329ee2950a7e51a1d9047a8db44be3b960dc7ec8888e
MD5 bc31899821e5ccc29cee7eff5b2344d3
BLAKE2b-256 b554994ed35e4f391881d66fe09073740f581dba076ecd04f92d53a482f5823f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page