Skip to main content

eep-discovery — Python

EEP discovery utilities — Python port of @eep-dev/discovery.

EEP License

Overview

Python implementation of the three EEP discovery mechanisms (Whitepaper §4):

Function Description
validate_manifest() Validate /.well-known/eep.json manifests
parse_link_header() Parse HTTP Link: <url>; rel="eep" headers
parse_dns_txt_record() Parse _eep.domain TXT "v=eep1; manifest=..." records

Installation

pip install -e packages/eep-discovery-python

Usage

from eep_discovery import validate_manifest, parse_link_header, parse_dns_txt_record

# Validate manifest
result = validate_manifest({
    "did": "did:web:example.com",
    "eep_version": "0.1",
    "layers": {"layer1": "https://api.example.com/eep"},
    "supported_content_types": ["application/json"],
    "pqc_ready": False,
    "x402_enabled": True,
})
assert result.valid

# Parse Link header
links = parse_link_header('<https://example.com/eep.json>; rel="eep"')
# [EEPLinkInfo(url='https://...', rel='eep')]

# Parse DNS TXT record
dns = parse_dns_txt_record("v=eep1; manifest=https://example.com/.well-known/eep.json")
assert dns.manifest_url == "https://example.com/.well-known/eep.json"

Tests

python3 -m pytest tests/ -v

Comprehensive tests cover manifest validation, Link header parsing, and DNS TXT parsing.

License

Apache-2.0

Metadata

Release files for eep-discovery 0.1.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 eep-discovery 0.1.0
File Size Uploaded
eep_discovery-0.1.0.tar.gz 9.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for eep-discovery 0.1.0
File Interpreter ABI Platform
eep_discovery-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.8 kB

Release files / eep_discovery-0.1.0.tar.gz

Download URL eep_discovery-0.1.0.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c919f7898dc6d5901781a4141c035af06411cb416bca039059bac88ded963421
BLAKE2b-256 checksum
How to use checksums
868fbb787fb9b2aaf11a75f6bfc24a792aae3c5494df8dd6976456b6ef048ef2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / eep_discovery-0.1.0-py3-none-any.whl

Download URL eep_discovery-0.1.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce58030385ef550f880682f7ef6e44a9ec320d1b5e6fa9251f4d046950b187d8
BLAKE2b-256 checksum
How to use checksums
baa503aaa6c0fdcbec632de3f8caae02c4724715875b9f1b54181e8e03f1766c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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