{ "info": { "author": "Eric Brelsford", "author_email": "ebrelsford@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development" ], "description": "django-cartodb-sync\n===================\n\nA Django app that helps keep `CartoDB`_ tables synchronized with Django models.\n\n\nRequirements\n------------\n\nDjango >= 1.8, `cartodb-python`_, a CartoDB account.\n\n\nInstallation\n------------\n\nUse pip.\n\nAdd to ``INSTALLED_APPS``::\n\n INSTALLED_APPS += (\n 'cartodbsync',\n )\n\nThen add the appropriate configuration details to your ``settings``.\n\nYou will need some way of letting ``django-cartodb-sync`` about instances that\nneed to be inserted, updated, or deleted. The simplest way is to use `signals`_\nand the ``SyncEntry`` methods ``mark_as_pending_delete``,\n``mark_as_pending_insert``, and ``mark_as_pending_update``.\n\nFinally, configure a cron job to run the ``cartodbsync`` management command.\nIf you have existing model instances, mark all for insertion by running::\n\n django-admin.py cartodbsync --markinsert\n\n\nConfiguration\n-------------\n\nAdd the following to your ``settings``::\n\n CARTODB_SYNC = {\n 'API_KEY': '',\n 'DOMAIN': '',\n 'MODELS': [\n {\n 'CARTODB_TABLE': '',\n 'MODEL_CLASS': '',\n 'SYNCHRONIZER_CLASS': '',\n }\n ]\n }\n\nEverything between ``<`` and ``>`` should be replaced with appropriate details.\nYou can list as many models as you like within the ``MODELS`` entry.\n\n\n.. _`CartoDB`: http://cartodb.com/\n.. _`cartodb-python`: https://github.com/vizzuality/cartodb-python\n.. _`signals`: https://docs.djangoproject.com/en/1.8/topics/signals/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ebrelsford/django-cartodb-sync", "keywords": null, "license": "BSD License", "maintainer": null, "maintainer_email": null, "name": "django-cartodb-sync", "package_url": "https://pypi.org/project/django-cartodb-sync/", "platform": "OS Independent", "project_url": "https://pypi.org/project/django-cartodb-sync/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ebrelsford/django-cartodb-sync" }, "release_url": "https://pypi.org/project/django-cartodb-sync/0.3.0/", "requires_dist": null, "requires_python": null, "summary": "A Django app that helps keep CartoDB tables synchronized with Django models.", "version": "0.3.0" }, "last_serial": 1763563, "releases": { "0.2.2": [ { "comment_text": "", "digests": { "md5": "7dc922a57e0f0958b85827bb6fd359e1", "sha256": "846bd08691330c5b778c850878341b8bbef74138659edd940006d6c307021c1f" }, "downloads": -1, "filename": "django-cartodb-sync-0.2.2.tar.gz", "has_sig": false, "md5_digest": "7dc922a57e0f0958b85827bb6fd359e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11333, "upload_time": "2015-08-27T19:44:35", "url": "https://files.pythonhosted.org/packages/fd/2d/f32eac9f48474679513be915fbfa00e6e71b607311e43a73e2381a3270a0/django-cartodb-sync-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "dbe977695462252e60fd056d3d182585", "sha256": "b936c2341f8b88e3e1c77f247036f8faf949a204c786c23a86ba5510b62c41b5" }, "downloads": -1, "filename": "django-cartodb-sync-0.2.3.tar.gz", "has_sig": false, "md5_digest": "dbe977695462252e60fd056d3d182585", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11512, "upload_time": "2015-09-09T15:30:28", "url": "https://files.pythonhosted.org/packages/72/54/024c42ee8c40a825aa7ba69c11a7a81412af3e84eeb80f66c4697904cc92/django-cartodb-sync-0.2.3.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "0a58b1203563eea9ef597cd5bf63da8a", "sha256": "3e232efafeba3e7d57e00bfa3aae27bd7543ce97de1fdf84374b0b81d5c20560" }, "downloads": -1, "filename": "django-cartodb-sync-0.3.0.tar.gz", "has_sig": false, "md5_digest": "0a58b1203563eea9ef597cd5bf63da8a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11743, "upload_time": "2015-10-11T21:22:27", "url": "https://files.pythonhosted.org/packages/8e/aa/71d8a9d6f35dd0a937ed47b0081627851fca614533e186be3c4d7aa1316c/django-cartodb-sync-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0a58b1203563eea9ef597cd5bf63da8a", "sha256": "3e232efafeba3e7d57e00bfa3aae27bd7543ce97de1fdf84374b0b81d5c20560" }, "downloads": -1, "filename": "django-cartodb-sync-0.3.0.tar.gz", "has_sig": false, "md5_digest": "0a58b1203563eea9ef597cd5bf63da8a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11743, "upload_time": "2015-10-11T21:22:27", "url": "https://files.pythonhosted.org/packages/8e/aa/71d8a9d6f35dd0a937ed47b0081627851fca614533e186be3c4d7aa1316c/django-cartodb-sync-0.3.0.tar.gz" } ] }