Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

Package for serializing and deserializing of XRD documents

Project Description

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()

Release history Release notifications

This version
History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
python-xrd-0.1.tar.gz (5.3 kB) Copy SHA256 hash SHA256 Source None Apr 4, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page