معرفی شرکت ها


django-synctool-1.1.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Sync data between databases.
ویژگی مقدار
سیستم عامل -
نام فایل django-synctool-1.1.0
نام django-synctool
نسخه کتابخانه 1.1.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Preston Timmons
ایمیل نویسنده prestontimmons@gmail.com
آدرس صفحه اصلی https://github.com/prestontimmons/django-synctool
آدرس اینترنتی https://pypi.org/project/django-synctool/
مجوز UNKNOWN
Django Synctool =============== 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** .. code-block:: python # myapp.views from synctools.routing import Route route = Route() @route.app("sites", "sites") **2. Add the urls to your project** .. code-block:: python # 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** .. code-block:: python # 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`_. .. _`read the documentation here`: http://django-synctool.readthedocs.org/en/latest/index.html


نحوه نصب


نصب پکیج whl django-synctool-1.1.0:

    pip install django-synctool-1.1.0.whl


نصب پکیج tar.gz django-synctool-1.1.0:

    pip install django-synctool-1.1.0.tar.gz