mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-29 21:13:58 +03:00
Updated repo url under graphql-python github community
This commit is contained in:
parent
f9a0f18b0d
commit
2303db7f94
14
README.md
14
README.md
|
@ -1,10 +1,17 @@
|
||||||
# Graphene: Pythonic GraphQL [![Build Status](https://travis-ci.org/syrusakbary/graphene.svg?branch=master)](https://travis-ci.org/syrusakbary/graphene) [![Coverage Status](https://coveralls.io/repos/syrusakbary/graphene/badge.svg?branch=master&service=github)](https://coveralls.io/github/syrusakbary/graphene?branch=master)
|
# Graphene: Pythonic GraphQL [![Build Status](https://travis-ci.org/graphql-python/graphene.svg?branch=master)](https://travis-ci.org/graphql-python/graphene) [![Coverage Status](https://coveralls.io/repos/graphql-python/graphene/badge.svg?branch=master&service=github)](https://coveralls.io/github/graphql-python/graphene?branch=master)
|
||||||
|
|
||||||
This is a library to use GraphQL in a Pythonic and easy way.
|
This is a library to use GraphQL in a Pythonic and easy way.
|
||||||
It maps the models/fields to internal GraphQLlib objects without effort. Including automatic [Django models](#djangorelay-schema) conversion.
|
It maps the models/fields to internal GraphQLlib objects without effort. Including automatic [Django models](#djangorelay-schema) conversion.
|
||||||
|
|
||||||
|
|
||||||
*Note: This library requires installing [graphqllib](https://github.com/dittos/graphqllib) and [graphql-relay](https://github.com/syrusakbary/graphql-relay-py) external libraries.*
|
## Installation
|
||||||
|
|
||||||
|
For instaling graphene, just run this command in your shell
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip install graphene
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
@ -13,9 +20,6 @@ Example code of a GraphQL schema using Graphene:
|
||||||
### Schema definition
|
### Schema definition
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import graphene
|
|
||||||
# ...
|
|
||||||
|
|
||||||
class Character(graphene.Interface):
|
class Character(graphene.Interface):
|
||||||
id = graphene.IDField()
|
id = graphene.IDField()
|
||||||
name = graphene.StringField()
|
name = graphene.StringField()
|
||||||
|
|
8
setup.py
8
setup.py
|
@ -24,11 +24,11 @@ class PyTest(TestCommand):
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='graphene',
|
name='graphene',
|
||||||
version='0.1',
|
version='0.1.0',
|
||||||
|
|
||||||
description='Graphene: Python DSL for GraphQL',
|
description='Graphene: Python DSL for GraphQL',
|
||||||
|
|
||||||
url='https://github.com/syrusakbary/graphene',
|
url='https://github.com/graphql-python/graphene',
|
||||||
|
|
||||||
author='Syrus Akbary',
|
author='Syrus Akbary',
|
||||||
author_email='me@syrusakbary.com',
|
author_email='me@syrusakbary.com',
|
||||||
|
@ -55,8 +55,8 @@ setup(
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'six',
|
'six',
|
||||||
'blinker',
|
'blinker',
|
||||||
'graphqllib',
|
'graphql-core==0.1a0',
|
||||||
'graphql-relay'
|
'graphql-relay==0.1.2'
|
||||||
],
|
],
|
||||||
tests_require=['pytest>=2.7.2'],
|
tests_require=['pytest>=2.7.2'],
|
||||||
extras_require={
|
extras_require={
|
||||||
|
|
Loading…
Reference in New Issue
Block a user