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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-xrd-0.1.tar.gz
(5.3 kB
view details)
File details
Details for the file python-xrd-0.1.tar.gz
.
File metadata
- Download URL: python-xrd-0.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 487fe569a394615ff9e8596b6ca5388b16fdfe4a22be168fe0901edd13a8787b |
|
MD5 | a8b857bd64bede48cf51df7027e8c3ea |
|
BLAKE2b-256 | f5955865ab34ed5980d41ca5cdbd4ee10781dd71cb37ab44a10a11b525670e2d |