Skip to main content

Generate graphql schema.

Project description

Upload Python Package

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: [
          '--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

graphene_django_hook-1.0.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

graphene_django_hook-1.0.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file graphene_django_hook-1.0.0.tar.gz.

File metadata

  • Download URL: graphene_django_hook-1.0.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for graphene_django_hook-1.0.0.tar.gz
Algorithm Hash digest
SHA256 175b6ccabe28b1c315b41c7903a43ede1fd4f2f5ddb60aabb494a9d6adf8a835
MD5 007a677ee71d754eda5584279271b5f3
BLAKE2b-256 a842cc0a91b594a3cb0377bd5dbad50a017ffaab83d5dfb8a580e3c7f668db2f

See more details on using hashes here.

File details

Details for the file graphene_django_hook-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: graphene_django_hook-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for graphene_django_hook-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51b61d153c139c1de3350cb5652f59dd7448f755286733c17dd6c446d229859b
MD5 f482c5676bc6e6a70f5befec76417250
BLAKE2b-256 6225471bb172048743783e129e1ee82fb4149c0f37dc40aae8714736f1836244

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