python-graphene
Port variant v11
Summary GraphQL Framework for Python (3.11)
BROKEN
Package version 3.4.1
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 09 NOV 2024, 17:03:26 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)
PY311 ON Build using Python 3.11 PY312 OFF Build using Python 3.12
Package Dependencies by Type
Build (only) python-pip:single:v11
autoselect-python:single:std
Build and Runtime python311:single:std
Runtime (only) python-graphql-core:single:v11
python-graphql-relay:single:v11
python-python-dateutil:single:v11
python-typing-extensions:single:v11
Download groups
main mirror://PYPIWHL/7a/53/cdde1b7ae046c3763f3927bfceacfc6b7f34ea631dc39adfba83b2809c86
Distribution File Information
ca98f853201293871cdc7f55faf2523a9bc077181fe0f4947db5a243e5c67083 114726 graphene-3.4.1-py2.py3-none-any.whl
Ports that require python-graphene:v11
python-graphene-django:v11 Graphene Django integration (3.11)