jaraco.windows
Windows Routines by Jason R. Coombs
What it is and what it does
jaraco.windows is a pure-Python wrapper around Windows system APIs using ctypes, designed to provide access to Windows-specific functionality as needed by contributors rather than as an exhaustive API surface. It includes modules for filesystem operations, registry access, and other Windows system interactions, all implemented without compiled extensions.
The package is most commonly used to add Unix-like symlink support to the os module on Windows systems. By importing and calling the filesystem module's patch function, developers can use os.symlink and os.readlink on Windows Vista and later with the same interface as Unix, with an additional optional parameter to specify directory targets. It depends on a suite of jaraco utility packages for iteration, UI, collections, text, and functional programming helpers.
Use it for:
- Add Unix-compatible symlink support to Python code running on Windows Vista or later.
- Access Windows registry, file system metadata, or other Windows APIs from pure Python without writing C extensions.
- Monkeypatch the os module in a sitecustomize or usercustomize file to enable cross-platform symlink code.
- Integrate Windows system calls into cross-platform applications that need Windows-specific behavior.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a pure-Python interface to Windows APIs via ctypes, allowing developers to call Windows system functions directly from Python code without compiled extensions.
Yes, if you are developing on Windows and need access to Windows APIs or cross-platform symlink support. The package is stable (Production/Stable status), actively maintained, MIT-licensed, and has low install friction. It is Windows-only and requires Python 3.9+, so it is not suitable for non-Windows platforms.
Install
jaraco-windows on PyPI
pip
pip install jaraco-windowsuv
uv add jaraco-windowspoetry
poetry add jaraco-windowsInstalling jaraco.windows
Before you install
Low install friction with a wheel distribution. The package is actively maintained with a recent commit on 2026-04-13 and has been in production use since 2009, though it depends on eight runtime packages including jaraco.ui, jaraco.collections, and others from the jaraco ecosystem.
License in practice
MIT license is permissive, allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install jaraco-windows
import jaraco.windows.filesystem as fs
fs.patch_os_module() # Enable os.symlink on Windows
os.symlink(target, link_name, target_is_directory=True)
Windows-only; requires Python 3.9 or later. The symlink functionality requires Windows Vista or later.
Verify before relying
- Exact scope and completeness of Windows APIs covered by the package beyond filesystem and symlink operations.
- Performance characteristics when calling Windows APIs through ctypes versus native implementations.
- Compatibility with Windows 11 and recent Windows Server versions.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 8 — more_itertools, jaraco.ui, jaraco.collections, jaraco.text, jaraco.structures, path, tempora, jaraco.functools |
| Maintenance | actively maintained — 442 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 81,813/month — #14,199 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: jaraco_windows-5.10.0-py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pyseccomppyseccomp provides a pure-Python interface to…
permissive · top 5,000 on PyPI
pywin32-ctypesA pure-Python reimplementation of pywin32 that…
permissive · top 5,000 on PyPI
pyprctlProvides a pure-Python interface to Linux's…
permissive · top 15,000 on PyPI
cwrapcwrap is a Python wrapper around C code that…
copyleft · top 15,000 on PyPI
ghostscriptProvides a Python interface to the Ghostscript…
copyleft · top 15,000 on PyPI
pyclibraryParses C header files and automates…
permissive · top 15,000 on PyPI
win_unicode_consoleFixes Unicode input and display in Python when…
permissive · top 15,000 on PyPI
ctypesgenctypesgen parses C header files and…
permissive · top 15,000 on PyPI
fusepyfusepy provides Python bindings to FUSE…
permissive · top 15,000 on PyPI
comtypescomtypes is a pure Python library for defining,…
permissive · top 5,000 on PyPI