# Add Python to your GraphQL API with GraphOS and Strawberry GraphQL

DevFeed: [Add Python to your GraphQL API with GraphOS and Strawberry GraphQL](<https://devfeed.tech/articles/add-python-to-your-graphql-api-with-graphos-and-strawberry-graphql-23125.md>)

Original publisher: [Read original article](<https://www.apollographql.com/blog/add-python-to-your-graphql-api-with-graphos-and-strawberry-graphql>)

Author: Patrick Arminio

Published: 2022-12-13T09:04:00Z

Content type: tutorial

Language: en

Sources: [Apollo Blog](<https://devfeed.tech/sources/apollo-blog.md>)

Topics: [GraphQL](<https://devfeed.tech/topics/graphql.md>), [Python](<https://devfeed.tech/topics/python.md>), [API](<https://devfeed.tech/topics/api.md>), [Framework](<https://devfeed.tech/topics/framework.md>), [Library](<https://devfeed.tech/topics/library.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [apollo](<https://devfeed.tech/tags/apollo.md>), [apollo-federation](<https://devfeed.tech/tags/apollo-federation.md>), [backend](<https://devfeed.tech/tags/backend.md>), [code](<https://devfeed.tech/tags/code.md>), [framework](<https://devfeed.tech/tags/framework.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [interfaces](<https://devfeed.tech/tags/interfaces.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [post](<https://devfeed.tech/tags/post.md>), [python](<https://devfeed.tech/tags/python.md>), [schema](<https://devfeed.tech/tags/schema.md>), [sdl](<https://devfeed.tech/tags/sdl.md>), [server](<https://devfeed.tech/tags/server.md>), [snippet](<https://devfeed.tech/tags/snippet.md>), [syntax](<https://devfeed.tech/tags/syntax.md>), [types](<https://devfeed.tech/tags/types.md>), [writing](<https://devfeed.tech/tags/writing.md>)

## AI overview

This tutorial explains how to build a Python subgraph for a GraphQL supergraph using the Strawberry GraphQL library. It introduces Strawberry's code-first approach, Python type annotations, and how it compares with schema-first GraphQL development.

## Source excerpt

A supergraph helps you share responsibility for your organization's data across multiple backend services (these are known as subgraphs). Different teams can work on different subgraphs in parallel, and better yet, each subgraph can use an entirely different language and framework! There are loads of subgraph-compatible libraries to choose from. In this post, we'll look at how to create a subgraph in Python using the Strawberry GraphQL library.