Skip to main content

A GIS extension for graphene-django that defines scalars, field conversions, and other useful things

Project description

https://github.com/serioeseGmbH/django-graphene-gis-extension

django-graphene-gis-extension extends django-graphene with GIS related type definitions (i.e. scalars, field conversions, …).

Quick start

  1. Install the package with pip:

    pip install django-graphene-gis-extension
  2. Add “serious_django_services” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'graphene_gis_extension',
    ]
  3. Use the scalars and input type definitions wherever you need them, for instance in a Query:

    from graphene_gis_extension.scalars import PointScalar
    from graphene_gis_extension.input_types import NearInputType
    
    class Query(graphene.ObjectType):
        thing_with_location = graphene.Field(
            ThingWithLocationType,
            exactly_at=graphene.Argument(PointScalar)
            near=graphene.Argument(NearInputType)
        )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-graphene-gis-extension-0.3.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file django-graphene-gis-extension-0.3.tar.gz.

File metadata

  • Download URL: django-graphene-gis-extension-0.3.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.3

File hashes

Hashes for django-graphene-gis-extension-0.3.tar.gz
Algorithm Hash digest
SHA256 ade259e6152282300fef6fdd50567e643d7208dedc769587db4cd0673083a280
MD5 d660ab503fa72353022539f7ff169a0a
BLAKE2b-256 7244981217f2ec3fc888f6629e6e1f9eae39ceddd9f59332ce5d7140c9f23cb4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page