Skip to content

Dependency on websockets #72

@Flix6x

Description

@Flix6x

#43 first introduced websockets as a dependency, but the message classes in the s2-python package should also be usable outside of a WebSocket implementation, right?

Might I suggest making it into an optional subpackage?1 So users could then choose between:2

pip install s2-python  # install S2 messages as Python classes
pip install s2-python[ws]  # include support for WebSockets

Notes:

Footnotes

  1. This concerns s2_connection.py and associated examples.

  2. I imagine future extensions like pip install s2-python[mqtt]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions