Skip to main content

Logging utilities for the SciTeX ecosystem

Project description

scitex-logging

Logging utilities for the SciTeX ecosystem.

Installation

pip install scitex-logging

Usage

import scitex_logging

# Configure logging
scitex_logging.configure(level=scitex_logging.INFO, enable_file=True)

# Get a logger
import logging
logger = logging.getLogger(__name__)
logger.info("Hello from SciTeX logging")

# Tee stdout/stderr to log files
import sys
sys.stdout, sys.stderr = scitex_logging.tee(sys)

# Custom error classes
from scitex_logging import SciTeXError, SaveError

# Warning utilities
from scitex_logging import warn_deprecated, warn_performance

# LLM session log parsing
log = scitex_logging.llm.load("session.jsonl")
log.summary()
log.render("out.html")

License

AGPL-3.0 -- see LICENSE.

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

scitex_logging-0.1.1.tar.gz (80.7 kB view details)

Uploaded Source

Built Distribution

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

scitex_logging-0.1.1-py3-none-any.whl (67.3 kB view details)

Uploaded Python 3

File details

Details for the file scitex_logging-0.1.1.tar.gz.

File metadata

  • Download URL: scitex_logging-0.1.1.tar.gz
  • Upload date:
  • Size: 80.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_logging-0.1.1.tar.gz
Algorithm Hash digest
SHA256 130a4e949ceade9dccb608ce398dd4d5bd13f3898c3055959b8b6479d9cc978f
MD5 20f78f2b3ea33f3bf3bfc788e2ffa1a4
BLAKE2b-256 0bd34f74b59029f15b182564a992a049601c22b862336bda32b6513ae749b44f

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_logging-0.1.1.tar.gz:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-logging

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scitex_logging-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: scitex_logging-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 67.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_logging-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e1f0509b230d67f5752697bce84705b39c74ab35feb48c71bc8939d56dd8cb6e
MD5 43a842ae610c6a0bded6cd8bb8c4f2bb
BLAKE2b-256 d0776c4d200bd27188744e800f4c61b7e75e6fa262e1ef4bf4318bf5f9e4ac1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_logging-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-logging

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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