Graphus is a dynamic GraphQL client that generates its API objects and methods dynamically by parsing GraphQL Schemas.
Project description
Graphus is a dynamic GraphQL schema parser and API generator for Python. With Graphus, you can adapt your client's API to any GraphQL server on-the-fly, ensuring real-time compatibility and flexibility.
Features
- 📜 Dynamic Schema Parsing: Parse any GraphQL schema and understand its structure.
- 🚀 Automatic API Generation: Create methods and objects that align with the parsed schema's parameters and arguments.
- 🎛 Adaptable Client: Seamlessly adapt your client to different GraphQL servers without manual modifications.
- 🔒 Type-Safe: Ensures that the generated methods and objects adhere to the schema's defined types.
Installation
pip install graphus
Quick Start
-
Initialize Graphus with a GraphQL endpoint:
from graphus import GraphusClient client = GraphusClient(endpoint='https://your-graphql-endpoint.com')
-
Use the generated API:
obj = client.query.field(arg1="Hello").attribute.execute() obj = client.mutation.method(param="Hello").execute()
Documentation
For detailed documentation, including advanced features and API references, please click here.
Contributing
We welcome contributions! Please see our CONTRIBUTING guide for more details.
📞 Contact
Queries? Suggestions? Drop me an email at ionesiojr@gmail.com.
License
Graphus is licensed under the Apache 2.0 License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file graphus-0.1.2.tar.gz.
File metadata
- Download URL: graphus-0.1.2.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.8 Linux/5.15.90.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bead40f105bd861a9fba929977913b822f6baa13470950bc1b52a70cdae36dc
|
|
| MD5 |
458f342be05c3e7decbb9a6f2a7f3204
|
|
| BLAKE2b-256 |
f2b8c98340e3c749d343c65002a38ec0db822c48df9fedfba8a8544d1b4aecd0
|
File details
Details for the file graphus-0.1.2-py3-none-any.whl.
File metadata
- Download URL: graphus-0.1.2-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.8 Linux/5.15.90.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ea5bd9961c3753a44195efdb31f43483e0243794c69e799e08c3aa3c6a1b6db
|
|
| MD5 |
1ae65b59fbc951577889ea153510ba88
|
|
| BLAKE2b-256 |
fc9083e09ce9399076bfe02b9561d5c7347e1f5034845c17858d05a480cb636d
|