python-graphene
Port variant v13
Summary GraphQL Framework for Python (3.13)
BROKEN
Package version 3.4.3
Homepage https://github.com/graphql-python/graphene
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v12
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 15 NOV 2024, 16:08:50 UTC
Port created 01 JAN 2023, 17:21:46 UTC
Subpackage Descriptions
single # ![Graphene Logo] [Graphene] [PyPI version] [Coverage Status] [![]](https://discord.gg/T6Gp6NFYHe) [���� Join the community on Discord] **We are looking for contributors**! Please check the current issues to see how you can help ������ ## Introduction [Graphene] is an opinionated Python library for building GraphQL schemas/types fast and easily. - **Easy to use:** Graphene helps you use GraphQL in Python without effort. - **Relay:** Graphene has builtin support for Relay. - **Data agnostic:** Graphene supports any kind of data source: SQL (Django, SQLAlchemy), Mongo, custom Python objects, etc. We believe that by providing a complete API you could plug Graphene anywhere your data lives and make your data available through GraphQL. ## Integrations Graphene has multiple integrations with different frameworks: | integration | Package | | ----------------- | --------------------------------------------------------------------------------------- | | SQLAlchemy | [graphene-sqlalchemy] | | Mongo | [graphene-mongo] | | Apollo Federation | [graphene-federation] | | Django | [graphene-django] | Also, Graphene is fully compatible with the GraphQL spec, working seamlessly with all GraphQL clients, such as [Relay], [Apollo] and [gql]. ## Installation To install `graphene`, just run this command in your shell ```bash pip install "graphene>=3.1" ``` ## Examples Here is one example for you to get started: ```python import graphene class Query(graphene.ObjectType): hello = graphene.String(description='A typical hello world') def resolve_hello(self, info): return 'World' schema = graphene.Schema(query=Query) ``` Then Querying `graphene.Schema` is as simple as: ```python query = ''' query SayHello { hello } ''' result = schema.execute(query) ``` If you want to learn even more, you can also check the following [examples]: - **Basic Schema**: [Starwars example] - **Relay Schema**: [Starwars Relay example] ## Documentation Documentation and links to additional resources are available at https://docs.graphene-python.org/en/latest/ ## Contributing After cloning this repo, create a [virtualenv] and ensure dependencies are installed by running: ```sh virtualenv venv source venv/bin/activate pip install -e ".[test]" ``` Well-written tests and maintaining good test coverage is important to this project. While developing, run new and existing tests with: ```sh pytest graphene/relay/tests/test_node.py # Single file
Configuration Switches (platform-specific settings discarded)
PY312 OFF Build using Python 3.12 PY313 ON Build using Python 3.13
Package Dependencies by Type
Build (only) python313:dev:std
python-pip:single:v13
autoselect-python:single:std
Build and Runtime python313:primary:std
Runtime (only) python-graphql-core:single:v13
python-graphql-relay:single:v13
python-python-dateutil:single:v13
python-typing-extensions:single:v13
Download groups
main mirror://PYPIWHL/66/e0/61d8e98007182e6b2aca7cf65904721fb2e4bce0192272ab9cb6f69d8812
Distribution File Information
820db6289754c181007a150db1f7fff544b94142b556d12e3ebc777a7bf36c71 114894 python-src/graphene-3.4.3-py2.py3-none-any.whl
Ports that require python-graphene:v13
python-graphene-django:v13 Graphene Django integration (3.13)