Strawberry is a developer friendly GraphQL library for Python, designed for
modern development.
* Type hints: Leverages Python type hints to provide a great developer
experience while creating GraphQL Libraries.
* Async Support: Supports async/await out of the box, allowing you to write
your resolvers in a non-blocking way.
* Extensible: Has support for schema and field extensions, allowing you to
extend the schema with custom logic.
* Generics: Supports generics, allowing you to create reusable types that can
be used in multiple places.
* Federation: Supports Federation, allowing you to create a federated GraphQL
schema.
* Dataloaders: Comes with support for dataloaders, allowing you to batch
multiple queries into a single one.
* Integrations: Has support for multiple integrations, allowing you to use it
with your favorite web framework.
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 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-0.327.3:
AIOHTTP=off: Basic AIOHTTP integration
APOLLO-FEDERATION=off: Apollo Federation GraphQL support
ASGI=off: Basic ASGI integration
CHANNELS=off: Support for Django Channels
CLI=off: Support for CLI commands
DEBUG=off: Generate verbose debug information
DJANGO=off: Basic Django integration
FASTAPI=off: Support for FastAPI in conjunction with GraphQLRouter
FLASK=off: Basic Flask integration
OPENTELEMETRY=off: Generate Open Telemetry compatible tracing information
PYDANTIC=off: Support for Pydantic models
===> Use 'make config' to modify these settings
*: 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
devel/py-strawberry-graphql: Update to 0.314.3
devel/py-dj52-strawberry-graphql: Update to 0.314.3
* Add APOLLO-FEDERATION option, which has been introduced with the
0.314.0 release, and keep it non-default like the other options to
keep the dependencies at a minimum.
Changelog since 0.312.4:
https://github.com/strawberry-graphql/strawberry/blob/0.314.3/CHANGELOG.md
*: 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)
devel/py-strawberry-graphql: Update to 0.237.2
* Belatedly add CONFLICTS_INSTALL while I'm here, because the port has
now also had devel/py-dj50-strawberry-graphql as Django 5.0
counterpart since 9dcfcfc7df21.
Changelog since 0.235.2:
https://github.com/strawberry-graphql/strawberry/blob/0.237.2/CHANGELOG.md
*: 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
devel/py-python-dateutil: Move devel/py-dateutil to devel/py-python-dateutil
- Convert to USE_PYTHON=pep517
- Bump PORTREVISION of dependent ports for dependency change
- While I'm here, update audio/py-pyradio to use PYTHON_PKGNAMEPREFIX instead of
PKGNAMEPREFIX for *_DEPENDS
devel/py-strawberry-graphql: New port
Strawberry is a developer friendly GraphQL library for Python, designed
for modern development.
* Type hints: Leverages Python type hints to provide a great developer
experience while creating GraphQL Libraries.
* Async Support: Supports async/await out of the box, allowing you to
write your resolvers in a non-blocking way.
* Extensible: Has support for schema and field extensions, allowing you
to extend the schema with custom logic.
* Generics: Supports generics, allowing you to create reusable types
(Only the first 15 lines of the commit message are shown above )