Usable utility extensions for Ariadne & Django
Project description
ariadne-django-ext
Installation • Contributing • License
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
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)
Built Distribution
Close
Hashes for ariadne_django_ext-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67e22fe99adc11c3c2da4333060af31522c36b0ea7e41e7ff133dab4dcee05e5 |
|
MD5 | c0780a3125fa261cb9c1335293ca45b2 |
|
BLAKE2b-256 | 53b93b4f65550cd5557c09031d0e927c98bc315ced4b749ff10a3f78d53fabd7 |