Skip to main content

Compatible with XRD 1.0 (execpt XRD Signature and XRDS) http://docs.oasis-open.org/xrd/xrd/v1.0/xrd-1.0.html

Outstanding issues:

  • support ds:Signature

  • support XRDS

  • parsing of Expires date stamp from XML

  • more tests are needed

Basic usage:

from xrd import XRD, Link

lnk = Link(rel='http://spec.example.net/photo/1.0',
           type='image/jpeg',
           href='http://photos.example.com/gpburdell.jpg')
lnk.titles.append(('User Photo', 'en'))
lnk.titles.append(('Benutzerfoto', 'de'))
lnk.properties.append(('http://spec.example.net/created/1.0', '1970-01-01'))

xrd = XRD(subject=http://example.com/gpburdell)
xrd.properties.append('http://spec.example.net/type/person')
xrd.links.append(lnk)

xrd.to_xml()

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xrd-0.1.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file xrd-0.1.tar.gz.

File metadata

  • Download URL: xrd-0.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xrd-0.1.tar.gz
Algorithm Hash digest
SHA256 51d01f732b5b5b7983c5179ffaed864408d95a667b3a6630fe27aa7528274089
MD5 9d2ebc24c708803a1c92951e1336f5d7
BLAKE2b-256 5f688a1ddbdc5d191bce0094b4e0409b05e3918f83170845d1dfff138ba9102c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1 This release

1 file

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