Skip to main content

GraphQL integration for AllianceAuth

Reason this release was yanked:

not stable

Project description

allianceauth-graphql

version

GraphQL integration for AllianceAuth

Free software: GNU General Public License v3

Usage

This version is still in pre-alpha, as of v0.1.1 it does nothing.

Setup

The following is assuming you have a functioning AllianceAuth installation.

Install plugin

  1. pip install allianceauth-graphql.

  2. Add 'allianceauth_graphql' (note the underscore) to the bottom of your INSTALLED_APPS in the local.py settings file.

  3. Add the following setting at the bottom of your urls.py file:

    GRAPHENE = {
        'SCHEMA': 'allianceauth_graphql.schema.schema',
    }
    
  4. Edit your projects url.py file:

    It should look something like this

    from django.conf.urls import include, url
    from allianceauth import urls
    
    urlpatterns = [
        url(r'', include(urls)),
    ]
    
    handler500 = 'allianceauth.views.Generic500Redirect'
    handler404 = 'allianceauth.views.Generic404Redirect'
    handler403 = 'allianceauth.views.Generic403Redirect'
    handler400 = 'allianceauth.views.Generic400Redirect'
    

    After the edit:

    from django.conf.urls import include, url
    from allianceauth import urls
    from allianceauth_graphql import urls as aa_gql_urls
    
    urlpatterns = [
        url(r'', include(urls)),
        url(r'graphql/', include(aa_gql_urls)),
    ]
    
    handler500 = 'allianceauth.views.Generic500Redirect'
    handler404 = 'allianceauth.views.Generic404Redirect'
    handler403 = 'allianceauth.views.Generic403Redirect'
    handler400 = 'allianceauth.views.Generic400Redirect'
    

Settings

Setting Default Description
SHOW_GRAPHIQL True Shows the graphiql UI in the browser

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

v0.1.0 (2022-04-02)

* Working /graphql/ endpoint and updated requirements.

v0.1.0 (2022-03-18)

* First release on PyPI.

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

allianceauth_graphql-0.1.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

allianceauth_graphql-0.1.1-py2.py3-none-any.whl (7.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file allianceauth_graphql-0.1.1.tar.gz.

File metadata

  • Download URL: allianceauth_graphql-0.1.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for allianceauth_graphql-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0de60c68a02eec6f828339b44ffbe6b9dfda63e8ec546e3f0097d0f2793f0cd0
MD5 f51e07c66c42967e686d7ff739c9c5d7
BLAKE2b-256 f18e6e48561daaa53d686e40f3d058df324f077946939c4bf6958726580b48d4

See more details on using hashes here.

File details

Details for the file allianceauth_graphql-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: allianceauth_graphql-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for allianceauth_graphql-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2ec33b4f1f72b6266e5a28260413e8ba96b18de27d3a1b23a87e3489e7328f15
MD5 386cb1dea5e72768d9d4a111822ef04e
BLAKE2b-256 6a5eff6708757d233697d2333ce6affcc4af0830f19fe47ee3f648939966df9c

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