This package provides powerful tools to generate GraphQL types, queries,
mutations and resolvers from Django models.
Supported Features:
* GraphQL type generation from models
* Filtering, pagination and ordering
* Basic create, retrieve, update and delete (CRUD) types and mutations
* Basic Django auth support, current user query, login and logout mutations
* Django sync and async views
* Permission extension using django's permissioning system
* Relay support with automatic resolvers generation
* Query optimization to improve performance and avoid common pitfalls (e.g n+1)
* Debug Toolbar integration with graphiql to display metrics like SQL queries
* Unit test integration
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py312-strawberry-graphql-django listed in the above command, you can pick from the names under the Packages section.
===> The following configuration options are available for py312-strawberry-graphql-django-0.88.0:
DEBUG-TOOLBAR=on: Debug support
ENUM=on: Integration for Django's TextChoices/IntegerChoices enumerations
===> Use 'make config' to modify these settings
port moved here from www/py-dj52-strawberry-graphql-django on 2026-06-30 REASON: Has expired: Obsolete, please use www/py-strawberry-graphql-django instead
*: Switch consumers over to Django 5.2
Django 4.2 reached its End-of-Life on 7th April 2026 and Django 5.2 is
the new LTS (= Long Term Support) release which will be supported until
April 2028.
* Switch most ports that use www/py-django42 to www/py-django52.
* Where necessary, remove PORTSCOUT, which is no longer needed because
an update to a newer version that no longer supports Django 4.2 should
now be possible.
* Bump PORTREVISION due dependency change where necessary.
PR: 291707
Reviewed by: sunpoet (python)
Differential Revision: https://reviews.freebsd.org/D56966
www/py-strawberry-graphql-django: Set PORTSCOUT
* Ignore new releases for now, because support for Django 4.2 was
dropped starting with version 0.83.0.
*: Revise USES=python:... version range constraints
and strip all lower bounds of 3.9 or 3.10 because they are implied now.
python:3.9-X -> python:-X
python:3.9+ -> python
python:3.10-X -> python:-X
python:3.10+ -> python
(options such as ,build preserved)
*: Switch consumers over to Django 4.2
Django 3.2 reached its End-of-Life on 1st April 2024 and Django 4.2 is
the new LTS (= Long Term Support) release which will be supported until
April 2026.
* Switch most ports that use www/py-django32 to www/py-django42.
* Ports that are not compatible with Django 3.2 have already been set
with an expiration date were not taken into account.
* Bump PORTREVISION due dependency change where necessary.
PR: 276319
Reviewed by: dvl, grembo, ultima
Approved by: bofh (implicit), dvl, grembo, Kevin Golding, sunpoet,
ultima, maintainer timeout (remaining maintainers)
Differential Revision: https://reviews.freebsd.org/D44637
www/py-strawberry-graphql-django: New port
This package provides powerful tools to generate GraphQL types, queries,
mutations and resolvers from Django models.
Supported Features:
* GraphQL type generation from models
* Filtering, pagination and ordering
* Basic create, retrieve, update and delete (CRUD) types and mutations
* Basic Django auth support, current user query, login and logout
mutations
* Django sync and async views
* Permission extension using django's permissioning system
* Relay support with automatic resolvers generation
* Query optimization to improve performance and avoid common pitfalls
(e.g n+1)
* Debug Toolbar integration with graphiql to display metrics like SQL queries
* Unit test integration
https://github.com/strawberry-graphql/strawberry-django