$npx skillfedfor your agent

read-version

Extract your project's __version__ variable

SkipPyPI Python ModulesReleased Jul 2021185.0K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — read_version-0.3.2-py3-none-any.whl
v0.3.2 · released 2021-07-25 · Python ~=3.6 · 1 runtime deps: setuptools

No. The package is abandoned (last release July 2021, repository archived) and explicitly superseded by setuptools' native attr: directive. New projects should use setuptools 46.4.0+ instead. Only consider read_version if maintaining legacy code that already depends on it and you cannot upgrade setuptools.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.6 or higher.
  • The declarative approach also requires setuptools 42.0.0 or later.
  • The package is no longer maintained; modern projects should use setuptools' native attr: directive instead.

License · maintenance · safety

MIT (permissive) — Licensed under MIT (permissive), so there are no licensing restrictions on use or redistribution.

last release 2021-07-25 (1846 days) · last repo commit 2022-02-05 · 7 stars · archived

0 known vulnerabilities (OSV.dev, 2026-08-14) · 185,030 downloads/mo, #10,019 on PyPI

Verify before relying

# In setup.py:
from read_version import read_version

setup(
    version=read_version('packagename', '__init__.py'),
    ...
)

# Or declaratively in pyproject.toml:
# [tool.read_version]
# version = "packagename:__version__"
  • Whether the package's static analysis correctly handles all edge cases in real-world __version__ assignments (e.g., complex expressions, conditional assignments).
  • Performance characteristics when parsing large or complex source files.
Same gist for agents: .md · .json

What it is and what it does

read_version is a small utility that parses Python source files to extract the value of a variable (typically __version__) for use during package setup. It was designed to eliminate the repetitive boilerplate code that developers write in setup.py to read version strings from their package's __init__.py or other source files.

The package offers two approaches: a functional API (import and call read_version() in setup.py) and a declarative approach (configure metadata extraction via pyproject.toml). However, the package is abandoned and explicitly marked obsolete—setuptools has supported the attr: directive natively since version 46.4.0, which provides the same functionality without an external dependency. New projects should use setuptools' built-in mechanism instead.

Use it for

  • Migrating older projects that use read_version to avoid rewriting setup.py when upgrading setuptools.
  • Extracting multiple metadata fields (author, license, keywords) from source variables via pyproject.toml configuration.
  • Reading version from non-standard variable names or file locations using the variable and path parameters.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No.

The package is abandoned (last release July 2021, repository archived) and explicitly superseded by setuptools' native attr: directive. New projects should use setuptools 46.4.0+ instead. Only consider read_version if maintaining legacy code that already depends on it and you cannot upgrade setuptools.

Install

read-version on PyPI

Before you install

Installation is straightforward with low friction—a pure Python wheel with only setuptools as a runtime dependency. However, the package is abandoned as of 2021 and explicitly superseded by setuptools' native attr: directive (available since setuptools 46.4.0), making it obsolete for new projects.

Requires Python 3.6 or higher. The declarative approach also requires setuptools 42.0.0 or later. The package is no longer maintained; modern projects should use setuptools' native attr: directive instead.

License in practice

Licensed under MIT (permissive), so there are no licensing restrictions on use or redistribution.

Quickstart

# In setup.py:
from read_version import read_version

setup(
    version=read_version('packagename', '__init__.py'),
    ...
)

# Or declaratively in pyproject.toml:
# [tool.read_version]
# version = "packagename:__version__"

Verify before relying

  • Whether the package's static analysis correctly handles all edge cases in real-world __version__ assignments (e.g., complex expressions, conditional assignments).
  • Performance characteristics when parsing large or complex source files.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release ~=3.6
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
setuptools
MaintenanceAbandoned 1,846 days since the last release
Last repo commit repository archived
First released
Downloads185,030 / month, #10,019 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 7 - InactiveFramework :: Setuptools PluginIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 2Programming Language :: Python :: 3Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python ModulesTopic :: System :: Software Distribution

Evidence: read_version-0.3.2-py3-none-any.whl

Tags

Capabilities
extract version from python sourcesetup.py version parsingread __version__ variablesetuptools version automationpackage version from source file
Topics
build-tooldeprecatedsetuptools-plugin
PyPI keywords
packagingsetuptoolsversion

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “extract version from python source”

  • read-versionExtracts a version string or other variable from Python source code…
  • single-sourceExtracts your package version from pyproject.toml or other config…
  • versioningitAutomatically determines your Python package's version from Git or…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also setuptools-scm · single-source · versioningit · setuptools-git-versioning · pypi-simple · nameof · versioneer-518 · versioneer · hatch-nodejs-version · varname