Skip to main content

Usable utility extensions for Ariadne & Django

Project description

ariadne-django-ext

ci status pypi link codecov
supported python versions supported django versions

InstallationContributingLicense

Custom, simple Django User model with email as username

Installation

pip install ariadne-django-ext

cache decorator will cache a result returned from resolver using Django cache framework. You can it accepts timeout and version parameters and passed down.

Cache key must be either str or callable. Callable must accept parent, info as argument then return cache key.

from ariadne_django_ext import cache

@cache(key='cache_key')
def resolver(parent, info):
    ...
    return 'result'

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT License

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

ariadne-django-ext-1.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

ariadne_django_ext-1.0-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

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