You are here: Home / LBN / Up2date / Core Linux / BastionLinux 36 / python3-strawberry-graphql-0.264.0-1.lbn36.noarch

python3-strawberry-graphql-0.264.0-1.lbn36.noarch

Package Attributes
RPM  python3-strawberry-graphql-0.264.0-1.lbn36.noarch.rpm Architecture  noarch Size  2097783 Created  2025/07/23 05:04:29 UTC
Package Specification
Summary A library for creating GraphQL APIs
Group Unspecified
License ZPL
Home Page https://pypi.org/project/strawberry-graphql
Description

Strawberry GraphQL

Python GraphQL library based on dataclasses

Installation ( Quick Start ) The quick start method provides a server and CLI to get going quickly. Install with: pip install "strawberry-graphql[debug-server]"

Getting Started Create a file called app.py with the following code: import strawberry

@strawberry.type class User: name: str age: int

@strawberry.type class Query: @strawberry.field def user(self) -> User: return User(name="Patrick", age=100)

schema = strawberry.Schema(query=Query)

This will create a GraphQL schema defining a User type and a single query field user that will return a hardcoded user. To run the debug server run the following command: strawberry server app

Open the debug server by clicking on the following link: http:/0.0.0.0:8000/graphql This will open GraphiQL where you can test the API. Type-checking Strawberry comes with a mypy plugin that enables statically type-checking your GraphQL schema. To enable it, ad

Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PayloadIsZstd)  
(python3.10dist(python-dateutil) < 3~~ with python3.10dist(python-dateutil) >= 2.7)  
rpmlib(CompressedFileNames)  
rpmlib(RichDependencies)  
/usr/bin/python3  
rpmlib(PartialHardlinkSets)  
rpmlib(TildeInVersions)  
rpmlib(FileDigests)  
(python3.10dist(graphql-core) < 3.4~~ with python3.10dist(graphql-core) >= 3.2)  
Provides
python-strawberry-graphql
python3-strawberry-graphql
python3.10-strawberry-graphql
python3.10dist(strawberry-graphql)
python3dist(strawberry-graphql)
Obsoletes
python-strawberry-graphql

Document Actions