leonhard-s / auraxium

A high-level Python wrapper for the PlanetSide 2 API.
https://auraxium.readthedocs.io/
MIT License
28 stars 8 forks source link

Separate REST and Streaming API client definition #32

Closed leonhard-s closed 3 years ago

leonhard-s commented 3 years ago

Currently, all API interactions are handled by the same client instance. In the interest of simplicity, it is worth exploring whether their functionality could be split or at least moved to different definitions (this would also allow making the websocket endpoint an optional dependency).

In the latter case, the EventClient would subclass the regular Client class to extend it with websocket-specific functionality.

I cannot think of a plausible use-case in which the event stream would be required on its own, without any need for REST API access.