Skip to main content

resync

Build Status Test Coverage

resync is a ResourceSync library with supporting client scipts, written 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 http://source.example.com/ to a set of local files would be

resync-sync http://source.example.com/

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

resync-sync http://source.example.com/ /tmp/my_copy

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

resync-sync -h

Python library usage

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

from resync import Resource, ResourceList

rl = ResourceList()
rl.add( Resource('http://example.com/res1', lastmod='2013-01-01') )
rl.add( Resource('http://example.com/res2', 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()
cl.read("https://raw.github.com/resync/resync/1.0/resync/test/testdata/examples_from_spec/resourcesync_ex_2_6.xml")
for resource in cl:
    print "supports %s (at %s)" % (resource.capability,resource.uri)

Installation

The client and library are designed to work with Python 3.5 and up. (The last version supporting Python 2.7 was 1.0.9, also on PyPI)

Automatic installation

pip 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://github.com/resync/resync.git
cd resync/
python setup.py build
python setup.py install

This will install the library code in the appropriate place within a user-space python setup, including the clients resync-sync, resync-build and resync-explorer. Use of sudo to install in system spaces is generally discouraged.

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

See also

Contributors

Thanks to: Bernhard Haslhofer, [Robert Sanderson](<https://github.com/azaroth42) and other contributors.

See CONTRIBUTING.md for guidelines for contributing.

Copyright 2012--2020 Simeon Warner and contributors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

See LICENSE.txt

Metadata

Release files for resync 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for resync 2.0.1
File Size Uploaded
resync-2.0.1.tar.gz 59.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for resync 2.0.1
File Interpreter ABI Platform
resync-2.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 137.9 kB

Release files / resync-2.0.1.tar.gz

Download URL resync-2.0.1.tar.gz
Size 59.9 kB
Tags Source
SHA-256 checksum
How to use checksums
dee4405afdb4685a83c8dda67853e8ac52034fe249cec2964707084d8580310c
BLAKE2b-256 checksum
How to use checksums
12f9f9e2c1f67179450ff71564ceab6fe831747442c64b8d2196ed34273d335d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.6

Release files / resync-2.0.1-py3-none-any.whl

Download URL resync-2.0.1-py3-none-any.whl
Size 78.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f810ccf466fa39f0d2d4f6fccd2ad6e79d0ae6c22e573680c66e65ebbcca4b5d
BLAKE2b-256 checksum
How to use checksums
6a2460c305c74b4f26de64fb6f9308fb07d515bc901df0b4476a881581c5d576
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.6

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files

2.0.0

2 release files

1.0.9

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.1

1 release file

1.0.0

1 release file

0.9.5

1 release file

0.9.4

1 release file

0.9.3

1 release file

0.9.2

1 release file

0.9.1

1 release file

0.6.2

1 release file

0.6.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page