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
pnp_graphql
into installed apps on settings.py - Add PnP GraphQL config on settings.
GRAPHENE = {
'SCHEMA': 'pnp_graphql.schema.schema'
}
PNP_GRAPHQL = {
'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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pnp-graphql-0.1.2.tar.gz
(11.4 kB
view details)
File details
Details for the file pnp-graphql-0.1.2.tar.gz
.
File metadata
- Download URL: pnp-graphql-0.1.2.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ae2af161149132b1750538866fc8cd77308ee847504e727194e6562f8bb6db1 |
|
MD5 | 37a94911322a8cae31aaf27c1ca17db5 |
|
BLAKE2b-256 | 7f1eae3aaddcb58d0fcc8efc4cf5f571da822df56b498c6971b2066f69306489 |