{"repo":"valiot/pygqlc","free":true,"listed":false,"github":"https://github.com/valiot/pygqlc","clone":"git clone https://github.com/valiot/pygqlc.git","description":"Python GraphQL Client - PyGQLC","language":"Python","stars":12,"topics":["python","graphql-client","queries","mutations","subscriptions","graphql-apis","python-client"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"pygqlc Python client for graphql APIs Scope This is an open source project, please feel free to fork it and PR to contribute with the community! Repo for the project: https://github.com/valiot/pygqlc Features - Fast and efficient GraphQL client - Support for queries, mutations, and subscriptions - Async capabilities for modern Python applications - Connection pooling for better performance - IPv4/IPv6 network flexibility - Intelligent error handling and reporting - Easy-to-use API with minimal boilerplate - Optional structured logging with valiotlogging Installation Requirements: - Python 3.9+ - Pipenv Install directly from pypi: If you get \"pygqlc\" printed in the python repl, the installation succeded! Optional: Enhanced Logging with valiotlogging If you're using this library in a Valiot project, you can install it with the valiotlogging dependency for enhanced structured logging: Or in your pyproject.toml: The library will automatically use valiotlogging if available, and will fall back to standard logging if not. Usage From now on, you can access to the main API: gql.query, gql.mutate, gql.subscribe For queries: For mutations: For subscriptions: Exception Handling You can directly import the GQLResponseException for better error handling: The subscribe method, returns an unsubscribe function, this allows to stop subscriptions whenever needed. After finishing all subscriptions, the method GraphQLClient.close() should be called to close correctly the open GQL/websocket conne","default_branch":null,"files":null,"tree":[],"storefront":"/r/valiot","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/valiot/pygqlc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}