{ "info": { "author": "ExCiteS", "author_email": "excites@ucl.ac.uk", "bugtrack_url": null, "classifiers": [], "description": ".. image:: https://img.shields.io/pypi/v/geokey-webresources.svg\n :alt: PyPI Package\n :target: https://pypi.python.org/pypi/geokey-webresources\n\n.. image:: https://img.shields.io/travis/ExCiteS/geokey-webresources/master.svg\n :alt: Travis CI Build Status\n :target: https://travis-ci.org/ExCiteS/geokey-webresources\n\n.. image:: https://img.shields.io/coveralls/ExCiteS/geokey-webresources/master.svg\n :alt: Coveralls Test Coverage\n :target: https://coveralls.io/r/ExCiteS/geokey-webresources\n\ngeokey-webresources\n===================\n\nExtend GeoKey projects by adding web resources: GeoJSON and KML.\n\nInstall\n-------\n\ngeokey-webresources requires:\n\n- Python version 2.7\n- GeoKey version 1.6 or greater\n\nInstall the geokey-webresources from PyPI:\n\n.. code-block:: console\n\n pip install geokey-webresources\n\nOr from cloned repository:\n\n.. code-block:: console\n\n cd geokey-webresources\n pip install -e .\n\nAdd the package to installed apps:\n\n.. code-block:: console\n\n INSTALLED_APPS += (\n ...\n 'geokey_webresources',\n )\n\nMigrate the models into the database:\n\n.. code-block:: console\n\n python manage.py migrate geokey_webresources\n\nYou're now ready to go!\n\nUpdate\n------\n\nUpdate the geokey-webresources from PyPI:\n\n.. code-block:: console\n\n pip install -U geokey-webresources\n\nMigrate the new models into the database:\n\n.. code-block:: console\n\n python manage.py migrate geokey_webresources\n\nTest\n----\n\nRun tests:\n\n.. code-block:: console\n\n python manage.py test geokey_webresources\n\nCheck code coverage:\n\n.. code-block:: console\n\n pip install coverage\n coverage run --source=geokey_webresources manage.py test geokey_webresources\n coverage report -m --omit=*/tests/*,*/migrations/*\n\nPublic API\n----------\n\n**Get all web resources of a project**\n\n.. code-block:: console\n\n GET /api/projects/:project_id/webresources/\n\n*Request parameters:*\n\n========== ======= ====================================\nParameter Type Description\n========== ======= ====================================\nproject_id Integer A unique identifier for the project.\n========== ======= ====================================\n\n*Response:*\n\nThe response contains an array of web resources. If the array is empty, then the project has no active web resources.\n\n.. code-block:: console\n\n [\n {\n \"id\": 46,\n \"status\": \"active\",\n \"name\": \"Public Houses\",\n \"description\": \"All public houses in London.\",\n \"created\": \"2014-09-19T15:51:32.790Z\",\n \"modified\": \"2014-09-21T15:51:32.804Z\",\n \"dataformat\": \"KML\",\n \"url\": \"http://london.co.uk/public-houses.kml\",\n \"colour\": \"#000000\",\n \"symbol\": null\n }\n ]\n\n*Response status codes:*\n\n==== =========================================================\nCode Reason\n==== =========================================================\n200 The list of web resources has been returned successfully.\n404 The project was not found (or user has no access to it).\n==== =========================================================\n\n**Get a single web resource of a project**\n\n.. code-block:: console\n\n GET /api/projects/:project_id/webresources/:webresource_id/\n\n*Request parameters:*\n\n============== ======= =========================================\nParameter Type Description\n============== ======= =========================================\nproject_id Integer A unique identifier for the project.\nwebresource_id Integer A unique identifier for the web resource.\n============== ======= =========================================\n\n*Response:*\n\n.. code-block:: console\n\n {\n \"id\": 46,\n \"status\": \"active\",\n \"name\": \"Train Stations\",\n \"description\": \"Train stations in Germany.\",\n \"created\": \"2015-09-15T09:40:01.747Z\",\n \"modified\": \"2016-01-10T07:12:01.827Z\",\n \"dataformat\": \"GeoJSON\",\n \"url\": \"https://germany.de/all-train-stations.geojson\",\n \"colour\": \"#ffc0cb\",\n \"symbol\": '/media/webresources/symbols/train_stations.png'\n }\n\n*Response status codes:*\n\n==== ================================================\nCode Reason\n==== ================================================\n200 The web resource has been returned successfully.\n404 The project or web resource was not found.\n==== ================================================", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/ExCiteS/geokey-webresources/tarball/0.2.3", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ExCiteS/geokey-webresources", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "geokey-webresources", "package_url": "https://pypi.org/project/geokey-webresources/", "platform": "", "project_url": "https://pypi.org/project/geokey-webresources/", "project_urls": { "Download": "https://github.com/ExCiteS/geokey-webresources/tarball/0.2.3", "Homepage": "https://github.com/ExCiteS/geokey-webresources" }, "release_url": "https://pypi.org/project/geokey-webresources/0.2.3/", "requires_dist": null, "requires_python": "", "summary": "Add web resources to GeoKey projects", "version": "0.2.3" }, "last_serial": 4447101, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "d739319db72547e7701ac4e06143e6b6", "sha256": "bb8e0df5c446b8acec099e1a75014a4b79dca2cd79b19a336515fe15eb75ff5c" }, "downloads": -1, "filename": "geokey-webresources-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d739319db72547e7701ac4e06143e6b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12300, "upload_time": "2016-03-01T18:06:44", "url": "https://files.pythonhosted.org/packages/a8/7c/0762c2078335956b9c67261c1dae399d12e24ff11af18f5cdd6a79fde5de/geokey-webresources-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "d2a3093d26dcf61d9feb201a7ac607c1", "sha256": "1789901db19603d8e70e41430182538effebaa3b79d77981c12516aea74a2abe" }, "downloads": -1, "filename": "geokey-webresources-0.1.1.tar.gz", "has_sig": false, "md5_digest": "d2a3093d26dcf61d9feb201a7ac607c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12472, "upload_time": "2016-03-02T11:52:08", "url": "https://files.pythonhosted.org/packages/46/56/ef744ff7014c2d9137862ee610b52e94b2709498b3ba06624a427f1b860f/geokey-webresources-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "88b5383b68a8a206a81f58cd780a4965", "sha256": "9786ae1515029b5ba3bd618d2724c2cb6bcb738b214aeca0a18d510ed6422c08" }, "downloads": -1, "filename": "geokey-webresources-0.1.2.tar.gz", "has_sig": false, "md5_digest": "88b5383b68a8a206a81f58cd780a4965", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12930, "upload_time": "2016-03-08T16:48:36", "url": "https://files.pythonhosted.org/packages/ea/f3/e1d75580681bfddfc364b17e2070bf5eb741ae84b2447ce792bc787c6aab/geokey-webresources-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "cc0d8713f3427c9efd23baace550952b", "sha256": "7a6ae15fa5d1674b9b6ce088b5f166c5966498e1a959fe4258e0632d5c7b6598" }, "downloads": -1, "filename": "geokey-webresources-0.1.3.tar.gz", "has_sig": false, "md5_digest": "cc0d8713f3427c9efd23baace550952b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13043, "upload_time": "2016-03-16T12:02:37", "url": "https://files.pythonhosted.org/packages/a4/bf/453f9f885be218974a04d3fdacfdef9a03963163366e5fe127a00df5985d/geokey-webresources-0.1.3.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "d4f15a5c7ea6ce2c84c0bcb45e7ba179", "sha256": "769e7f312e2576939426a6992990af509161b326a7f130039540188838546e6a" }, "downloads": -1, "filename": "geokey-webresources-0.2.0.tar.gz", "has_sig": false, "md5_digest": "d4f15a5c7ea6ce2c84c0bcb45e7ba179", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13912, "upload_time": "2016-03-24T16:42:26", "url": "https://files.pythonhosted.org/packages/a4/fe/0ee3840a03e4fc91e14aeac21f2cb4910f96264b8c95d354633e5b7b6e5d/geokey-webresources-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "7084d293052bbecff103bc9746f3f6e6", "sha256": "667b5458a95ab9f08089cf7d0653d3815ad0b18213d9271bf702de94b251a7a9" }, "downloads": -1, "filename": "geokey-webresources-0.2.1.tar.gz", "has_sig": false, "md5_digest": "7084d293052bbecff103bc9746f3f6e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14033, "upload_time": "2016-03-30T10:50:40", "url": "https://files.pythonhosted.org/packages/e6/af/014404deea6ebc102ff3a20b1dd100c411eb253fb345307367d050539f66/geokey-webresources-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "6e6a9140e150e9fd02fa968fd5c7dfea", "sha256": "a2e085aae92a25d3d60779352ffedd7e4c4653d43b8ef048a9eb2b4751aeb529" }, "downloads": -1, "filename": "geokey-webresources-0.2.2.tar.gz", "has_sig": false, "md5_digest": "6e6a9140e150e9fd02fa968fd5c7dfea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14123, "upload_time": "2018-11-03T09:11:34", "url": "https://files.pythonhosted.org/packages/2f/87/e6c2b073cb60ba9a49a4777412fdbce32ebccd607222177ce450d696843e/geokey-webresources-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "719319a0375cedc8d2d85125167efee0", "sha256": "9b930570248f314600acb3c6782c3d48ddf3e707b21c20c64119f7d48e610430" }, "downloads": -1, "filename": "geokey-webresources-0.2.3.tar.gz", "has_sig": false, "md5_digest": "719319a0375cedc8d2d85125167efee0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15402, "upload_time": "2018-11-03T09:20:01", "url": "https://files.pythonhosted.org/packages/8b/24/26c9d3009526915330b120df45f03e04ca05ff7f9fa5c3bd014d07c617c9/geokey-webresources-0.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "719319a0375cedc8d2d85125167efee0", "sha256": "9b930570248f314600acb3c6782c3d48ddf3e707b21c20c64119f7d48e610430" }, "downloads": -1, "filename": "geokey-webresources-0.2.3.tar.gz", "has_sig": false, "md5_digest": "719319a0375cedc8d2d85125167efee0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15402, "upload_time": "2018-11-03T09:20:01", "url": "https://files.pythonhosted.org/packages/8b/24/26c9d3009526915330b120df45f03e04ca05ff7f9fa5c3bd014d07c617c9/geokey-webresources-0.2.3.tar.gz" } ] }