An open API service indexing awesome lists of open source software.

https://github.com/moralcode/pawprints-api

a python API Wrapper for the RIT PawPrints WebSocket API
https://github.com/moralcode/pawprints-api

rochester-institute-of-technology

Last synced: 4 months ago
JSON representation

a python API Wrapper for the RIT PawPrints WebSocket API

Awesome Lists containing this project

README

          

# PawPrints API

A python wrapper for the pawprints WebSockets API

## Usage

```python
from pawprints_api import PawPrints

pawprints = PawPrints()

# connect
await pawprints.connect()

try:
async for data in pawprints.listen():
# Handle the message as needed
print(data)
except Exception:
print('Stopping...')
await api.disconnect()

petition_id = 3456
petition_data = pawprints.get_petition(petition_id)

print(petition_data)

await api.disconnect()

```