{ "info": { "author": "mongkok", "author_email": "domake.io@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 1 - Planning", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "Django GraphQL Countries\n========================\n\n|Pypi| |Wheel| |Build Status| |Codecov| |Code Climate|\n\n\n`Countries`_ support for `Django GraphQL`_\n\n.. _Countries: https://github.com/flavors/django-countries/\n.. _Django GraphQL: https://github.com/graphql-python/graphene-django\n\n\nDependencies\n------------\n\n* Python \u2265 3.4\n* Django \u2265 1.11\n* PostGIS database (PostgreSQL \u2265 9.4)\n\n\nInstallation\n------------\n\nInstall last stable version from Pypi.\n\n.. code:: sh\n\n pip install django-graphql-countries\n\n\nAdd ``countries`` to your *INSTALLED_APPS* settings:\n\n.. code:: python\n\n INSTALLED_APPS = [\n ...\n 'countries.apps.CountriesAppConfig',\n ]\n\n\nApply **migrations**:\n\n.. code:: python\n\n python manage.py migrate\n\n\nLoad data\n---------\n\nThe ``loadcountries`` management command read all **fixtures** and re-loaded into the database:\n\n.. code:: sh\n\n python manage.py loadcountries\n\n\nSchema\n------\n\nAdd queries to your GraphQL schema\n\n.. code:: python\n\n import graphene\n import graphql_countries\n\n\n class Query(graphene.ObjectType, graphql_countries.Query):\n \"\"\"GraphQL Queries\"\"\"\n\n\n schema = graphene.Schema(query=Query)\n\n\n**Query**\n\nCountries *GeoJSON* **outlines**:\n\n.. code::\n\n query {\n countries {\n capital\n mpoly {\n type\n coordinates\n }\n }\n }\n\n\nRelay\n-----\n\nComplete support for `Relay`_.\n\n.. _Relay: https://facebook.github.io/relay/\n\n.. code:: python\n\n import graphene\n import graphql_countries\n\n\n class Query(graphene.ObjectType, graphql_countries.relay.Query):\n \"\"\"Relay Queries\"\"\"\n\n\n schema = graphene.Schema(query=Query)\n\n\n**Query**\n\n*GeoJSON* **outlines** for \ud83c\uddfb\ud83c\uddf3 Vietnam:\n\n.. code::\n\n query {\n countries(cca2: \"VN\") {\n edges {\n node {\n capital\n mpoly {\n type\n coordinates\n }\n }\n }\n }\n }\n\n\n.. |Pypi| image:: https://img.shields.io/pypi/v/django-graphql-countries.svg\n :target: https://pypi.python.org/pypi/django-graphql-countries\n\n.. |Wheel| image:: https://img.shields.io/pypi/wheel/django-graphql-countries.svg\n :target: https://pypi.python.org/pypi/django-graphql-countries\n\n.. |Build Status| image:: https://travis-ci.org/flavors/django-graphql-countries.svg?branch=master\n :target: https://travis-ci.org/flavors/django-graphql-countries\n\n.. |Codecov| image:: https://img.shields.io/codecov/c/github/flavors/django-graphql-countries.svg\n :target: https://codecov.io/gh/flavors/django-graphql-countries\n\n.. |Code Climate| image:: https://api.codeclimate.com/v1/badges/909e7331eb1c43e92a46/maintainability\n :target: https://codeclimate.com/github/flavors/django-graphql-countries\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/flavors/django-graphql-countries/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-graphql-countries", "package_url": "https://pypi.org/project/django-graphql-countries/", "platform": "", "project_url": "https://pypi.org/project/django-graphql-countries/", "project_urls": { "Homepage": "https://github.com/flavors/django-graphql-countries/" }, "release_url": "https://pypi.org/project/django-graphql-countries/0.0.5/", "requires_dist": null, "requires_python": "", "summary": "GraphQL implementation for countries", "version": "0.0.5" }, "last_serial": 3535285, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "d6ce3dc6902d4b668d3f3342ed735eac", "sha256": "67aeb869a6ae10e7671ce411ae684c2af0350ccc7813b4a98a0d39a9f214ef8b" }, "downloads": -1, "filename": "django_graphql_countries-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d6ce3dc6902d4b668d3f3342ed735eac", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 5934, "upload_time": "2017-11-01T16:46:54", "url": "https://files.pythonhosted.org/packages/39/84/3f0afe8ce89dd7e611f06da67a1ad59a1894e01854d39f5cc1686f6c5e8f/django_graphql_countries-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f65c9abca9e93aeb3baa8cebf07d8a66", "sha256": "401ee7e4a2adc96f1127d13f63c5d1ee9b1338eca90c7584cefb53661556bba2" }, "downloads": -1, "filename": "django-graphql-countries-0.0.1.tar.gz", "has_sig": false, "md5_digest": "f65c9abca9e93aeb3baa8cebf07d8a66", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6480, "upload_time": "2017-11-01T16:46:50", "url": "https://files.pythonhosted.org/packages/60/05/dce8f0411ce4513427b8e85390ffabacce9b4f26d0dce0e03444d9a775b3/django-graphql-countries-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "c03de439b7afc4801241c4bcf2bac288", "sha256": "501d289247d544ca45db1dc8acb5d8e812b1774c7753456640652d7c4c004c73" }, "downloads": -1, "filename": "django_graphql_countries-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c03de439b7afc4801241c4bcf2bac288", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 6082, "upload_time": "2018-01-13T19:06:09", "url": "https://files.pythonhosted.org/packages/ac/3a/60bc87a185721696c873f9312b13e5bf955876323ec60b71884be6c1e7cc/django_graphql_countries-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9881c6930fb4791e6171fc5bb67d151b", "sha256": "c882ca902dc45b64ecc66ab3e04b04bc8f1a270e0b8fbd74427b9788d6b6c4fc" }, "downloads": -1, "filename": "django-graphql-countries-0.0.2.tar.gz", "has_sig": false, "md5_digest": "9881c6930fb4791e6171fc5bb67d151b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6440, "upload_time": "2018-01-13T19:05:42", "url": "https://files.pythonhosted.org/packages/1a/c8/e996d8855b8247d115f2ba6669eb933f961c68f7773e5728da601c5e2d96/django-graphql-countries-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "e730988f2a48c5e3e21f968588f315fe", "sha256": "f62895658e367908eee15670b1b6971c01be422f63b6671926cd5352ae987130" }, "downloads": -1, "filename": "django_graphql_countries-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e730988f2a48c5e3e21f968588f315fe", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 6787, "upload_time": "2018-01-22T21:52:10", "url": "https://files.pythonhosted.org/packages/0d/f8/79a6585a0369ca8df8be2fe460722abeb72d7760db38b03839ad1443d84a/django_graphql_countries-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b42d20050337c3c22e2e26f24b3fd627", "sha256": "09a3a53373f96696d6627bb4e7a0197dfb6b4b8e452f9638e09005f92be7b78d" }, "downloads": -1, "filename": "django-graphql-countries-0.0.3.tar.gz", "has_sig": false, "md5_digest": "b42d20050337c3c22e2e26f24b3fd627", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6838, "upload_time": "2018-01-22T21:52:05", "url": "https://files.pythonhosted.org/packages/9d/d1/ab63993c4e6e36515ff90ddfba21e8a8848421eec97d9cfec3cb5ca1b892/django-graphql-countries-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "874a771c9d3dcbdda09e627757cbbf51", "sha256": "1dd66b9f932d9a1f8834f994fc6aa20862798bd44d64ad31ff32c8bd364ed767" }, "downloads": -1, "filename": "django_graphql_countries-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "874a771c9d3dcbdda09e627757cbbf51", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 9401, "upload_time": "2018-01-28T16:24:39", "url": "https://files.pythonhosted.org/packages/9c/22/a8cb3dbb22fa966c2cb12810ac4c9fcf6d44e8a89b015e7f3b31b80beffe/django_graphql_countries-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "354dd6e0a07df8f20ce9f0190331c7b3", "sha256": "1d4b1b553199a743a165b690e1a041deff7913ec90d26a2569c01d5fb194aabc" }, "downloads": -1, "filename": "django-graphql-countries-0.0.4.tar.gz", "has_sig": false, "md5_digest": "354dd6e0a07df8f20ce9f0190331c7b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7255, "upload_time": "2018-01-28T16:24:19", "url": "https://files.pythonhosted.org/packages/88/32/c05996850b0a38b4b721cddbeb949053f0bba8a688842990682c52faaab5/django-graphql-countries-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "fb85baa7f2be27abf738aa8972cc020d", "sha256": "8336d05e6a8a77b4637783494d7427c39fc6637dd2e76934a601ebedaee70816" }, "downloads": -1, "filename": "django_graphql_countries-0.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fb85baa7f2be27abf738aa8972cc020d", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 8291, "upload_time": "2018-01-30T15:19:27", "url": "https://files.pythonhosted.org/packages/10/4b/c47707ba1c2ab2a513b52aa2be1eab41dbe237ce8b65aa011fe8ff448be1/django_graphql_countries-0.0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2f0f58860200009852f13d54ac9b5858", "sha256": "25b398c25462259bdac831343fe8888e7cc60a9fe5deb7ee0f7c4d51e0d548fa" }, "downloads": -1, "filename": "django-graphql-countries-0.0.5.tar.gz", "has_sig": false, "md5_digest": "2f0f58860200009852f13d54ac9b5858", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5509, "upload_time": "2018-01-30T15:19:22", "url": "https://files.pythonhosted.org/packages/d1/ff/71894c75664f1a8707327876a1b404d8127b3fc9bedde6cfbd251ec90763/django-graphql-countries-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fb85baa7f2be27abf738aa8972cc020d", "sha256": "8336d05e6a8a77b4637783494d7427c39fc6637dd2e76934a601ebedaee70816" }, "downloads": -1, "filename": "django_graphql_countries-0.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fb85baa7f2be27abf738aa8972cc020d", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 8291, "upload_time": "2018-01-30T15:19:27", "url": "https://files.pythonhosted.org/packages/10/4b/c47707ba1c2ab2a513b52aa2be1eab41dbe237ce8b65aa011fe8ff448be1/django_graphql_countries-0.0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2f0f58860200009852f13d54ac9b5858", "sha256": "25b398c25462259bdac831343fe8888e7cc60a9fe5deb7ee0f7c4d51e0d548fa" }, "downloads": -1, "filename": "django-graphql-countries-0.0.5.tar.gz", "has_sig": false, "md5_digest": "2f0f58860200009852f13d54ac9b5858", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5509, "upload_time": "2018-01-30T15:19:22", "url": "https://files.pythonhosted.org/packages/d1/ff/71894c75664f1a8707327876a1b404d8127b3fc9bedde6cfbd251ec90763/django-graphql-countries-0.0.5.tar.gz" } ] }