py
library with cross-python path, ini-parsing, io, code, log facilities
Install
py on PyPI
pip
pip install pyuv
uv add pypoetry
poetry add pyPackage facts
| License | MIT license (permissive) |
| Python support | supports the current Python release (>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 1,743 days since the last release |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: py-1.11.0-py2.py3-none-any.whl
About py
from the package's own PyPI description — quoted content, verbatim
.. image:: https://img.shields.io/pypi/v/py.svg :target: https://pypi.org/project/py
.. image:: https://img.shields.io/conda/vn/conda-forge/py.svg :target: https://anaconda.org/conda-forge/py
.. image:: https://img.shields.io/pypi/pyversions/py.svg :target: https://pypi.org/project/py
.. image:: https://github.com/pytest-dev/py/workflows/build/badge.svg :target: https://github.com/pytest-dev/py/actions
NOTE: this library is in maintenance mode and should not be used in new code.
The py lib is a Python development support library featuring the following tools and modules:
py.path: uniform local and svn path objects -> please use pathlib/pathlib2 insteadpy.apipkg: explicit API control and lazy-importing -> please use the standalone package insteadpy.iniconfig: easy parsing of .ini files -> please use the standalone package insteadpy.code: dynamic code generation and introspection (deprecated, moved topytestas a implementation detail).
NOTE: prior to the 1.4 release this distribution used to contain py.test which is now its own package, see https://docs.pytest.org
For questions and more information please visit...
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
The py library provides cross-platform path manipulation, INI file parsing, code introspection, and other Python development utilities, though it is now in maintenance mode with most functionality superseded by modern alternatives.
Installation is frictionless with no runtime dependencies, but the package is in abandoned maintenance status as of 1743 days since last release, signaling it should not be used in new code.
MIT license permits commercial and private use with minimal restrictions, though the permissive treatment is moot given the package's maintenance-mode status.
Usage
pip install py==1.11.0
import py
path = py.path.local('.')
Package is in maintenance mode and deprecated; most functionality has been moved to standalone packages (pathlib for paths, pytest for code introspection) or should be replaced with modern alternatives.
Verdict: The py library is a mature, permissively licensed package with zero known vulnerabilities and low install friction, but it has been abandoned for 1743 days and explicitly marked as unsuitable for new code. Its core functionality has been superseded by pathlib, standalone apipkg and iniconfig packages, and pytest internals. Use only for maintaining legacy code.
Needs verification
- Whether any of py's submodules (py.path, py.apipkg, py.iniconfig, py.code) remain actively used in production systems despite deprecation guidance.
- Current adoption rate among legacy projects still depending on py versus those that have migrated to modern replacements.
Similar packages
permissive · top 100 on PyPI
pytest-covpermissive · top 1,000 on PyPI
pytest-timeoutpermissive · top 1,000 on PyPI
pytest-runnerpermissive · top 1,000 on PyPI
pytest-mockpermissive · top 1,000 on PyPI
pytest-envpermissive · top 1,000 on PyPI
execnetpermissive · top 1,000 on PyPI
iniconfigpermissive · top 100 on PyPI
asynciopermissive · top 1,000 on PyPI
pytest-htmlcopyleft · top 1,000 on PyPI