Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A awesome-python
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 13
    • Issues 13
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 317
    • Merge requests 317
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Vinta Chen
  • awesome-python
  • Merge requests
  • !1736
An error occurred while fetching the assigned milestone of the selected merge_request.

Add Ariadne GraphQL library

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Administrator requested to merge github/fork/andriykohut/patch-1 into master 4 years ago
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 1

Created by: andriykohut

What is this Python project?

Ariadne is a Python library for implementing GraphQL servers using a schema-first approach.

What's the difference between this Python project and similar ones?

Schema-first approach - unlike graphene the schema is defined explicitly and is not inferred from code, it's more light-weight and less opinionated, it has subscriptions, file uploads, tracing and other useful stuff built-in.

Example hello world app with starlette:

from ariadne import QueryType, make_executable_schema
from ariadne.asgi import GraphQL
from starlette.applications import Starlette

type_defs = """
    type Query {
        hello: String!
    }
"""

query = QueryType()


@query.field("hello")
def resolve_hello(*_):
    return "Hello world!"


# Create executable schema instance
schema = make_executable_schema(type_defs, query)

app = Starlette(debug=True)
app.mount("/graphql", GraphQL(schema, debug=True))

Here's a really nice into and justification from one of the authors: https://blog.mirumee.com/schema-first-graphql-the-road-less-travelled-cf0e50d5ccff

Anyone who agrees with this pull request could submit an Approve review to it.

Compare
  • version 1
    f3fe79bb
    2 years ago

  • master (HEAD)

and
  • latest version
    f3fe79bb
    1 commit, 2 years ago

  • version 1
    f3fe79bb
    1 commit, 2 years ago

1 file
+ 1
- 0

    Preferences

    File browser
    Compare changes
README.md
+ 1
- 0
  • View file @ 2b1b357f

  • Edit in single-file editor

  • Open in Web IDE


@@ -683,6 +683,7 @@ Inspired by [awesome-php](https://github.com/ziadoz/awesome-php).
*Libraries for working with GraphQL.*
* [ariadne](https://ariadnegraphql.org/) - A library for implementing GraphQL servers using schema-first approach.
* [graphene](https://github.com/graphql-python/graphene/) - GraphQL framework for Python.
* [tartiflette-aiohttp](https://github.com/tartiflette/tartiflette-aiohttp/) - An `aiohttp`-based wrapper for Tartiflette to expose GraphQL APIs over HTTP.
* [tartiflette-asgi](https://github.com/tartiflette/tartiflette-asgi/) - ASGI support for the Tartiflette GraphQL engine.
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
0
0 participants
Reference:
Source branch: github/fork/andriykohut/patch-1

Menu

Explore Projects Groups Snippets