ariadne 1.0.1


pip install ariadne

  Latest version

Released: Apr 03, 2026


Meta
Author: Mirumee Software
Requires Python: >=3.10

Classifiers

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers

License
  • OSI Approved :: BSD License

Operating System
  • OS Independent

Programming Language
  • Python
  • Python :: 3
  • Python :: 3 :: Only
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14

Topic
  • Internet :: WWW/HTTP
  • Software Development :: Libraries :: Python Modules

Ariadne

Documentation codecov PyPI - Version PyPI - Downloads PyPI - Python Version


Ariadne

Ariadne is a Python library for implementing GraphQL servers.

  • Schema-first: Ariadne enables Python developers to use schema-first approach to the API implementation. This is the leading approach used by the GraphQL community and supported by dozens of frontend and backend developer tools, examples, and learning resources. Ariadne makes all of this immediately available to you and other members of your team.
  • Simple: Ariadne offers small, consistent and easy to memorize API that lets developers focus on business problems, not the boilerplate.
  • Open: Ariadne was designed to be modular and open for customization. If you are missing or unhappy with something, extend or easily swap with your own.

Documentation is available here.

Ariadne ecosystem

Repository Description
Ariadne Python library for implementing GraphQL servers using a schema-first approach.
Ariadne codegen GraphQL client code generator for Python.
Ariadne auth A collection of authentication and authorization utilities for Ariadne.
Ariadne lambda Deploy Ariadne GraphQL applications as AWS Lambda functions.
Ariadne GraphQL proxy A GraphQL proxy for Ariadne that allows you to combine multiple GraphQL APIs into a single API.

Features

  • Simple, quick to learn and easy to memorize API.
  • Queries, mutations and input types.
  • Asynchronous resolvers and query execution.
  • Subscriptions (async and sync generators, with customizable handlers).
  • Custom scalars, enums and schema directives.
  • Unions and interfaces.
  • File uploads.
  • Defining schema using SDL strings.
  • Loading schema from .graphql, .gql, and .graphqls files.
  • ASGI and WSGI support, with integrations for Django, FastAPI, Flask, and Starlette.
  • Opt-in automatic resolvers mapping between camelCase123 and snake_case_123.
  • OpenTelemetry extension for API monitoring.
  • Built-in GraphiQL explorer for development and testing.
  • GraphQL syntax validation via gql() helper function.
  • No global state or object registry, support for multiple GraphQL APIs in same codebase with explicit type reuse.
  • Support for Apollo Federation.

Installation

Ariadne can be installed with pip:

pip install ariadne

Ariadne requires Python 3.10 or higher (up to 3.14).

Quickstart

The following example creates an API defining Person type and single query field people returning a list of two persons. It also starts a local dev server with GraphiQL available on the http://127.0.0.1:8000 address.

Start by installing uvicorn, an ASGI server we will use to serve the API:

pip install uvicorn

Then create an example.py file for your example application:

from ariadne import ObjectType, QueryType, gql, make_executable_schema
from ariadne.asgi import GraphQL

# Define types using Schema Definition Language (https://graphql.org/learn/schema/)
# Wrapping string in gql function provides validation and better error traceback
type_defs = gql("""
    type Query {
        people: [Person!]!
    }

    type Person {
        firstName: String
        lastName: String
        age: Int
        fullName: String
    }
""")

# Map resolver functions to Query fields using QueryType
query = QueryType()

# Resolvers are simple python functions
@query.field("people")
def resolve_people(*_):
    return [
        {"firstName": "John", "lastName": "Doe", "age": 21},
        {"firstName": "Bob", "lastName": "Boberson", "age": 24},
    ]


# Map resolver functions to custom type fields using ObjectType
person = ObjectType("Person")

@person.field("fullName")
def resolve_person_fullname(person, *_):
    return "%s %s" % (person["firstName"], person["lastName"])

# Create executable GraphQL schema
schema = make_executable_schema(type_defs, query, person)

# Create an ASGI app using the schema, running in debug mode
app = GraphQL(schema, debug=True)

Finally run the server:

uvicorn example:app

For more guides and examples, please see the documentation.

Versioning policy

ariadne follows Semantic Versioning.

Contributing

We are welcoming contributions to Ariadne! If you've found a bug or issue, feel free to use GitHub issues. If you have any questions or feedback, don't hesitate to catch us on GitHub discussions.

For guidance and instructions, please see CONTRIBUTING.md.

Website and the docs have their own GitHub repository: mirumee/ariadne-website

Crafted with ❤️ by Mirumee Software ariadne@mirumee.com

1.1.0a2 Apr 07, 2026
1.1.0a1 Mar 24, 2026
1.0.1 Apr 03, 2026
1.0.0 Mar 16, 2026
0.29.0 Feb 19, 2026
0.28.1rc1 Feb 06, 2026
0.28.0 Feb 03, 2026
0.28.0rc2 Jan 27, 2026
0.28.0rc1 Jan 26, 2026
0.27.1 Jan 27, 2026
0.27.0 Jan 16, 2026
0.26.2 Apr 18, 2025
0.26.1 Feb 19, 2025
0.26.0 Feb 18, 2025
0.26.0.dev1 Feb 18, 2025
0.25.2 Feb 10, 2025
0.25.1 Feb 03, 2025
0.25.0 Feb 03, 2025
0.24.0 Dec 19, 2024
0.23.0 Mar 18, 2024
0.23.0b1 Feb 29, 2024
0.22 Jan 31, 2024
0.22.0b1 Jan 08, 2024
0.21 Nov 08, 2023
0.20.1 Jun 27, 2023
0.20.0 Jun 21, 2023
0.19.1 Mar 28, 2023
0.19.0 Mar 27, 2023
0.18.1 Feb 22, 2023
0.18.0 Feb 21, 2023
0.18.0rc2 Feb 20, 2023
0.18.0rc1 Feb 20, 2023
0.17.1 Jan 09, 2023
0.17.1b1 Dec 16, 2022
0.17.0 Dec 14, 2022
0.17.0b2 Dec 13, 2022
0.17.0.dev1 Nov 04, 2022
0.16.1 Sep 26, 2022
0.16.1b1 Sep 16, 2022
0.16.0 Sep 08, 2022
0.16.0b2 Sep 07, 2022
0.16.0b1 Aug 04, 2022
0.15.1 Apr 22, 2022
0.15.0 Apr 13, 2022
0.15.0.dev5 Apr 12, 2022
0.15.0.dev4 Apr 04, 2022
0.14.1 Jan 28, 2022
0.14.0 Nov 24, 2021
0.13.0 Mar 17, 2021
0.12.0 Aug 04, 2020
0.11.0 Apr 01, 2020
0.10.0 Feb 11, 2020
0.9.0 Dec 11, 2019
0.8.0 Nov 25, 2019
0.7.0 Oct 03, 2019
0.7.0a2 Oct 02, 2019
0.7.0a1 Aug 22, 2019
0.6.0 Aug 12, 2019
0.5.0 Jun 07, 2019
0.5.0b1 Jun 05, 2019
0.4.0 May 23, 2019
0.3.0 Apr 08, 2019
0.2.0 Jan 07, 2019
0.2.0b1 Dec 17, 2018
0.1.0 Oct 31, 2018
0.0.10 Oct 31, 2018
0.0.4 Oct 23, 2018
0.0.3 Oct 16, 2018
0.0.2 Oct 03, 2018
0.0.1 Aug 06, 2018

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
graphql-core (>=3.2.0)
starlette (<2.0,>0.17)
typing-extensions (>=4.6.0)