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

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.1
File Size Uploaded Provenance Actions
wuti_py_util-0.7.1.tar.gz 36.0 kB Without provenance Details for wuti_py_util-0.7.1.tar.gz

Built distribution (wheel)

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

Total release size: 81.0 kB

Release files / wuti_py_util-0.7.1.tar.gz

Download URL wuti_py_util-0.7.1.tar.gz
Size 36.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5aead125149d12a84e28665698d14610d6b0b570740a557a6b02b78dc669d38d
BLAKE2b-256 checksum
How to use checksums
7e3e414c74dbd5d09b156e891c31fe19dd79e7e205c7b8e24a41553273b2cb34
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.1-py3-none-any.whl

Download URL wuti_py_util-0.7.1-py3-none-any.whl
Size 44.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
837a8dfddeac13130acb76c38ec00f43d94f35774a7d7f6e2543ca653ce9203e
BLAKE2b-256 checksum
How to use checksums
4eb24953edf27d11e0e21bc9c3da3067ee409db672c533684028d1abfd72a473
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.1

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