Com-server

Latest version: v0.1.4

Safety actively analyzes 623075 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.1.4

0.1.3

0.1.2

0.1.1

0.1

Previous version: 0.0.*

IMPORTANT: BREAKING changes from previous version:

- Changed the way the `RestApiHandler.add_endpoint` decorator works:
- Instead of having the decorator above a function which returns a nested class, the decorator will instead go directly above the class that extends `ConnectionResource`. To use the connection, use `self.conn` in the methods.

Changes from previous version:

- Added the `SendQueue` and `ReceiveQueue` objects which allow the user to use the send queues and receive queues without accidentally breaking the program
- Added tests for these objects
- Added the ability for the user to define a custom IO thread with a connection object, the `ReceiveQueue`, and the `SendQueue`
- Added constants for the common baud rates:
- `NORMAL_BAUD_RATE`: 9600 bits/sec
- `FAST_BAUD_RATE`: 115200 bits/sec
- Added the ability to initialize with multiple ports, addressing [39](https://github.com/jonyboi396825/COM-Server/issues/39)
- Added the ability to add [cross origin resource sharing](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) to the Flask object in the `RestApiHandler`
- Added verbose mode where the program will print arguments received from request to `stdout`
- Formatted code using [black](https://black.readthedocs.io/en/stable/index.html)
- Added more tests that actually test that the data is being sent and received correctly, addressing [34](https://github.com/jonyboi396825/COM-Server/issues/34)
- Added a changelog to keep track of changes

0.1b1

Changes from previous version:

- Added some more examples in the examples directory, addressing [74](https://github.com/jonyboi396825/COM-Server/issues/74).
- Fixed [78](https://github.com/jonyboi396825/COM-Server/issues/78) by adding thread lock to binary search method for checking availability, and also a lock to the `Connection.get_all_rcv()` and `Connection.get_all_rcv_str()` methods to **deep copy** the receive queue instead of directly returning the receive queue.
- Added more verbose output to the disconnect handler, including that port that it reconnected to.

Page 1 of 2

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.