A Python library for making GraphQL requests easier!
Project description
gqlrequests - A Python library for making GraphQL requests easier!
Define GraphQL types in Python, then use them to build queries super easy:
class Episode(GraphQLType):
name = str
length = float
class Character(GraphQLType):
name = str
appearsIn = [Episode]
print(Character)
print(Character.query())
# {
# name
# appearsIn {
# name
# length
# }
# }
print(Character.query("name"))
# {
# name
# }
print(Character.query(indent=2)) # Default indent is 4
# {
# name
# appearsIn {
# name
# length
# }
# }
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gqlrequests-0.0.1.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for gqlrequests-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ddb02eb4d2e25279979b9b27b05c6cbb69a44a255ba34d137adb69e547f4ecd |
|
MD5 | 63c592812302470e0601d6bf0e30c909 |
|
BLAKE2b-256 | 670814a0eb88d8f35d0ce221d42a9f00635f502215ca9c0f11ce130874f06951 |