Skip to main content

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.

Read Full Documentation here: https://docs.ashraful.dev/pnp-graphql

Quick Start

Documentation is coming soon...

  • Install from pip pip install pnp-graphql
  • Add graphene_django on top of installed apps on settings.py
  • 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'
}
  • Add the following code on urls.py
from pnp_graphql.urls import urlpatterns as up

urlpatterns = [
    # ... ... ... 
]
urlpatterns += up
  • 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 ... ... ...

Waiting for your contribution 😄

Metadata

Release files for pnp-graphql 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pnp-graphql 0.1.5
File Size Uploaded Provenance Actions
pnp-graphql-0.1.5.tar.gz 13.9 kB Without provenance Details for pnp-graphql-0.1.5.tar.gz

Release files / pnp-graphql-0.1.5.tar.gz

Download URL pnp-graphql-0.1.5.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
93a7646b9bdaded9c050d4b1e4a863874089d59365f542de5b67a0e79d2e8827
BLAKE2b-256 checksum
How to use checksums
f5a73c40d2da7e80ddc3cc5cfaf7b2fec05cdfe7641fa6f4f625bc0c4d8a8d27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.1

Security for pnp-graphql 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page