Skip to main content

pep610

PyPI - Version PyPI - Python Version PyPI - Downloads codecov Documentation Status

A Python library for parsing the Direct URL Origin structure from installed packages.

PEP 610 initially specified how the Direct URL Origin of installed distributions should be recorded, but the up-to-date, canonical specification is maintained on the PyPA specs page.


Table of Contents

Installation

pip install pep610

Usage

You can use pep610.read_from_distribution to parse the Direct URL Origin structure from a Distribution object:

from importlib import metadata

import pep610

dist = metadata.distribution("pep610")

if (
    (data := pep610.read_from_distribution(dist))
    and isinstance(data, pep610.DirData)
    and data.dir_info.is_editable()
):
    print("Editable installation, a.k.a. in development mode")
else:
    print("Not an editable installation")

Or, in Python 3.10+ using pattern matching:

from importlib import metadata

import pep610

dist = metadata.distribution("pep610")

match data := pep610.read_from_distribution(dist):
    case pep610.DirData(url, pep610.DirInfo(editable=True)):
        print("Editable installation, a.k.a. in development mode")
    case _:
        print("Not an editable installation")

Development

This project uses Tox.

Run all checks with:

tox run-parallel

License

pep610 is distributed under the terms of the Apache License 2.0.

Release files for pep610 0.6.0

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

Source distribution (sdist)

Source distribution for pep610 0.6.0
File Size Uploaded
pep610-0.6.0.tar.gz 21.7 kB Details

Built distribution (wheel)

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

Total release size: 32.6 kB

Release files / pep610-0.6.0.tar.gz

Download URL pep610-0.6.0.tar.gz
Size 21.7 kB
Tags Source
SHA-256 checksum
How to use checksums
915eed71f7354b66844282df8c628853f3a9eb20e67c316e6359dd39c6bbea64
BLAKE2b-256 checksum
How to use checksums
1332393d7dd83da4b2c41af4a9d3b7fa2c5b26a64319b6bbad7a84ac9e780d62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 26, 2026.

Transparency log

Release files / pep610-0.6.0-py3-none-any.whl

Download URL pep610-0.6.0-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d04720cfdfd7a3779519d433ef27fba40a5cf717a6e7cb62f4c5ba3666c5cb6
BLAKE2b-256 checksum
How to use checksums
d2c165fa0353256432c44f77647f7ac31ffbb83bf3174de66f1dc226f47c301a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 26, 2026.

Transparency log
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