{"repo":"centrifugal/pycent","free":true,"listed":false,"github":"https://github.com/centrifugal/pycent","clone":"git clone https://github.com/centrifugal/pycent.git","description":"Python library to communicate with Centrifugo HTTP API. Synchronous and asynchronous clients included","language":"Python","stars":86,"topics":["centrifugo","api-client","messaging","pubsub","asyncio","http"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Python SDK to communicate with Centrifugo HTTP API. Python = 3.9 supported. If you are looking for real-time WebSocket SDK – then you need centrifuge-python. To install run: Centrifugo compatibility Cent v5 and higher works with Centrifugo v6 and v5 . If you need to work with Centrifugo v3, v4 = use Cent v4 If you need to work with Centrifugo v2 = use Cent v3 Usage First of all, see the description of Centrifugo server API in the documentation. This library also supports API extensions provided by Centrifugo PRO. In general, refer to api.proto Protobuf schema file as a source of truth about all available Centrifugo server APIs. Don't forget that Centrifugo supports both HTTP and GRPC API – so you can switch to GRPC by using api.proto file to generate stubs for communication. This library contains Client and AsyncClient to work with Centrifugo HTTP server API. Both clients have the same methods to work with Centrifugo API and raise the same top-level exceptions. Sync HTTP client Required init arguments: api url ( str ) - Centrifugo HTTP API URL address, for example, http://localhost:8000/api api key ( str ) - Centrifugo HTTP API key for auth Optional arguments: timeout ( float ) - base timeout for all requests in seconds, default is 10 seconds. session ( requests.Session ) - custom requests session to use. Example: Async HTTP client Required init arguments: api url ( str ) - Centrifugo HTTP API URL address, for example, http://localhost:8000 api key ( str ) - Centrifugo HTTP A","default_branch":null,"files":null,"tree":[],"storefront":"/r/centrifugal","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/centrifugal/pycent/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."}