{ "info": { "author": "Marc Hoersken", "author_email": "info@marc-hoersken.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "[SwampDragon-live](https://github.com/mback2k/swampdragon-live) is an\nextension to [Django](https://www.djangoproject.com/) and\n[SwampDragon](http://swampdragon.net/) with SwampDragon-auth and django-redis\nwhich adds support for live updating Django template snippets on model changes.\n\nInstallation\n------------\nInstall the latest version from pypi.python.org:\n\n pip install SwampDragon-live\n\nInstall the development version by cloning the source from github.com:\n\n pip install git+https://github.com/mback2k/swampdragon-live.git\n\nConfiguration\n-------------\nAdd the package to your `INSTALLED_APPS`:\n\n INSTALLED_APPS += (\n 'swampdragon',\n 'swampdragon_live',\n )\n\nExample\n-------\nMake sure to use django-redis as a Cache backend named 'swampdragon-live' or 'default':\n\n CACHES = {\n 'swampdragon-live': {\n 'BACKEND': 'django_redis.cache.RedisCache',\n 'LOCATION': 'redis://localhost:6379/0',\n 'OPTIONS': {\n 'CLIENT_CLASS': 'django_redis.client.DefaultClient',\n }\n }\n }\n\nMake sure to add the following line to your Django settings file:\n\n SWAMP_DRAGON_CONNECTION = ('swampdragon_auth.socketconnection.HttpDataConnection', '/data')\n\nLoad the required JavaScript template-tags within your Django template:\n\n {% load swampdragon_tags %}\n {% load swampdragon_live %}\n\nAdd the required JavaScript to your Django template:\n\n {% swampdragon_settings %}\n \n \n\nUse the include_live template-tag instead of the default include template-tag,\nwith rows being a Django database QuerySet to listen for added, changed, deleted instances:\n\n {% include_live 'table' 'includes/table_body.html' rows=rows perms=perms %}\n\nUse the include_live template-tag instead of the default include template-tag,\nwith row being a single Django database Model instance to listen for changes:\n\n {% include_live 'table-row' 'includes/row_cols.html' row=row perms=perms %}\n\nUse the swampdragon_live variable within the included template to add the\nrequired classes to the root-tag of this template, e.g. the first tag-node:\n\n ...\n\nYou can check if your template is being live rendered by a content pusher by\nusing the context variable `is_swampdragon_live` like this:\n\n {% if is_swampdragon_live %}\n \n {% endif %}\n\nA real-world example can be found in the Django project WebGCal:\n* https://github.com/mback2k/django-webgcal/blob/master/webgcal/apps/webgcal/templates/show_dashboard.html\n* https://github.com/mback2k/django-webgcal/tree/master/webgcal/apps/webgcal/templates/includes\n\nLicense\n-------\n* Released under MIT License\n* Copyright (c) 2015-2016 Marc Hoersken ", "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/mback2k/swampdragon-live", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "SwampDragon-live", "package_url": "https://pypi.org/project/SwampDragon-live/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/SwampDragon-live/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/mback2k/swampdragon-live" }, "release_url": "https://pypi.org/project/SwampDragon-live/0.0.7a0/", "requires_dist": null, "requires_python": null, "summary": "SwampDragon-live is an extension to Django and SwampDragon which adds support for live updating Django template snippets on model changes.", "version": "0.0.7a0" }, "last_serial": 2064529, "releases": { "0.0.1a0": [ { "comment_text": "", "digests": { "md5": "229284c2f91962e00e820a0d7ebfac64", "sha256": "ab2e2e49545ac9a0822c3e41fec52f6019ec9f54b2062479b3814a613a0de714" }, "downloads": -1, "filename": "SwampDragon-live-0.0.1a0.tar.gz", "has_sig": false, "md5_digest": "229284c2f91962e00e820a0d7ebfac64", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3923, "upload_time": "2016-03-28T16:49:44", "url": "https://files.pythonhosted.org/packages/81/0c/82e4b8cc1cf90b275b32cb23f3ecd900be22b868df64f7ed0e6d99a490b6/SwampDragon-live-0.0.1a0.tar.gz" } ], "0.0.2a0": [ { "comment_text": "", "digests": { "md5": "1e6623c7baca24f0a8e02babb1d92f05", "sha256": "f7a3ccfccf6735037e124571ef60afe5de47151e87c6c1e1bc92b19417544a01" }, "downloads": -1, "filename": "SwampDragon-live-0.0.2a0.tar.gz", "has_sig": false, "md5_digest": "1e6623c7baca24f0a8e02babb1d92f05", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4519, "upload_time": "2016-04-01T19:47:11", "url": "https://files.pythonhosted.org/packages/62/53/616cb9456f7006ef328cf9ccf74eec598c33ad968d2ea567521522ad90b9/SwampDragon-live-0.0.2a0.tar.gz" } ], "0.0.3a0": [ { "comment_text": "", "digests": { "md5": "f591f494a19a1c95f252179080ef5713", "sha256": "319406c1e14e1ddb984ff6f6e48d9b609b7006d048ab7cc92f70fa30a3a3bf40" }, "downloads": -1, "filename": "SwampDragon_live-0.0.3a0-py2-none-any.whl", "has_sig": true, "md5_digest": "f591f494a19a1c95f252179080ef5713", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8360, "upload_time": "2016-04-02T11:21:07", "url": "https://files.pythonhosted.org/packages/2a/bb/8de7050316108c65c58ecfcca922094f25e8370808db9c8c729e8d531078/SwampDragon_live-0.0.3a0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bebc9ace9c8ebd85f74d7952c9a304f3", "sha256": "32d38cf7f01e5b8dbc82f411c28a448bbad082c28ee7c945f35c42bffdd1357e" }, "downloads": -1, "filename": "SwampDragon-live-0.0.3a0.tar.gz", "has_sig": true, "md5_digest": "bebc9ace9c8ebd85f74d7952c9a304f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4470, "upload_time": "2016-04-02T11:20:23", "url": "https://files.pythonhosted.org/packages/a7/b0/5819d828ce66273bc8e3f177aca9c7b25c33458a17187ef272e2f428d188/SwampDragon-live-0.0.3a0.tar.gz" } ], "0.0.4a0": [ { "comment_text": "", "digests": { "md5": "a0a1b48bdec5caccfce8569265c0138d", "sha256": "16885c4a144ab39276c07817c9959b1c1499fe9acbf3a5f02c20162bd98c8df4" }, "downloads": -1, "filename": "SwampDragon_live-0.0.4a0-py2-none-any.whl", "has_sig": true, "md5_digest": "a0a1b48bdec5caccfce8569265c0138d", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 9074, "upload_time": "2016-04-02T13:09:25", "url": "https://files.pythonhosted.org/packages/e7/50/1581cbc6146bd450957f644b1474b5e9ac5f73fdc13d045bedd04f7994f6/SwampDragon_live-0.0.4a0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cd0712792379f7f550fef899e6b31cec", "sha256": "a1563965229774fca10d204fee23e5e30c975deac834be3b933f930ab265cb01" }, "downloads": -1, "filename": "SwampDragon-live-0.0.4a0.tar.gz", "has_sig": true, "md5_digest": "cd0712792379f7f550fef899e6b31cec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5539, "upload_time": "2016-04-02T13:08:59", "url": "https://files.pythonhosted.org/packages/f6/13/be8d0095cd9e514978f18c0363f6eca5f48f651816449998fe2d2e0bbf8b/SwampDragon-live-0.0.4a0.tar.gz" } ], "0.0.5a0": [ { "comment_text": "", "digests": { "md5": "39611743a808cf35df591dbeb9c7766c", "sha256": "d76961b894d4c9a6aa1d8ae14540d52edc305591a66d23f4b0a412d0b1704784" }, "downloads": -1, "filename": "SwampDragon_live-0.0.5a0-py2-none-any.whl", "has_sig": true, "md5_digest": "39611743a808cf35df591dbeb9c7766c", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 10044, "upload_time": "2016-04-05T21:25:00", "url": "https://files.pythonhosted.org/packages/6b/33/ec4666c07d1fd1f80481a6412ad138ed31be90cbc376afb8c4c71f24b0db/SwampDragon_live-0.0.5a0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3fe5074943f4c5d4a59f8b9f953d1315", "sha256": "e9dca89385518e2fed06d72fc2787bfbd76c42b5a13a2185359d528fe2e3b571" }, "downloads": -1, "filename": "SwampDragon-live-0.0.5a0.tar.gz", "has_sig": true, "md5_digest": "3fe5074943f4c5d4a59f8b9f953d1315", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6121, "upload_time": "2016-04-05T21:24:43", "url": "https://files.pythonhosted.org/packages/54/03/a99497d8a74b3177ab5873580e5498fb6e15a57a02307048093167e44926/SwampDragon-live-0.0.5a0.tar.gz" } ], "0.0.6a0": [ { "comment_text": "", "digests": { "md5": "5a212b1f7952182134cd4b6b3d1d2480", "sha256": "5cbb179e8121963f7696a12619d07f451a9ab417fff94d20851767ad59256109" }, "downloads": -1, "filename": "SwampDragon_live-0.0.6a0-py2-none-any.whl", "has_sig": true, "md5_digest": "5a212b1f7952182134cd4b6b3d1d2480", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 10334, "upload_time": "2016-04-06T21:53:34", "url": "https://files.pythonhosted.org/packages/9d/f1/06f1486b89cd69b6600221b3540f3a189722583835a36911ec88d0c17c0e/SwampDragon_live-0.0.6a0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c2e45e8ce6dddbc92048d7c0108e6dc9", "sha256": "eb3cf7727f44e97ebf34fdee81171dd549d047560069636d7223400d38cdb2bb" }, "downloads": -1, "filename": "SwampDragon-live-0.0.6a0.tar.gz", "has_sig": true, "md5_digest": "c2e45e8ce6dddbc92048d7c0108e6dc9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7684, "upload_time": "2016-04-06T21:53:23", "url": "https://files.pythonhosted.org/packages/95/cd/f9022786c96b92db40d908a5465b091cca9f24fe34b26be8946c366af743/SwampDragon-live-0.0.6a0.tar.gz" } ], "0.0.7a0": [ { "comment_text": "", "digests": { "md5": "f07d0ca80218c52e0f2ea11dbfc1a71a", "sha256": "7c13f2139bcd86f8a779855d77786a41fb66490af72e6311ec38b09ff0416e33" }, "downloads": -1, "filename": "SwampDragon_live-0.0.7a0-py2-none-any.whl", "has_sig": true, "md5_digest": "f07d0ca80218c52e0f2ea11dbfc1a71a", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 10581, "upload_time": "2016-04-14T20:59:53", "url": "https://files.pythonhosted.org/packages/9a/bd/747d8139909ee69008549fe9cf0d6ba5d7450cb6ed07309eb9bcb327737b/SwampDragon_live-0.0.7a0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b9c2fb9534dd65bf191958e8eea7c53e", "sha256": "3839c67b6d16973bf9232bb5df1b48232d6d014c3c05943b6474a6db1a3fefda" }, "downloads": -1, "filename": "SwampDragon-live-0.0.7a0.tar.gz", "has_sig": true, "md5_digest": "b9c2fb9534dd65bf191958e8eea7c53e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8012, "upload_time": "2016-04-14T20:59:40", "url": "https://files.pythonhosted.org/packages/54/f5/39c224f3221354c73fdda596857eb797fb20a4d3608b8f28cfa2401ca6b0/SwampDragon-live-0.0.7a0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f07d0ca80218c52e0f2ea11dbfc1a71a", "sha256": "7c13f2139bcd86f8a779855d77786a41fb66490af72e6311ec38b09ff0416e33" }, "downloads": -1, "filename": "SwampDragon_live-0.0.7a0-py2-none-any.whl", "has_sig": true, "md5_digest": "f07d0ca80218c52e0f2ea11dbfc1a71a", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 10581, "upload_time": "2016-04-14T20:59:53", "url": "https://files.pythonhosted.org/packages/9a/bd/747d8139909ee69008549fe9cf0d6ba5d7450cb6ed07309eb9bcb327737b/SwampDragon_live-0.0.7a0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b9c2fb9534dd65bf191958e8eea7c53e", "sha256": "3839c67b6d16973bf9232bb5df1b48232d6d014c3c05943b6474a6db1a3fefda" }, "downloads": -1, "filename": "SwampDragon-live-0.0.7a0.tar.gz", "has_sig": true, "md5_digest": "b9c2fb9534dd65bf191958e8eea7c53e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8012, "upload_time": "2016-04-14T20:59:40", "url": "https://files.pythonhosted.org/packages/54/f5/39c224f3221354c73fdda596857eb797fb20a4d3608b8f28cfa2401ca6b0/SwampDragon-live-0.0.7a0.tar.gz" } ] }