How juanjcardona13/graphene_django_cruddals works
Project type and purpose
• This is an open-source Python library (a Django extension) named graphene-django-cruddals.
• Its purpose is to auto-generate a full CRUD+DALS GraphQL API from Django models using Graphene.
File structure
• Top-level directories and files:
• graphene_django_cruddals/ – core code:
– client/ – JS client builder functions
– converters/ – logic to convert Django model fields into Graphene types (input, filters, relations, order-by, output)
– resolvers/ – GraphQL resolver implementations for CRUD operations
– scalars_type/ – custom scalars (DateTime, IntOrAll)
– utils/ – shared utilities
– views/ – Django GraphQL views (file uploads, etc.)
– main.py – entry point that ties converters, resolvers, schema generation
• docs/ – MkDocs-based documentation site
• tests/ – pytest suite covering converters, client builder, schema, integration
• setup.py, setup.cfg, Makefile, CI configs – package build, linting, testing, deployment
README for additional insights
• Confirms that users subclass DjangoModelCruddals and reference its .Query and .Mutation in their project’s Graphene schema.