Skip to main content

ResourceSync library and client

Project description

Build status

resync is a ResourceSync client and library in python. ResourceSync is a synchronization framework for the web consisting of various capabilities that allow third party systems to remain synchronized with a server’s evolving resources. The capabilities can be combined in a modular manner to meet local or community requirements.

Client usage

Typical client usage to synchronize from a source at to a set of local files would be:


which will create or update a local directory ./ Alternatively, the destination directory may be specified explicitly:

resync /tmp/my_copy

Option details and a number of different modes are described with:

resync -h

Library usage

Typical library use in a source (create and output a Resource List):

from resync import Resource,ResourceList

rl = ResourceList()
rl.add( Resource('', lastmod='2013-01-01') )
rl.add( Resource('', lastmod='2013-01-02') )
print rl.as_xml()

Typical library use in a destination (get and examine a Capability List):

from resync import CapabilityList

# Read Capability List and show supported capabilities
cl = CapabilityList()"")
for resource in cl:
    print "supports %s (at %s)" % (resource.capability,resource.uri)


The client and library are designed to work with Python 2.6 or 2.7.

Automatic installation:

easy_install resync

rsync is listed in PyPI and can be installed with pip or easy_install.

Manual installation from github:

cd /tmp
git clone git://
cd resync/
python build
sudo python install

This will install the library code in the appropriate place within your python setup, and the client resync in an appropriate system path (perhaps /usr/local/bin or /usr/bin depending on your system).

The source code is maintained on Github and there may be branches/versions available there that are not yet packaged for PyPI.

See also

ResourceSync simulator


Thanks to: Bernhard Haslhofer, Robert Sanderson

Project details

Download files

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

Source Distribution

resync-1.0.0.tar.gz (57.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page