Skip to main content

A library for creating GraphQL APIs

Project description

Strawberry GraphQL

Python GraphQL library based on dataclasses



Install with:

pip install strawberry-graphql

Getting Started

Create a file called with the following code:

import strawberry

class User:
    name: str
    age: int

class Query:
    def user(self, info) -> User:

schema = strawberry.Schema(query=Query)


To run the debug server run the following command:

strawberry run server app

Open the debug server by clicking on the follwing link:




git clone
cd strawberry
poetry install
poetry run pytest


Pre commit


pre-commit install




Project details

Release history Release notifications | RSS feed

Download files


Files for strawberry-graphql, version 0.5.6
Filename, size File type Python version Upload date Hashes
Filename, size strawberry_graphql-0.5.6-py3-none-any.whl (20.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size strawberry-graphql-0.5.6.tar.gz (15.8 kB) File type Source Python version None Upload date Hashes View

Supported by
