This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Synctool is a library for Django to make syncing querysets between databases easy. No more manually dumping or entering data. No more out-of-date fixtures. Just get the data you want, on demand.

Basic usage

Here’s an example for syncing the django.contrib.sites app.

1. Create an api view

# myapp.views

from synctools.routing import Route

route = Route()

@route.app("sites", "sites")

2. Add the urls to your project

# myproject.urls

from django.conf.urls import include, url
from myapp.views import route

urlpatterns += [
    url("^sync/", include(route.urlpatterns)),
]

3. Sync data from the remote endpoint

# myclient.py

from synctools.client import Client

client = Client(
    api_url="https://myserver.com/sync/",
    api_token="<token>",
)

if __name__ == "__main__":
    client.sync("sites")

The sites app can now be synced locally from a remote data source by calling:

python myclient.py

How it works

Under the hood Synctool uses the Django JSON serializer to pass data between servers. Synctool isn’t limited to syncing whole applications. It can also sync custom querysets and even download associated images.

Installation

Synctool can be installed from PyPI:

pip install django-synctool

Requirements

This library requires Django >= 1.7 and either Python 2.7 or Python >= 3.3.

Documentation

You can read the documentation here.

Release History

Release History

1.1.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-synctool-1.1.0.tar.gz (6.5 kB) Copy SHA256 Checksum SHA256 Source Nov 2, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting