Windham-High-School / CubeServer-api-python

The Python/Circuitpython version of the data API wrapper for a high-school STEM competition
MIT License
1 stars 0 forks source link

New Improvements #36

Open snorklerjoe opened 2 months ago

snorklerjoe commented 2 months ago

The API provided by this library should be revisited for consistency and ease of use.

In particular, the Connection object should be easy to create and destroy, so that opening and closing the connection is seamless and easy.
This should use the context manager pattern as possible.

Additionally, a more seamless integration of the CPython support would be nice for testing without a microcontroller. This should be re-structured from its current state to re-use more code between the two. Only i/o operations should be implemented separately if possible.