Library / SDK
mirumee/ariadne avatar
mirumee/ariadne

Ariadne: schema-first GraphQL servers in Python, built on graphql-core and Starlette

Python library for implementing GraphQL servers using schema-first approach. Created with :heart: by Mirumee

2,348 stars197 forksPythonBSD-3-Clause

At a glance

What is it?
Ariadne by Mirumee lets you write the GraphQL schema in SDL and attach Python resolvers to it. This article covers the dependency footprint, the framework integrations, the subscription and SQLAlchemy features, and the places where the library hands work back to you.
Who is it for?
Ariadne suits Python teams who want to write the GraphQL schema in SDL first and bolt resolvers onto it, with ASGI or WSGI and Django, FastAPI, Flask or Starlette underneath. It is a poor fit if you want the schema derived from Python classes.
Can I use it commercially?
Yes. BSD-3-Clause is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 50 days ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • mirumee/ariadne2,348 ★ · +4
Star history
Repository2026-10-112026-11-25
mirumee/ariadne2.3k2.3k

4 Stars in the last 45 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The schema is an SDL string and resolvers are plain Python functions bound afterwards

Ariadne starts from the schema. You write types in Schema Definition Language, wrap the string in the `gql()` helper, and bind functions to fields with objects such as `QueryType` and `ObjectType`. The README quickstart defines a `Person` type with `firstName`, `lastName`, `age` and `fullName`, plus a `people` query returning a list of two persons, and then builds the result with `make_executable_schema`.

The `gql()` wrapper validates the syntax of the string at definition time and gives a better error traceback. Schemas can also be loaded from `.graphql`, `.gql` and `.graphqls` files. The README names schema-first as the leading approach in the GraphQL community, which is the project's own claim and not a measurement.

Installing it pulls in graphql-core and Starlette, even if you serve with WSGI

Installation is one command:

console
pip install ariadne

The package requires Python 3.10 or higher, up to 3.14. The dependency list in `pyproject.toml` is `graphql-core>=3.2.0,<3.4`, `starlette>0.17,<2.0` and `typing_extensions>=4.6.0`. Starlette is a hard dependency, so a Flask or Django project that never touches ASGI still installs it. File uploads on ASGI need `python-multipart>=0.0.13`, which sits in the `asgi-file-uploads` extra. A comment in the file marks `typing_extensions` for removal when Python 3.11 support is dropped, so that floor may move in a later release.

ASGI and WSGI servers, with four named framework integrations

The README lists ASGI and WSGI support with integrations for Django, FastAPI, Flask and Starlette. The repository ships `examples/fastapi_integration_example.py` and `examples/flask_integration_example.py`, and the `justfile` runs integration test suites for FastAPI, Starlette and Flask through `hatch run test-integration-fastapi:test` and its two siblings.

Django has a stated integration but no matching example file or integration test recipe in what the repository shows. If Django is your target, read the documentation at ariadnegraphql.org before assuming it behaves like the FastAPI path. The quickstart serves the app with uvicorn:

console
uvicorn example:app

Subscriptions work, and the repository keeps a file named subscription_middleware_workaround

Subscriptions are supported through async and sync generators, with customizable handlers. The examples folder holds `async_subscription_example.py`, `sync_subscription_example.py`, `subscription_handler_example.py` and `graphql_ws_subscription_example.py`, which covers the graphql-ws protocol.

One more file is `examples/subscription_middleware_workaround.py`. Its name says middleware needs special handling on subscriptions, but the README does not explain the details. Anyone who plans to apply authentication or tracing middleware to subscription fields should open that example first and test it before committing to the design. The README also does not cover how subscriptions behave when a client disconnects.

SQLAlchemy 2.0 integration removes resolver boilerplate and N+1 queries, if you use SQLAlchemy

The feature list claims automated integration with SQLAlchemy 2.0 for zero-boilerplate resolvers and N+1 prevention, and the `examples/sqlalchemy/` folder holds the sample. That benefit applies only to SQLAlchemy 2.0 users. Projects on another ORM, or on an older SQLAlchemy, write their own resolvers and handle N+1 themselves.

`pyproject.toml` lists `aiodataloader` among the test dependencies, and `dataloaders` appears in the package keywords, so batching with data loaders is the pattern the project exercises in its own tests. The README does not claim a built-in data loader. A separate opt-in switch maps between `camelCase123` and `snake_case_123`, so Python resolvers can use snake_case names for fields that the schema writes in camelCase. It is off by default.

No global state means every API is built from explicit objects

The README states there is no global state or object registry. Several GraphQL APIs can live in one codebase, and types are reused by passing them explicitly. That choice makes tests easier to isolate, and it makes you wire types yourself where a registry would have done it for you.

The ecosystem table lists four neighbors: `ariadne-codegen` for a GraphQL client code generator, `ariadne-auth` for authentication and authorization utilities, `ariadne-lambda` for deploying as AWS Lambda functions, and `ariadne-graphql-proxy` for combining multiple GraphQL APIs into one. Apollo Federation support and an OpenTelemetry extension are listed in the core features. The built-in GraphiQL explorer serves development and testing, and the quickstart opens it at `http://127.0.0.1:8000`.

Releases are active, the license is BSD-3-Clause, and the docs live in a separate repository

Version 1.1.1 was published on 7 October 2026, version 1.1.0 on 15 June 2026, and the prerelease 1.1.0a3 on 6 May 2026. The repository is not archived and the last push matches the 1.1.1 date. The classifier in `pyproject.toml` reads Production/Stable, and the project follows Semantic Versioning.

The website and documentation live in their own repository, mirumee/ariadne-website, so the main tree holds API reference tooling in `generate_reference.py` and a `docs/` folder but not the full site. Contributors run `just check` before opening a pull request. It chains formatting, type checks, tests on Python 3.10 and the integration suites through hatch. Bug reports go to GitHub issues and questions to GitHub discussions.

Editorial conclusion

Ariadne suits Python teams who want to write the GraphQL schema in SDL first and bolt resolvers onto it, with ASGI or WSGI and Django, FastAPI, Flask or Starlette underneath. It is a poor fit if you want the schema derived from Python classes. Before adopting it, check that your Python version falls between 3.10 and 3.14 and that graphql-core 3.2 or 3.3 is acceptable in your dependency tree.

Frequently asked questions

What is Ariadne?

Ariadne is a Python library for implementing GraphQL servers with a schema-first approach, built by Mirumee. It supports ASGI and WSGI and integrates with Django, FastAPI, Flask and Starlette.

Is Ariadne legit for production use?

Its package classifier is Development Status 5, Production/Stable, and the license is BSD-3-Clause. Version 1.1.1 was released on 7 October 2026 and the project follows Semantic Versioning.

Which Python versions does Ariadne support?

Ariadne requires Python 3.10 or higher, up to 3.14. The tests run across all of those versions through the test-all recipe.

Official sources

  1. License: BSD-3-Clause
  2. mirumee/ariadne on GitHub
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/mirumee-ariadne.svg)](https://hysenlabs.com/projects/mirumee-ariadne)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/mirumee-ariadne.svg)](https://hysenlabs.com/projects/mirumee-ariadne)

Was this useful?