Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A simple model based GraphQL API configurator written in Python and based of Django

Project description

Plug & Play GraphQL (pnp-graphql)-- Change Log

A library for making GraphQL API with Python/Django. This is like a flash drive, just how you plug into computer and transfer files.

Quick Start

Documentation is coming soon...

  • Install from pip pip install pnp-graphql
  • Add graphene_django on top of installed apps on
  • Add pnp_graphql into installed apps on
  • Add PnP GraphQL config on settings.
    'SCHEMA': 'pnp_graphql.schema.schema'

    'ENABLED_APPS': ['example_app'],
    # If you want to use Token Authentication. Otherwise it's optional
    'AUTHENTICATION_CLASS': 'pnp_graphql.authentication.TokenAuthentication'
  • Set DEBUG = False for production use.

That's it :)
Now visit: http://your-ip:port/api/graphql-explorer/ for explore GraphQL built-in UI explorer for query.
Production ready API : http://your-ip:port/api/graphql/

What's working?

  • GraphQL query
  • Mutation (Create, Update, Delete)
  • Pagination
  • API filtering for Number, String, Date, DateTime
  • Authentication

What are the plans?

  • Proper error handling
  • Field validation
  • Caching
  • many more ... ... ...

Project details

Download files

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

Files for pnp-graphql, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size pnp-graphql-0.1.3.tar.gz (11.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page