Skip to main content
Avatar for Jifeng Wu from gravatar.com

Jifeng Wu

Username    jifengwu2k
Date joined   Joined

101 projects

get-args-and-origin

Last released

Compatibility helpers for typing.get_origin() and typing.get_args() on Python < 3.8.

procsock

Last released

A small tool for running and tracking background processes over a local TCP port.

txthighlight

Last released

A tiny local web app for highlighting and commenting on plain text files.

sshserve

Last released

Userland non-daemon SSH server inheriting current user privileges, with shell, exec, SFTP, and TCP forwarding on POSIX systems.

ctypes-unicode-proclaunch

Last released

A minimal, robust, and Unicode-aware process launching library using ctypes.

assemblyai-transcribe

Last released

Small CLI for uploading local audio to AssemblyAI and printing or saving transcripts.

chatrepl

Last released

A Python 2.7+ REPL for interacting with LLMs with an OpenAI Chat Completions-compatible API.

sshshim

Last released

SSH connection reuse through a temporary localhost SSH endpoint.

resumable-file-server

Last released

A simple, multithreaded HTTP file server supporting resumable downloads and file uploads written in pure Python. Drop-in replacement for `SimpleHTTPServer`, `http.server`.

pyqtcompat

Last released

A single-module Qt binding compatibility layer for PyQt6, PySide6, PyQt5, PySide2, PyQt4, and PySide.

sdial

Last released

Speed dial for the CLI-phile.

run-with-coverage

Last released

Run a Python script with coverage tracking and allow the user to specify the coverage data file.

interactive-dependency-resolver

Last released

A tool to interactively resolve Python wheel dependencies.

safetensors-layer-grabber

Last released

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

Last released

Create Google Calendar event URLs interactively from a natural language description, leveraging LLMs with an OpenAI Chat Completions-compatible API and user edits.

ssheval

Last released

A cross-platform pure Python script for executing remote commands over SSH and streaming raw stdout/stderr.

simple-dav-client

Last released

A minimal, robust command-line client for interacting with a WebDAV server over plain HTTP with no authentication.

save-page-as-md

Last released

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

Last released

A simple utility to determine the local IP address that would be used to communicate with a specified remote UDP server.

frameperfect

Last released

A lightweight GUI application for precise frame-by-frame video analysis and screenshot extraction, built with PySide/PyQt and OpenCV.

lrphotocopy

Last released

Organize and copy your photos into folders by shooting date, using Adobe Lightroom's year/date folder structure.

chromecodepdf

Last released

A Python script that converts code files into syntax-highlighted PDF documents using Chrome and Pygments.

extract-pdf-highlighted-text

Last released

Extract text that has been highlighted in PDF documents.

symbolpilot

Last released

An interactive, human-in-the-loop object file symbol resolver.

live-tee-and-capture

Last released

Run a command and tee its stdout/stderr in real time to your terminal while also capturing them.

threading-value-event

Last released

A thread synchronization primitive for Python like `threading.Event`, but instead of just a boolean flag, it carries any Python value.

build-filesystem-trie

Last released

Programmatically generate a trie representing a section of the filesystem, closely matching what the UNIX `tree` command outputs.

pyqt-current-exception-message-box

Last released

A simple utility to display the current exception in a PyQt message box.

hwc-bgrx-8888-ndarray-to-pil-image

Last released

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

Last released

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

Last released

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

Last released

A Python package for representing filesystem paths as a sequence of verbs.

tinytrie

Last released

A minimal type-safe trie (prefix tree) implementation in Python.

pyssair

Last released

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

Last released

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

Last released

Resolves a (possibly relative) module import to its fully qualified module name.

simulate-argument-binding

Last released

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

Last released

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

Last released

Reverse topological sort utilities for NetworkX: easily stratify or sort nodes in a DAG from leaves to root.

directory-file-mapping

Last released

A simple Python class that lets you treat the files in a directory as a mapping object, like a dict.

messageboard

Last released

A synchronization primitive containing a value, allowing threads to concurrently set the value and peek the most recently set value.

frozen-odict

Last released

An immutable, hashable, and ordered mapping.

minimal-thread-pool

Last released

A minimal Python 2+ thread pool designed for clarity, without reliance on `concurrent.futures`.

python-code-builder

Last released

