Skip to main content

Shared base utilities for the SolphIT stack.

Project description

tvi-solphit-base

Shared utilities for the SolphIT stack. Clean, well‑named helpers for logging, CLI parsing, filesystem, JSONL, discovery, and timing.

Install (development)

python -m venv .venv && source .venv/bin/activate
python -m pip install -U pip
python -m pip install -e .
# or with tests if you add extras: python -m pip install -e .[test]

Quick start

from tvi.solphit.base.logging import SolphitLogger
log = SolphitLogger.get_logger("demo")
log.info("hello")

More examples:

Environment variables (logging)

  • TVI_SOLPHIT_LOG_LEVEL=DEBUG|INFO|WARNING|ERROR|CRITICAL
  • TVI_SOLPHIT_LOG_DEST=stdout|file
  • TVI_SOLPHIT_LOG_FILE=solphit.log
  • TVI_SOLPHIT_LOG_FORMAT="%(asctime)s | %(levelname)s | %(name)s | %(message)s"

Testing

pytest
# or verbose with logs: pytest -s

Versioning

This project follows Semantic Versioning. See CHANGELOG.md for release notes.

License

MIT. 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

tvi_solphit_base-0.2.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

tvi_solphit_base-0.2.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file tvi_solphit_base-0.2.0.tar.gz.

File metadata

  • Download URL: tvi_solphit_base-0.2.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for tvi_solphit_base-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ac8403241a601848e74e485e3d22c418a560cc68cb247cec3b5a23f1a7008553
MD5 6aebe1c8112ba431597a03bda9f68a77
BLAKE2b-256 40962e4849a23b7180f81d0b0ada6f1d9ad34cd3b698dfa2cc9ee81f0974dad2

See more details on using hashes here.

File details

Details for the file tvi_solphit_base-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tvi_solphit_base-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e185af8dc4f72f000e5f8879ad16b06c81e7867bcb9648e64e1b91c3db4c0bdf
MD5 29c8176e52ad1ff5ac05e2801b385da4
BLAKE2b-256 6025f24e80a5427a3e9045fdc825ab19c9529a80b4e695c7690353f1e550d48b

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