ResourceSync Change Simulator
Clone or download
Latest commit 127d356 Jan 15, 2018
Failed to load latest commit information.
config removed outdated static changememory implementations May 7, 2013
docs Update instructions Apr 14, 2017
simulator Ditch py3.3 Jan 15, 2018
.gitignore Fix MD5, fixes #29 Apr 14, 2017
.travis.yml Ditch py3.3 Jan 15, 2018 Ditch py3.3 Jan 15, 2018
README Ditch py3.3 Jan 15, 2018
README.rst Synlink Sep 5, 2013
resync-simulator Fix MD5, fixes #29 Apr 14, 2017 Ditch py3.3 Jan 15, 2018


ResourceSync Simulator

The ResourceSync Simulator simulates a ResourceSync Source, which is a server that hosts resources subject to synchronization.

Any ResourceSync-compliant client can be used to synchronize a Destination with the simulated Source. This version of the simulator is written against v1.0 of the ResourceSync specification and has been tested with v1.0.7 of our own ResourceSync client and library reference implementation.


This simulator is designed to run under Python 2.7, 3.4, 3.5 and 3.6. Check with:

python --version

Automatic installation:

easy_install resync-simulator

rsync-simulator is listed in PyPI and can be installed with pip or easy_install. Doing an easy_install should also install the dependencies resync and tornado if they are not already on your system.

Manual installation from github:

Install the resync library code and the Tornado web server (you might need to use sudo depending on you local setup):

pip install resync tornado

Get the ResourceSync Simulator from Github:

git clone git://

Quick Start

Run the source simulator (with the default configuration in ./config/default.yaml):


Access from a web browser as http://localhost:8888/

Terminate the source simulator:


How to define parameterized use cases

Parameterized Use Cases can be defined by creating a YAML configuration file (e.g., simulation1.yaml and defining a set of parameters:

    name: ResourceSync Simulator
    number_of_resources: 1000
    change_delay: 2
    event_types: [create, update, delete]
    average_payload: 1000
    max_events: -1
    stats_interval: 10

Additional resource_list_builder and change memory implementations can be attached for simulation purposes. For instance, the following configuration attaches a change memory implemented by the DynamicChangeList class:

    class: DynamicResourceListBuilder
    uri_path: resourcelist.xml

    class: DynamicChangeList
    uri_path: changelist.xml
    max_changes: 1000

See the examples in the ./config directory for further details.

See also

ResourceSync library

Author and Contributors

Author: Bernhard Haslhofer

Contributors: Simeon Warner