## Usage
```python
import graphene
from graphene_django.types import DjangoObjectType
from django.contrib.auth import models as auth_models
from graphene import Node
from opencrud.connection import WithOpenCrudConnection
from opencrud.list import OpenCrudDjangoFilterListField
from opencrud.filter import OpenCrudDjangoFilterConnectionField
from opencrud.field import OpenCrudDjangoField
class User(DjangoObjectType):
@WithOpenCrudConnection(auth_models.User)
class Meta:
filter_fields = ('id', 'email', )
interfaces = (Node, )
class Query(graphene.ObjectType):
user = OpenCrudDjangoField(User)
users = OpenCrudDjangoFilterListField(User)
users_connection = OpenCrudDjangoFilterConnectionField(User)
```
## Contributing
After cloning this repo, ensure dependencies are installed by running:
```sh
pip install -e ".[test]"
```
After developing, the full test suite can be evaluated by running:
```sh
py.test opencrud --cov=opencrud # Use -v -s for verbose mode
```
Metadata
Release files for graphene-django-opencrud 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| graphene-django-opencrud-1.0.0.tar.gz | 8.5 kB | Without provenance | Details for graphene-django-opencrud-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| graphene_django_opencrud-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for graphene_django_opencrud-1.0.0-py3-none-any.whl |
Total release size: 20.6 kB
Release files / graphene-django-opencrud-1.0.0.tar.gz
| Download URL | graphene-django-opencrud-1.0.0.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
afe182dc21f876e623428280bab98ac67b018d899692860d55bd1a76380e928b
|
|
BLAKE2b-256 checksum How to use checksums |
e489dc3e744377c9bf078b179816e4c77d9c113f8ad2395e5fcc032909f1c8c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.5.2
|
Release files / graphene_django_opencrud-1.0.0-py3-none-any.whl
| Download URL | graphene_django_opencrud-1.0.0-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aec74f0f0ff5e1fe3defbecf0ab1a18352d0cf52f397bbc33571b29de0924202
|
|
BLAKE2b-256 checksum How to use checksums |
050cac23e3cdbc9c162e76846a2f4906cb6a59ae98f671beee667644c96fe079
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.5.2
|
Security for graphene-django-opencrud 1.0.0
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.