Skip to main content

image image image Documentation

unref

Find unreferenced Python code.

unref reports the functions, classes, methods, variables and attributes of a Python project that nothing references.

Documentation: unref.readthedocs.io

Quick start

Check the project in the current directory, using uvx:

$ uvx unref
src/project/models.py:12: unused class 'Account'
src/project/utils.py:40: unused function 'parse_date'

Why

Unused code piles up in every codebase, and faster than ever now that AI tools write much of it and tend to leave unused code behind.

Finding and removing dead code reduces bloat, speeds up AI code scanning and simplifies development.

Ruff does not support this yet, see astral-sh/ruff#872. unref exists to fill the gap until Ruff supports it natively.

Contributing

See CONTRIBUTING.md.

Metadata

Release files for unref 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unref 0.0.3
File Size Uploaded Provenance Actions
unref-0.0.3.tar.gz 131.8 kB Without provenance Details for unref-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unref 0.0.3
File Interpreter ABI Platform Actions
unref-0.0.3-py3-none-any.whl Python 3 none any Details for unref-0.0.3-py3-none-any.whl

Total release size: 149.6 kB

Release files / unref-0.0.3.tar.gz

Download URL unref-0.0.3.tar.gz
Size 131.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ddb707e174ea0167f85ec6647b4c08f64e28e634ceebf9978e276186555c87e0
BLAKE2b-256 checksum
How to use checksums
7fc704f088624d7e049afcc331d2ef45af29e5362097f0eccdca5b52a96ccc3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / unref-0.0.3-py3-none-any.whl

Download URL unref-0.0.3-py3-none-any.whl
Size 17.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bea93ad9be310bac2342145b81e7f8fdca43e7056f4a5b7b5c6ec4408f16bbc4
BLAKE2b-256 checksum
How to use checksums
a7106380b60722fdc03d8a31b7cdb4c2c52c1887ef8701945298721cc4cb174b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for unref 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page