Generate graphql schema.
Project description
graphene-django-precommit-hook
pre-commit hook to generate .graphql
| .json
graphql schema for graphene-django.
As a pre-commit hook
See pre-commit for instructions
Sample basic .pre-commit-config.yaml
- repo: https://github.com/jackton1/graphene-django-precommit-hook
rev: v0.1.0
hooks:
- id: graphene-django-hook
stages: [commit]
Sample complex .pre-commit-config.yaml
- repo: https://github.com/jackton1/graphene-django-precommit-hook
rev: v0.1.0
hooks:
- id: graphene-django-hook
stages: [commit]
args: [
'--managepy-path',
'/path/to/manage.py', # Defaults to: manage.py
'--settings',
'project.settings'. # Defaults to: DJANGO_SETTINGS_MODULE
'--indent',
'4' # See https://docs.graphene-python.org/projects/django/en/latest/introspection/
'--out',
'path/to/schema.graphql',
'--schema',
'module.path.to.schema',
'--verbosity', # OR '-v'
'2', # Set the verbosity level {0,1,2,3}
]
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
Built Distribution
Close
Hashes for graphene_django_hook-0.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52346daefc79109b6e6db81489fae1b18f658f1385e3a8f649f3afd6475777e8 |
|
MD5 | 66ca9f11999951a044e2912ae39741dd |
|
BLAKE2b-256 | 5f3619282292d2c73976f929e52c8654e3c7ccb335516892aa04222b8bf96c55 |
Close
Hashes for graphene_django_hook-0.6.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dfd49bebfab52f52acef54a9232d2e602e076eb83f35e63e10c97fd15762f35 |
|
MD5 | e51be35a7323a50ef0246921130faa44 |
|
BLAKE2b-256 | 66ffbfa78df83b0b8b59354b03fd4c9308c0f7268f897ddc4d999cf5e9b46fe7 |