semvec/pypi-packages huggingface dataset:
django-onivoro 0.1.2
Allows you to download data from sources and ingest them to your project
License: MIT
Keywords: django-onivoro

=============================
Django Onivoro
=============================

.. image:: https://badge.fury.io/py/django-onivoro.svg
    :target: https://badge.fury.io/py/django-onivoro

.. image:: https://travis-ci.org/george-silva/django-onivoro.svg?branch=master
    :target: https://travis-ci.org/george-silva/django-onivoro

.. image:: https://codecov.io/gh/george-silva/django-onivoro/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/george-silva/django-onivoro

Allows you to download data from sources and ingest them to your project

Documentation
-------------

The full documentation is at https://django-onivoro.readthedocs.io.

Quickstart
----------

Install Django Onivoro::

    pip install django-onivoro

Add it to your `INSTALLED_APPS`:

.. code-block:: python

    INSTALLED_APPS = (
        ...
        'onivoro.apps.OnivoroConfig',
        ...
    )

Add Django Onivoro's URL patterns:

.. code-block:: python

    from onivoro import urls as onivoro_urls


    urlpatterns = [
        ...
        url(r'^', include(onivoro_urls)),
        ...
    ]

Features
--------

* TODO

Running Tests
-------------

Does the code actually work?

::

    source <YOURVIRTUALENV>/bin/activate
    (myenv) $ pip install tox
    (myenv) $ tox

Credits
-------

Tools used in rendering this package:

*  Cookiecutter_
*  `cookiecutter-djangopackage`_

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage




History
-------

0.1.0 (2017-07-06)
++++++++++++++++++

* First release on PyPI.
django-graphql-countries 0.0.5
GraphQL implementation for countries
License: MIT

Django GraphQL Countries
========================

|Pypi| |Wheel| |Build Status| |Codecov| |Code Climate|


`Countries`_ support for `Django GraphQL`_

.. _Countries: https://github.com/flavors/django-countries/
.. _Django GraphQL: https://github.com/graphql-python/graphene-django


Dependencies
------------

* Python ≥ 3.4
* Django ≥ 1.11
* PostGIS database (PostgreSQL ≥ 9.4)


Installation
------------

Install last stable version from Pypi.

.. code:: sh

    pip install django-graphql-countries


Add ``countries`` to your *INSTALLED_APPS* settings:

.. code:: python

    INSTALLED_APPS = [
        ...
        'countries.apps.CountriesAppConfig',
    ]


Apply **migrations**:

.. code:: python

    python manage.py migrate


Load data
---------

The ``loadcountries`` management command read all **fixtures** and re-loaded into the database:

.. code:: sh

    python manage.py loadcountries


Schema
------

Add queries to your GraphQL schema

.. code:: python

    import graphene
    import graphql_countries


    class Query(graphene.ObjectType, graphql_countries.Query):
        """GraphQL Queries"""


    schema = graphene.Schema(query=Query)


**Query**

Countries *GeoJSON* **outlines**:

.. code::

    query {
      countries {
        capital
        mpoly {
          type
          coordinates
        }
      }
    }


Relay
-----

Complete support for `Relay`_.

.. _Relay: https://facebook.github.io/relay/

.. code:: python

    import graphene
    import graphql_countries


    class Query(graphene.ObjectType, graphql_countries.relay.Query):
        """Relay Queries"""


    schema = graphene.Schema(query=Query)


**Query**

*GeoJSON* **outlines** for ���� Vietnam:

.. code::

    query {
      countries(cca2: "VN") {
        edges {
          node {
            capital
            mpoly {
              type
              coordinates
            }
          }
        }
      }
    }


.. |Pypi| image:: https://img.shields.io/pypi/v/django-graphql-countries.svg
   :target: https://pypi.python.org/pypi/django-graphql-countries

.. |Wheel| image:: https://img.shields.io/pypi/wheel/django-graphql-countries.svg
   :target: https://pypi.python.org/pypi/django-graphql-countries

.. |Build Status| image:: https://travis-ci.org/flavors/django-graphql-countries.svg?branch=master
   :target: https://travis-ci.org/flavors/django-graphql-countries

.. |Codecov| image:: https://img.shields.io/codecov/c/github/flavors/django-graphql-countries.svg
   :target: https://codecov.io/gh/flavors/django-graphql-countries

.. |Code Climate| image:: https://api.codeclimate.com/v1/badges/909e7331eb1c43e92a46/maintainability
   :target: https://codeclimate.com/github/flavors/django-graphql-countries