{ "info": { "author": "Canonical webteam", "author_email": "robin+pypi@canonical.com", "bugtrack_url": null, "classifiers": [], "description": "A helper function for creating views from a YAML file of URL paths\n==================================================================\n\nInstallation\n------------\n\n.. code:: bash\n\n pip install canonicalwebteam.views-from-yaml\n\nUsage\n-----\n\nE.g. create a YAML file:\n\n.. code:: yaml\n # url-settings.yaml\n some/url/path: {\"content\": \"Hello world!\"}\n another/path: {\"content\": \"Different content\"}\n\nAnd edit your Django app's ``urls.py``\\:\n\n.. code:: python\n\n # django_app/urls.py\n\n from canonicalwebteam.views_from_yaml import load_views_from_file\n\n def url_view(request, url_settings):\n return HttpResponse(url_settings['content'])\n\n urlpatterns = load_views_from_file(\n yaml_filepath=\"url-settings.yaml\",\n view_callback=url_view\n )\n\nNow if you visit `http://your-django-site/some/url/path` you should see\n\"Hello world!\".\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/canonical-webteam/views-from-yaml", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "canonicalwebteam.views-from-yaml", "package_url": "https://pypi.org/project/canonicalwebteam.views-from-yaml/", "platform": "", "project_url": "https://pypi.org/project/canonicalwebteam.views-from-yaml/", "project_urls": { "Homepage": "https://github.com/canonical-webteam/views-from-yaml" }, "release_url": "https://pypi.org/project/canonicalwebteam.views-from-yaml/0.2.3/", "requires_dist": null, "requires_python": "", "summary": "A helper function for creating Django views from a YAML file of URL paths", "version": "0.2.3" }, "last_serial": 4754286, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "dc248c4e255cbf82f001f6b2b98671a3", "sha256": "9ca093781d8ef3091273f2995b790001090add4ecc03dec19f7d18727f3872e6" }, "downloads": -1, "filename": "canonicalwebteam.views-from-yaml-0.1.0.tar.gz", "has_sig": false, "md5_digest": "dc248c4e255cbf82f001f6b2b98671a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1843, "upload_time": "2017-08-01T09:24:18", "url": "https://files.pythonhosted.org/packages/b9/3a/571f4a2ebdc957e57d82490f0e6f69bc6f8943acc63332de0caba64fa274/canonicalwebteam.views-from-yaml-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "48a9025a9eaa32f5b5f37eef92aff8d9", "sha256": "2d3760aaed3f1ffdd67aaeda7828f2a29765f09d9f8f7be1c67eb4884ac484a6" }, "downloads": -1, "filename": "canonicalwebteam.views-from-yaml-0.1.1.tar.gz", "has_sig": false, "md5_digest": "48a9025a9eaa32f5b5f37eef92aff8d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1837, "upload_time": "2017-08-01T09:47:52", "url": "https://files.pythonhosted.org/packages/f5/01/8f96c1b9c540735be169197fb8f5df39b5c979f34b6aeb2011d5deac7bdf/canonicalwebteam.views-from-yaml-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "8d5c5b82aa990e6e779e0c3cd18930bb", "sha256": "30b553af8996df3a983ebedc2a7c9e5bfc6f6a757db624450415b8c4bd4ca168" }, "downloads": -1, "filename": "canonicalwebteam.views-from-yaml-0.1.2.tar.gz", "has_sig": false, "md5_digest": "8d5c5b82aa990e6e779e0c3cd18930bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1833, "upload_time": "2017-08-01T09:51:07", "url": "https://files.pythonhosted.org/packages/69/ca/597eeff9e7d5d1b24814923f314763b958d37ccddc0dad2ed57a6423b598/canonicalwebteam.views-from-yaml-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "def757c2838ac8433e358f8ba6c61ac7", "sha256": "c1f0b47c0ee1b45213d10381da6412a38920d55781233085cca6d8ff219b2e3c" }, "downloads": -1, "filename": "canonicalwebteam.views-from-yaml-0.2.0.tar.gz", "has_sig": false, "md5_digest": "def757c2838ac8433e358f8ba6c61ac7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1838, "upload_time": "2017-08-01T12:10:37", "url": "https://files.pythonhosted.org/packages/99/64/884a574b92fb39eff81ce49e5a1a8461df8b480d45ac7ee6d8485eddce46/canonicalwebteam.views-from-yaml-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "7bed8bb70117520d22d603ab0a6e2e90", "sha256": "f1dba783e246af04c39f7f5db83119d27745f13f830b833aa1cfe5a09bd32926" }, "downloads": -1, "filename": "canonicalwebteam.views-from-yaml-0.2.1.tar.gz", "has_sig": false, "md5_digest": "7bed8bb70117520d22d603ab0a6e2e90", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1862, "upload_time": "2017-08-01T12:51:02", "url": "https://files.pythonhosted.org/packages/e9/c1/5d70878fa5478596e9073ff6569ea3490d98e4ad905c5b4753554df4206e/canonicalwebteam.views-from-yaml-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "30ce3c858d6a90ce82313723b04ca3c3", "sha256": "24e41764999046a590101ffa31d0b134bc5189b720f2fca05026fb9a2490857d" }, "downloads": -1, "filename": "canonicalwebteam.views-from-yaml-0.2.2.tar.gz", "has_sig": false, "md5_digest": "30ce3c858d6a90ce82313723b04ca3c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1867, "upload_time": "2017-08-01T13:29:28", "url": "https://files.pythonhosted.org/packages/86/50/d40f51c757fef7e26f88723e76040c74565e6d749735c54db2846ec9397c/canonicalwebteam.views-from-yaml-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "be7dcd48a438728e2959dbb6bbcbc4e9", "sha256": "40be74fd53056be59e2ab5286c36b4cba3d9085f37c228075e4d0b3467e5daea" }, "downloads": -1, "filename": "canonicalwebteam.views-from-yaml-0.2.3.tar.gz", "has_sig": false, "md5_digest": "be7dcd48a438728e2959dbb6bbcbc4e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1873, "upload_time": "2017-11-22T18:10:03", "url": "https://files.pythonhosted.org/packages/53/12/75d06da0cb89ea038e9cd36c97aa03e083c9e4098935e4bf298c5b06b0af/canonicalwebteam.views-from-yaml-0.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "be7dcd48a438728e2959dbb6bbcbc4e9", "sha256": "40be74fd53056be59e2ab5286c36b4cba3d9085f37c228075e4d0b3467e5daea" }, "downloads": -1, "filename": "canonicalwebteam.views-from-yaml-0.2.3.tar.gz", "has_sig": false, "md5_digest": "be7dcd48a438728e2959dbb6bbcbc4e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1873, "upload_time": "2017-11-22T18:10:03", "url": "https://files.pythonhosted.org/packages/53/12/75d06da0cb89ea038e9cd36c97aa03e083c9e4098935e4bf298c5b06b0af/canonicalwebteam.views-from-yaml-0.2.3.tar.gz" } ] }