Skip to main content

wuti-py-util

codecov

A small Python toolkit for internal tools: read and write structured files, validate inputs, touch the filesystem safely, and optionally read CSV/Excel.

Requirements: Python >= 3.12. uv is recommended for local development.

Install

pip install wuti-py-util

The core package only depends on jsonschema and PyYAML. DataFrame and Excel features are opt-in:

Extra Enables Install
pandas conversion_stats, csv (CsvReader) pip install "wuti-py-util[pandas]"
excel excel (ExcelReader), includes pandas pip install "wuti-py-util[excel]"
all Everything above pip install "wuti-py-util[all]"

What this library is

Core modules: serialization, validation, filesystem, log, csv / excel (extras), check, plus small helpers (filelist, filehash, datetime, string, environment, process).

Frozen (kept for compatibility, no new features): database, web, dataclass_utils.

Development

Development dependencies (pytest, coverage, ruff, mypy, hatchling, etc.) live in [dependency-groups].dev in pyproject.toml — not as a published PyPI extra. Use uv from the repository root:

uv sync --group dev

Run checks through that environment:

uv run pytest
uv run ruff check .
uv run ruff format --check .
uv run mypy

If you intentionally use an already-active shared venv, use --inexact so uv does not remove packages installed manually with uv pip install:

uv sync --active --inexact --group dev
uv run --active pytest
uv run --active ruff check .
uv run --active ruff format --check .
uv run --active mypy

Build and publish

Version comes from __version__ in src/wuti/util/__init__.py. The GitHub Release workflow requires the git tag (vX.Y.Z) to match that version. PyPI rejects duplicate versions.

uv build
uv pip install dist/wuti_py_util-<version>.tar.gz

Publish to PyPI (https://upload.pypi.org/legacy/) with a PyPI API token via UV_PUBLISH_TOKEN or --token:

uv publish

Metadata

Release files for wuti-py-util 0.7.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wuti-py-util 0.7.4
File Size Uploaded Provenance Actions
wuti_py_util-0.7.4.tar.gz 38.4 kB Without provenance Details for wuti_py_util-0.7.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wuti-py-util 0.7.4
File Interpreter ABI Platform Actions
wuti_py_util-0.7.4-py3-none-any.whl Python 3 none any Details for wuti_py_util-0.7.4-py3-none-any.whl

Total release size: 86.1 kB

Release files / wuti_py_util-0.7.4.tar.gz

Download URL wuti_py_util-0.7.4.tar.gz
Size 38.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b38f12dedbfc3d6f56c45c6696f57fed694c59bafe256fd87bb7ac20432b0293
BLAKE2b-256 checksum
How to use checksums
7f6fc6a267f7136b6502fad3836a7974e7bc996aba3e187d4adbdb5b2df8c892
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.8 {"installer":{"name":"uv","version":"0.12.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / wuti_py_util-0.7.4-py3-none-any.whl

Download URL wuti_py_util-0.7.4-py3-none-any.whl
Size 47.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e959a029750e3c198eed77df68071d263c77b09c42da508bd03136b179557ebd
BLAKE2b-256 checksum
How to use checksums
9a67a827824bcf56c36a4ffe0d80ffdb0a47e884ea1ff72994ca86623088895c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.8 {"installer":{"name":"uv","version":"0.12.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for wuti-py-util 0.7.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page