Ariadne is a Python library for implementing GraphQL servers using a schema-first approach.
—
Quality
Pending
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Built-in GraphQL development tools including GraphQL Playground, GraphiQL, and Apollo Studio integration for API exploration and testing.
class Explorer:
"""Base class for GraphQL explorers."""
def __init__(self, title: str = "Ariadne GraphQL"): ...
class ExplorerPlayground(Explorer):
"""GraphQL Playground explorer."""
class ExplorerGraphiQL(Explorer):
"""GraphiQL explorer."""
class ExplorerApollo(Explorer):
"""Apollo Studio explorer."""
class ExplorerHttp405(Explorer):
"""Explorer that returns HTTP 405."""def render_template(template: str, **context) -> str:
"""Render HTML template with context."""
def escape_default_query(query: str) -> str:
"""Escape default query for HTML embedding."""from ariadne.asgi import GraphQL
from ariadne.explorer import ExplorerPlayground
# Enable GraphQL Playground
app = GraphQL(
schema,
explorer=ExplorerPlayground(title="My API")
)Install with Tessl CLI
npx tessl i tessl/pypi-ariadne