graphql-relay
Relay library for graphql-core
Decision gist · record as of 2026-08-14
Yes, if you are building a new Relay-compliant GraphQL server with graphql-core and need the standard Relay patterns. No, if you require active maintenance, bug fixes, or compatibility with future Python or graphql-core versions—the package is abandoned and has not been updated since 2022-04-16. Consider only if your dependencies are stable and you can maintain a fork if needed.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires graphql-core and typing-extensions as runtime dependencies; Python 3.6 or above.
- Low install friction with only two runtime dependencies.
- However, the package is abandoned—last release was 2022-04-16 and no commits since 2023-02-27—so it will not receive bug fixes or updates.
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing free use, modification, and distribution with minimal restrictions, suitable for both open-source and commercial projects.
last release 2022-04-16 (1581 days) · last repo commit 2023-02-27 · 144 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 41,969,755 downloads/mo, #664 on PyPI
Alternatives
Verify before relying
pip install graphql-relay
from graphql_relay import connection_definitions, node_definitions
ship_edge, ship_connection = connection_definitions(ship_type, "Ship")
node_interface, node_field = node_definitions(get_node, get_node_type)[:2]- Whether the package remains compatible with current versions of graphql-core and modern Python versions despite being abandoned.
- Whether Relay patterns have evolved since the last release in a way that this library no longer fully implements the specification.
What it is and what it does
graphql-relay is a Python port of the JavaScript graphql-relay-js library, designed to work with graphql-core to implement the Relay specification for GraphQL servers. It provides helper functions to construct Relay patterns without writing boilerplate: connection types for cursor-based pagination (forward, backward, or bidirectional), global object identification via opaque IDs, and mutation wrappers with client mutation IDs.
The library is used by importing functions like connection_definitions, node_definitions, connection_from_array, and mutation_with_client_mutation_id from the top-level graphql_relay package and applying them when building your GraphQL schema with graphql-core. It depends on graphql-core and typing-extensions. The package supports Python 3.6 and above.
Use it for
- Build a GraphQL server with cursor-based pagination for large result sets using connection types.
- Implement global object identification across your schema using node_definitions and global ID helpers.
- Create Relay-compliant mutations with client mutation IDs using mutation_with_client_mutation_id.
- Port a JavaScript Relay server to Python by reusing the same Relay specification patterns.
- Simplify schema construction by using connection_args and connection_definitions instead of manual pagination setup.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building a new Relay-compliant GraphQL server with graphql-core and need the standard Relay patterns.
No, if you require active maintenance, bug fixes, or compatibility with future Python or graphql-core versions—the package is abandoned and has not been updated since 2022-04-16. Consider only if your dependencies are stable and you can maintain a fork if needed.
Install
graphql-relay on PyPI
Before you install
Low install friction with only two runtime dependencies. However, the package is abandoned—last release was 2022-04-16 and no commits since 2023-02-27—so it will not receive bug fixes or updates.
Requires graphql-core and typing-extensions as runtime dependencies; Python 3.6 or above.
License in practice
MIT license is permissive, allowing free use, modification, and distribution with minimal restrictions, suitable for both open-source and commercial projects.
Quickstart
pip install graphql-relay
from graphql_relay import connection_definitions, node_definitions
ship_edge, ship_connection = connection_definitions(ship_type, "Ship")
node_interface, node_field = node_definitions(get_node, get_node_type)[:2]
Verify before relying
- Whether the package remains compatible with current versions of graphql-core and modern Python versions despite being abandoned.
- Whether Relay patterns have evolved since the last release in a way that this library no longer fully implements the specification.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.6,<4 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesgraphql-coretyping-extensions |
| Maintenance | Abandoned 1,581 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 41,969,755 / month, #664 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries |
Evidence: graphql_relay-3.2.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “relay graphql python”
- graphql-relayProvides Relay-compliant patterns for GraphQL-core, including…
- grapheneGraphene is a Python library for building GraphQL schemas and types…
- graphene-djangoGraphene-Django bridges Django models and GraphQL APIs, automatically…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also graphql-core · graphql-server · graphql-server-core · graphene · gql · graphql-core-promise · python-graphql-client · graphene-django · strawberry-graphql-django · pydgraph