All work

libs/basis

myBasis

Ergonomic Python Utilities

myBasis is a broad extension of the Python standard library, centered on text processing, functional programming, and runtime type coercion.

Open repository Version 0.9.0MPL-2.0
myBasis identity mark

What it shows

What it is and what it demonstrates.

myBasis is a broad extension of the Python standard library, centered on text processing, functional programming helpers, and runtime type coercion. It is the shared utility layer that the rest of the fleet imports instead of re-implementing the same string and type plumbing per project.

The problem

Every Python project in the fleet needed the same small utilities — safe coercion from loose input to typed values, composable text transformations, and functional patterns that the stdlib doesn't provide. Copying these across repos duplicated code and made bug fixes slow to propagate. The stdlib is deliberately minimal; the gap between it and what a multi-project shop actually reaches for every day needed one authoritative source.

The approach

myBasis organizes around three pillars: a text-processing module with deterministic string helpers, a functional-programming layer with composable pipe-friendly primitives, and a runtime type-coercion system that converts loosely-typed input into strongly-typed values without silent data loss. The package is fully typed, published on PyPI, and gated by CI and pre-commit hooks across its 69-test suite. The 66-page documentation suite keeps the API surface navigable at scale.

What it demonstrates

Shipping a stage-8 utility library with 69 tests, 66 documentation pages, full type annotations, CI, and pre-commit hooks is the unglamorous discipline that makes every downstream project more reliable. A shared basis layer only works if it never breaks a contract; the evidence record says it doesn't.

Repository evidence

Observable facts.

Documentation
66 documentation files
Test surface
69 test files
Continuous integration
Configured
Pre-commit hooks
Configured
Typed source
Configured
Visual evidence
Identity image only
Technologies
py · pypi