101 projects
get-args-and-origin
Compatibility helpers for typing.get_origin() and typing.get_args() on Python < 3.8.
procsock
A small tool for running and tracking background processes over a local TCP port.
txthighlight
A tiny local web app for highlighting and commenting on plain text files.
sshserve
Userland non-daemon SSH server inheriting current user privileges, with shell, exec, SFTP, and TCP forwarding on POSIX systems.
ctypes-unicode-proclaunch
A minimal, robust, and Unicode-aware process launching library using ctypes.
assemblyai-transcribe
Small CLI for uploading local audio to AssemblyAI and printing or saving transcripts.
chatrepl
A Python 2.7+ REPL for interacting with LLMs with an OpenAI Chat Completions-compatible API.
sshshim
SSH connection reuse through a temporary localhost SSH endpoint.
resumable-file-server
A simple, multithreaded HTTP file server supporting resumable downloads and file uploads written in pure Python. Drop-in replacement for `SimpleHTTPServer`, `http.server`.
pyqtcompat
A single-module Qt binding compatibility layer for PyQt6, PySide6, PyQt5, PySide2, PyQt4, and PySide.
sdial
Speed dial for the CLI-phile.
run-with-coverage
Run a Python script with coverage tracking and allow the user to specify the coverage data file.
interactive-dependency-resolver
A tool to interactively resolve Python wheel dependencies.
safetensors-layer-grabber
Extracts all weights corresponding to a specific layer or block from large models saved in safetensors format, and exports them as a PyTorch-compatible state dict.
llmgcalparse
Create Google Calendar event URLs interactively from a natural language description, leveraging LLMs with an OpenAI Chat Completions-compatible API and user edits.
ssheval
A cross-platform pure Python script for executing remote commands over SSH and streaming raw stdout/stderr.
simple-dav-client
A minimal, robust command-line client for interacting with a WebDAV server over plain HTTP with no authentication.
save-page-as-md
Download a webpage and save its content as Markdown, organizing the output on disk to mirror the webpage's domain and path.
get-local-address
A simple utility to determine the local IP address that would be used to communicate with a specified remote UDP server.
frameperfect
A lightweight GUI application for precise frame-by-frame video analysis and screenshot extraction, built with PySide/PyQt and OpenCV.
lrphotocopy
Organize and copy your photos into folders by shooting date, using Adobe Lightroom's year/date folder structure.
chromecodepdf
A Python script that converts code files into syntax-highlighted PDF documents using Chrome and Pygments.
extract-pdf-highlighted-text
Extract text that has been highlighted in PDF documents.
symbolpilot
An interactive, human-in-the-loop object file symbol resolver.
live-tee-and-capture
Run a command and tee its stdout/stderr in real time to your terminal while also capturing them.
threading-value-event
A thread synchronization primitive for Python like `threading.Event`, but instead of just a boolean flag, it carries any Python value.
build-filesystem-trie
Programmatically generate a trie representing a section of the filesystem, closely matching what the UNIX `tree` command outputs.
pyqt-current-exception-message-box
A simple utility to display the current exception in a PyQt message box.
hwc-bgrx-8888-ndarray-to-pil-image
Convert an HWC BGR 888 or BGRX 8888 NumPy ndarray to an HWC RGB 888 PIL.Image, with the alpha/unused channel discarded.
hwc-ndarray-letterbox
Letterbox an HWC ndarray image to fit the target width and height while updating the homogeneous transformation matrix.
hwc-bgrx-8888-ndarray-to-chw-rgb-0-1-tensor
Convert an HWC BGR 888 or BGRX 8888 NumPy ndarray to a CHW RGB PyTorch tensor, with pixel values normalized to `[0, 1]` and the alpha/unused channel discarded.
fspathverbs
A Python package for representing filesystem paths as a sequence of verbs.
tinytrie
A minimal type-safe trie (prefix tree) implementation in Python.
pyssair
A first-of-its-kind project that faithfully converts Python bytecode into a static single assignment (SSA)-like intermediate representation (IR) for program analysis.
yield-module-names-and-python-file-paths
Recursively traverses a source directory and yields tuples of Python module names as used in import statements and their corresponding file paths.
resolve-module-import
Resolves a (possibly relative) module import to its fully qualified module name.
simulate-argument-binding
A pure Python library to simulate Python's internal argument binding given function signature details, default values, and user-provided arguments/keywords.
python-runtime-entity-wrappers
A set of small classes to represent Python runtime objects - modules, classes, functions, constants, and abstract instances - in a structured and consistent way.
networkx-reverse-topological-sort
Reverse topological sort utilities for NetworkX: easily stratify or sort nodes in a DAG from leaves to root.
directory-file-mapping
A simple Python class that lets you treat the files in a directory as a mapping object, like a dict.
messageboard
A synchronization primitive containing a value, allowing threads to concurrently set the value and peek the most recently set value.
frozen-odict
An immutable, hashable, and ordered mapping.
minimal-thread-pool
A minimal Python 2+ thread pool designed for clarity, without reliance on `concurrent.futures`.
python-code-builder
A library for dynamically constructing Python code with strong, explicit scoping and symbol tracking.
transient-in-memory-semantic-search-engine
A transient, in-memory semantic search engine for small document collections, powered by sentence embeddings from an OpenAI Embeddings-compatible API.
trim-hwc-ndarray
A simple utility for trimming borders from images represented as HWC ndarrays, based on the color value of a specified corner.
retrieve-sentence-embeddings
A simple function to retrieve sentence embeddings from an OpenAI Embeddings-compatible API.
qimage-hwc-bgrx-8888-ndarray-interop
Zero-copy conversion between Qt QImage (in `Format_RGB32`/`Format_ARGB32`) and NumPy ndarray (in HWC BGRX 8888 format).
file-to-unicode-base64-data-uri
A simple, efficient utility for converting files to Unicode base64-encoded data URIs.
guess-file-mime-type
A minimal, cross-platform, and cross-version utility to safely guess a file's MIME type.
simple-json-mapped-dict
A simple `MutableMapping` (dict-like) that transparently persists its contents to a JSON file on disk. Uses only the most reliable file opening modes (`r` and `w`). Maximum compatibility with network filesystems (e.g. NAS, SSHFS, NFS), at the cost of atomicity and data race safety.
find-unicode-executable
A Python package that provides cross-platform Unicode executable path resolution. Like Unix `which` command but better.
get-unicode-multiline-input-with-editor
Opens `$EDITOR` to get multi-line input as a list of Unicode strings, just like what `git commit` does.
unicode-raw-input
A cross-platform Unicode-aware replacement for Python's `raw_input()` (Python 2) and `input()` (Python 3) that handles Unicode text consistently across Python versions and operating systems.
unicode-text-to-identifier
A tool that converts arbitrary text (like user input or file names) into valid Python identifiers while preserving as much of the original meaning as possible.
prefix-free-sorted-cowlist-set
A Python implementation of a prefix-free, sorted set of COWList, backed by a trie data structure for efficient prefix checking and maintenance of sorted order.
hwc-chw-ndarray-conversion
Explicit, contiguous HWC <-> CHW ndarray conversion.
escape-nt-command-line-argument
A readable, reliable, reviewable solution for escaping NT command-line arguments with explicit, single-pass state machine logic.
send-recv-json
Send and receive JSONs over byte streams - sockets, pipes, files, and more - using a universal, length-prefixed binary framing scheme.
get-unicode-arguments-to-launch-editor
A cross-platform Python utility that gets Unicode arguments to launch an EDITOR, using user input, environment variables, and platform-specific fallbacks.
get-unicode-shell
A cross-platform utility to get the current SHELL as a Unicode string.
get-unicode-home
A cross-platform utility to get the current HOME as a Unicode string.
read-unicode-environment-variables-dictionary
Use raw ctypes to read Unicode environment variables directly from the OS, even where Python's own `os` module is incomplete or restricted.
sorted-fractionally-indexed-cowlist-set
A Python package for managing a sorted, fractionally-indexed set of COWList containing elements within a given alphabet.
less-than-key
Custom ordering for sorting and data structures, using your own less-than (`<`) function.
rawattr
Low-level Python attribute access utilities that bypass the descriptor protocol.
put-back-iterator
A drop-in replacement for `iter(iterable)` that allows **putting items back** after consuming them. Ideal for parsing, lexing, and other scenarios requiring lookahead or backtracking.
generalized-range
A flexible Python generator function that extends the capabilities of Python's built-in `range` to all types, using customizable comparator and successor functions.
tasklifo
Last-in-first-out (LIFO), Git-inspired, LLM-assisted, Shell-friendly task manager for the busy and frequently interrupted.
chat-completions-conversation
A Python 2+ library for conversations with LLMs providing an OpenAI Chat Completions-compatible API. That includes OpenAI's models, Google Gemini, DeepSeek, and anything you can run on ollama.
tree-traversals
Efficient and generic traversals for any Python tree structure with full ancestor paths.
text-to-identifier
A tool that converts arbitrary text (like user input or file names) into valid Python identifiers while preserving as much of the original meaning as possible.
textcompat
Python library handling conversions from `typing.Text` (Python 2 `unicode`, Python 3 `str`) to UTF-8, URI, stdin/stdout, and filesystem `str`s, and vice versa.
intersperse
A simple Python generator that yields elements from an iterable, inserting a separator value between each element.
seqtok
A Python implementation mimicking C's `strtok()` behavior for generic sequences, but without global state.
canonical-interval
Self-normalizing interval data structure that automatically maintains valid form with useful utility methods.
determine-slice-assignment-action
This function determines what action should be taken when performing slice assignment on a sequence.
canonical-range
A Python implementation of a **canonical range** (where `step != 0, length >= 0, stop == start + length * step`) with enhanced functionality compared to Python's built-in `range`.
managed-readline-sessions
A lightweight, Pythonic interface for building Python CLI tools with tab completion and command history.
cowlist
An efficient, immutable, type-safe copy-on-write (COW) list implementation for Python 2+.
tuplehash
Pure Python reimplementation of CPython's `tuplehash` function with exact overflow behavior, designed for hashing user-defined immutable sequences.
lazily-sliced
A memory-efficient Python sequence wrapper that applies slicing operations lazily, deferring data access until elements are actually needed.
fixed-width-int
A robust implementation of fixed-width integers in Python that precisely emulates C-style behavior.
split-command-line
A Python library for splitting command-line arguments according to NT (Windows) and POSIX (Unix) rules. Like `shlex.split` but with NT support and without shell features.
uniqdeque
A hybrid data structure combining a deque and a set (unique elements).
random-byte-array
A lightweight Python utility for generating random byte arrays.
pyqt-screen-capture
A screen capture utility that works with PyQt6, PySide6, PyQt5, PySide2, PyQt4, and PySide.
detect-qt-binding
A lightweight utility to automatically detect which Qt Python binding is available in your environment.
unicode-string-to-identifier
A tool that converts arbitrary text (like user input or file names) into valid Python identifiers while preserving as much of the original meaning as possible.
reduce-ex
n-ary reduce operator with support for prefix/suffix elements. Intermediate results are yielded as well. Like `functools.reduce` but more powerful.
posix-or-nt
Determine whether the current Python interpreter is running on a POSIX-like or Windows NT platform---even when `os.name` is `java` (Jython).
lxml-xpath-utils
A collection of utility functions for working with lxml and XPath.
ipython-kernel-executor
A lightweight Python package to execute code in an isolated IPython kernel and capture results, stdout, and stderr.
get-chrome-paths
A cross-platform Python utility to find Chromium-based browser executable paths on Windows, macOS, and Linux.
coverage2sketch
A tool to extract "sketches" of Python source files based on coverage data.
6 archived projects
state-tuple-value-object Archived
A simple Python base class for immutable objects whose value is determined by a state tuple.
expand-and-setitem Archived
A small utility function that expands a deque as needed and sets an item at the specified index, filling new positions with a user-specified value.
cmake2chat Archived
Scans your CMake project directory, builds a tree view of the codebase, and exports the tree view, the paths of all `CMakeLists.txt` files along with their contents to an OpenAI Chat Completions-compatible JSON.
autoregressive-language-model-generate Archived
A generator-based, stateless autoregressive inference loop for language models compatible with HuggingFace's Transformers API.
dir2chat Archived
Generate an OpenAI Chat Completions-compatible JSON from all UTF-8 plaintext files in a directory.
hwc-bgr-888-image-to-base64-uri Archived
A specialized utility for converting OpenCV-compatible HWC BGR 888 images to Base64-encoded data URIs. Can be used with the OpenAI Chat Completions API.