100 projects
tdmread
Zero-dependency, typed reader for NI TDM/TDX files (XML .tdm header plus binary .tdx), using only the Python standard library
envread
Typed reader for environment variables: inferred return types, settings dataclasses, .env files and a checker CLI, zero dependencies
mimeatlas
Deterministic, OS-independent file extension and MIME type mapping generated from mime-db, zero dependencies
walkupward
Walk up from a start directory to find a marker file or directory, typed and dependency free
figround
Significant-figures rounding and formatting with exact Decimal math and preserved trailing zeros
monthweekday
Find the nth weekday of a month (third Thursday, last Friday), read RFC 5545 BYDAY values, zero dependencies
mailtolink
Parse, validate and safely build mailto: URIs per RFC 6068
stripcontrol
Remove or detect control characters and terminal escape sequences in text, logs and streams
calltimeout
Run a callable with a wall-clock timeout in a thread, a process or under SIGALRM, typed, with an honest choice of mechanism
unidash
Fold Unicode dashes and punctuation to plain ASCII while leaving letters untouched
teluri
Strict, typed, zero-dependency parser, builder and comparator for tel: URIs (RFC 3966), with a reader for real-world tel: links
hexrgba
CSS hex and named colors: parse, normalize, exact alpha, rgba(), WCAG contrast and blending
altsvc
Parse, check and build the HTTP Alt-Svc header (RFC 7838), typed and zero-dependency.
periodictimer
Drift-free repeating timers for threads and asyncio, with missed-tick policies, fixed delay and jitter
shtemplate
POSIX shell parameter expansion ($VAR, ${VAR:-default}, ${VAR%pattern}, ...) over any mapping, with a CLI; typed, safe, zero-dependency
hstsheader
Parse, check and build the HTTP Strict-Transport-Security header, typed and zero-dependency.
timedbatch
Batch items by a max count and a max age, for iterables, threads and asyncio, without losing items
tabstops
Expand and unexpand tabs like str.expandtabs and the POSIX tools, with tab stop lists and display columns
dirsize
Size of a directory tree, apparent and on disk, as typed calls and a du-like CLI, with hard link dedupe and safe link handling
followtail
Follow a growing text file like tail -f, surviving log rotation, yielding new complete lines
safejoin
Path-traversal-safe joining of a trusted base directory with untrusted relative parts
dupefind
Find duplicate files by staged hashing: group by size, then partial hash, then full hash
sniffbom
Detect, name and strip the Unicode byte-order mark on a byte string
shortenpath
Shorten a filesystem path to fit a terminal column budget, preferring whole roots and file names
postalcheck
Validate and normalize postal code formats for 182 countries and territories, with no runtime dependencies
keyedlock
Lock by key: concurrent work on the same key serializes, different keys run in parallel, with reference-counted cleanup
humanjoin
Join a list into a natural-language phrase: Oxford comma, overflow limit, and the list patterns of every Unicode CLDR locale
threadfan
Typed, ordered parallel map over a bounded thread pool for IO-bound fan-out
tzoffset
Parse and format bare numeric UTC offsets (Z, +05:30, -0800) both ways
indgroup
Format and strictly parse numbers with Indian lakh and crore grouping and the digit grouping of every Unicode CLDR locale
atomicint
Thread-safe atomic integers for Python: fetch-and-add, compare-and-set, compare-and-exchange, atomic updates and bounded counters that raise, saturate or wrap. Pure Python, zero dependencies, typed, free-threading ready
deadliner
Monotonic deadline and time-budget primitive for bounding multi-step operations
busdays
Zero-dependency business-day arithmetic with a configurable weekend mask and optional holidays
stepdates
A range() for dates: iterate from start to stop by calendar day, week, month or year
durospan
Typed, zero-dependency round-trip between human durations and seconds, one grammar both ways
a1col
Spreadsheet A1 references: column letters, cells, ranges, sheets and R1C1, typed and dependency free
compactnum
Two-way compact number notation: format large numbers as 1.2k or 3.5M and parse them back
moneyparse
Parse, find and format money strings as exact Decimal amounts with ISO 4217 currency and CLDR locale rules
wordsnum
Parse spelled-out English numbers into int or float, fully typed and dependency-free
intranges
Typed conversion between range strings like 1-3,5 and ints, with a lazy set type, dialects and a CLI
bytesz
Strict two-way conversion between byte counts and human sizes with explicit IEC and SI units
logfmtkv
Typed, zero-dependency logfmt codec: parse and serialize key=value log lines in both directions.
colorsupport
Detect how much color a terminal stream can show (none, 16, 256, truecolor) and why, following NO_COLOR, FORCE_COLOR and CLICOLOR, with Windows console and terminfo support, zero dependencies, fully typed
osc8link
Build, detect and strip OSC 8 terminal hyperlinks safely, with terminal support detection and plain-text fallback, zero dependencies, fully typed
colfit
Fit text to terminal columns: grapheme-aware width, truncate, pad, wrap and columnize
zerowidth
Detect, reveal and strip zero-width, bidi and other invisible characters, keeping emoji and words intact
eolnorm
Detect, normalize and count line endings in text, bytes, streams and files: git-exact, Unicode-aware, atomic rewrites, zero dependencies
ellipt
Truncate strings with an ellipsis at the start, middle or end, by characters, grapheme clusters, display columns or UTF-8 bytes, without splitting emoji or accents
cellstr
Display-width aware len, slice, pad and truncate for terminal text: wide CJK, emoji sequences, combining marks and ANSI codes
authkeyline
Parse, check and safely build OpenSSH authorized_keys lines the way sshd reads them, with fingerprints, typed and zero-dependency
envname
Validate and sanitize environment variable names against POSIX, shell and OS rules
crock
Typed Crockford base32 for bytes and ints, with normalization and an optional check symbol
idcheck
Strict validation and parsing of UUID and ULID identifier strings, zero dependencies and fully typed
emailsyntax
Syntax-only email address validation and normalization, zero dependencies, no DNS or network
priorityheader
Parse, merge and build the HTTP Priority field and PRIORITY_UPDATE frames (RFC 9218), zero dependencies and typed.
srcset
Parse, build, check and resolve the HTML srcset and sizes attributes like a browser
listunsub
Parse, build and check the email List-Unsubscribe headers: RFC 2369, RFC 8058 one-click, RFC 6068 mailto, typed and zero-dependency
geouri
Strict, typed, zero-dependency parser, builder and comparator for geo: URIs (RFC 5870), with the Android map intent form
setcookie
Parse, validate and safely build HTTP Set-Cookie headers, typed and zero-dependency, per RFC 6265bis
chunkedte
Strict, incremental, typed, zero-dependency codec for HTTP/1.1 chunked transfer coding
urlsyntax
Syntax-only http and https URL validation, parsing, normalization and resolution per RFC 3986 and RFC 9110, in agreement with browsers on hosts, zero dependencies, fully typed, no network or DNS
timingheader
Build, parse and validate the HTTP Server-Timing header the way browsers read it, with timing helpers
weblinking
Parse, validate, resolve and build the HTTP Link header (RFC 8288, RFC 8187), typed and zero-dependency
bytetrunc
Truncate a string to a maximum number of UTF-8 bytes on a safe character or grapheme boundary, with an optional counted suffix
authchallenge
Parse, validate and safely build HTTP WWW-Authenticate, Authorization and Authentication-Info headers per RFC 9110, typed and zero-dependency
preferhdr
Parse and build HTTP Prefer and Preference-Applied headers per RFC 7240, typed and zero-dependency
permspolicy
Parse, build and check Permissions-Policy headers and iframe allow attributes, typed and zero-dependency
viaheader
Parse, build and append the HTTP Via header per RFC 9110: strict or safely lenient, typed, zero-dependency
forwarded
Parse and build the HTTP Forwarded header (RFC 7239), read X-Forwarded-For, and find the real client behind trusted proxies
contentdisp
Parse and build HTTP Content-Disposition headers per RFC 6266 and RFC 8187, with safe file names
contentdigest
Build and verify RFC 9530 Content-Digest, Repr-Digest and Want-* fields: typed, streaming, zero dependencies
retryheader
Parse and build HTTP Retry-After, HTTP-date, RateLimit and RateLimit-Policy headers, zero dependencies and typed
httprange
Parse and build HTTP Range and Content-Range headers (RFC 9110), zero dependencies, fully typed
ccdirectives
Parse, validate and build HTTP Cache-Control and CDN-Cache-Control, and decide freshness, typed and zero-dependency
etag
Strict, typed and zero-dependency HTTP entity-tags (RFC 9110): create, parse and compare ETag values and evaluate If-Match, If-None-Match and If-Range
typedmultidict
Pure-Python typed ordered multi-value dictionary with a case-insensitive variant
boolish
Typed, dependency-free replacement for the strtobool removed from the standard library
mediaparse
Parse and build HTTP media types, Content-Type and Accept headers, exactly
secretmask
Typed, zero-dependency secret masker: redact API keys, tokens, passwords, emails and card numbers in strings, logs, JSON and nested data
httpquoted
Strict, typed and zero-dependency codec for HTTP quoted-strings, comments and tokens (RFC 9110): safe quoting, strict parsing, scanners and quote-aware list splitting
durablewrite
Durable, cross-platform atomic file writes: temp-same-dir plus os.replace plus file and dir fsync
dotreach
Typed, zero-dependency get/set/delete/has, flatten, glob and a CLI for nested dicts and lists by dotted path
latchkit
One-shot synchronization primitives for threads and asyncio: count-down latch, gates, abort with reason, zero-dependency and typed
backoffs
Typed backoff delays: exponential, linear and Fibonacci growth, AWS, gRPC and Google Cloud jitter, budgets, Retry-After, retry helpers and a CLI
taplimit
Small, typed, thread-safe in-process rate limiter: N calls per period, block or raise, sync or async, per key
lvxml
Codec for LabVIEW Flatten To XML / Unflatten From XML between its fixed schema and native Python values
throttlebounce
Typed, zero-dependency debounce and throttle decorators, sync and async, with lodash edge semantics and injectable time
json-pretty-diff
HTML-only diff generator for top-level JSON objects
lvext
Exact pure-Python codec for x87 80-bit extended floats and LabVIEW's flattened EXT
restful-checker
Check RESTful API compliance from OpenAPI definitions and generate HTML reports
lvtypedesc
Parse LabVIEW type descriptors into a typed tree, render them, and write them back
lvpath
Convert LabVIEW path strings, the portable /C/DIR form of config and project files, and the flattened PTH0 form to and from native paths.
lvbitpack
LabVIEW Boolean arrays in pure Python: Boolean Array To Number with its sign extension modes, Number To Boolean Array, flattening and bit packing
lvmio
Typed reader and writer for LabVIEW Measurement (.lvm) files, in the layout LabVIEW writes
lvjson
Read and write LabVIEW Flatten To JSON text: NaN and Infinity tokens, LabVIEW's exact 20-digit numbers, strict portable JSON
lvfxp
Encode and decode LabVIEW fixed-point (FXP) numbers and their flattened bytes, exactly, in pure Python
lvconfig
Typed reader and writer for LabVIEW configuration files, with LabVIEW-correct escaping, path and boolean rules
lvtime
Lossless LabVIEW 128-bit timestamp (1904 epoch) to and from datetime, UTC, sub-microsecond preserved.
lverror
Offline lookup that turns a LabVIEW or NI error code into a plain-English description, with no LabVIEW installed
lvflatten
Schema-driven codec for LabVIEW's Flatten To String binary format