resync/examples/README_client_library_in_destination.py
2020-12-16 11:19:48 -05:00

9 lines
339 B
Python

#!/usr/bin/env python
from resync import CapabilityList
# Read Capability List and show supported capabilities
cl = CapabilityList()
cl.read("https://raw.github.com/resync/resync/0.6/resync/test/testdata/examples_from_spec/resourcesync_ex_2_6.xml")
for resource in cl:
print "supports %s (at %s)" % (resource.capability,resource.uri)