A library for dynamically constructing Python code with strong, explicit scoping and symbol tracking.

transient-in-memory-semantic-search-engine

Last released

A transient, in-memory semantic search engine for small document collections, powered by sentence embeddings from an OpenAI Embeddings-compatible API.

trim-hwc-ndarray

Last released

A simple utility for trimming borders from images represented as HWC ndarrays, based on the color value of a specified corner.

retrieve-sentence-embeddings

Last released

A simple function to retrieve sentence embeddings from an OpenAI Embeddings-compatible API.

qimage-hwc-bgrx-8888-ndarray-interop

Last released

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

Last released

A simple, efficient utility for converting files to Unicode base64-encoded data URIs.

guess-file-mime-type

Last released

A minimal, cross-platform, and cross-version utility to safely guess a file's MIME type.

simple-json-mapped-dict

Last released

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

Last released

A Python package that provides cross-platform Unicode executable path resolution. Like Unix `which` command but better.

get-unicode-multiline-input-with-editor

Last released

Opens `$EDITOR` to get multi-line input as a list of Unicode strings, just like what `git commit` does.

unicode-raw-input

Last released

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

Last released

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

Last released

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

Last released

Explicit, contiguous HWC <-> CHW ndarray conversion.

escape-nt-command-line-argument

Last released

A readable, reliable, reviewable solution for escaping NT command-line arguments with explicit, single-pass state machine logic.

send-recv-json

Last released

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

Last released

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

Last released

A cross-platform utility to get the current SHELL as a Unicode string.

get-unicode-home

Last released

A cross-platform utility to get the current HOME as a Unicode string.

read-unicode-environment-variables-dictionary

Last released

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

Last released

A Python package for managing a sorted, fractionally-indexed set of COWList containing elements within a given alphabet.

less-than-key

Last released

Custom ordering for sorting and data structures, using your own less-than (`<`) function.

rawattr

Last released

Low-level Python attribute access utilities that bypass the descriptor protocol.

put-back-iterator

Last released

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

Last released

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 released

Last-in-first-out (LIFO), Git-inspired, LLM-assisted, Shell-friendly task manager for the busy and frequently interrupted.

chat-completions-conversation

Last released

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

Last released

Efficient and generic traversals for any Python tree structure with full ancestor paths.

text-to-identifier

Last released

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

Last released

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

Last released

A simple Python generator that yields elements from an iterable, inserting a separator value between each element.

seqtok

Last released

A Python implementation mimicking C's `strtok()` behavior for generic sequences, but without global state.

canonical-interval

Last released

Self-normalizing interval data structure that automatically maintains valid form with useful utility methods.

determine-slice-assignment-action

Last released

This function determines what action should be taken when performing slice assignment on a sequence.

canonical-range

Last released

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

Last released

A lightweight, Pythonic interface for building Python CLI tools with tab completion and command history.

cowlist

Last released

An efficient, immutable, type-safe copy-on-write (COW) list implementation for Python 2+.

tuplehash

Last released

Pure Python reimplementation of CPython's `tuplehash` function with exact overflow behavior, designed for hashing user-defined immutable sequences.

lazily-sliced

Last released

A memory-efficient Python sequence wrapper that applies slicing operations lazily, deferring data access until elements are actually needed.

fixed-width-int

Last released

A robust implementation of fixed-width integers in Python that precisely emulates C-style behavior.

split-command-line

Last released

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

Last released

A hybrid data structure combining a deque and a set (unique elements).

random-byte-array

Last released

A lightweight Python utility for generating random byte arrays.

pyqt-screen-capture

Last released

A screen capture utility that works with PyQt6, PySide6, PyQt5, PySide2, PyQt4, and PySide.

detect-qt-binding

Last released

A lightweight utility to automatically detect which Qt Python binding is available in your environment.

unicode-string-to-identifier

Last released

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

Last released

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

Last released

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

Last released

A collection of utility functions for working with lxml and XPath.

ipython-kernel-executor

Last released

A lightweight Python package to execute code in an isolated IPython kernel and capture results, stdout, and stderr.

get-chrome-paths

Last released

A cross-platform Python utility to find Chromium-based browser executable paths on Windows, macOS, and Linux.

coverage2sketch

Last released

A tool to extract "sketches" of Python source files based on coverage data.

6 archived projects

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page