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:
- Logging /
SolphitLogger - Argument parsing base (
ArgParsed) - Custom arg types
- Filesystem:
atomic_write_text - JSONL helpers
- File discovery
- Timing utilities
Environment variables (logging)
TVI_SOLPHIT_LOG_LEVEL=DEBUG|INFO|WARNING|ERROR|CRITICALTVI_SOLPHIT_LOG_DEST=stdout|fileTVI_SOLPHIT_LOG_FILE=solphit.logTVI_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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac8403241a601848e74e485e3d22c418a560cc68cb247cec3b5a23f1a7008553
|
|
| MD5 |
6aebe1c8112ba431597a03bda9f68a77
|
|
| BLAKE2b-256 |
40962e4849a23b7180f81d0b0ada6f1d9ad34cd3b698dfa2cc9ee81f0974dad2
|
File details
Details for the file tvi_solphit_base-0.2.0-py3-none-any.whl.
File metadata
- Download URL: tvi_solphit_base-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e185af8dc4f72f000e5f8879ad16b06c81e7867bcb9648e64e1b91c3db4c0bdf
|
|
| MD5 |
29c8176e52ad1ff5ac05e2801b385da4
|
|
| BLAKE2b-256 |
6025f24e80a5427a3e9045fdc825ab19c9529a80b4e695c7690353f1e550d48b
|