Mctools

Latest version: v1.3.0

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

Scan your dependencies

Page 1 of 2

1.3.0

This release contains some minor redesigns and bugfixes.

Bug Fixes

- Removes an unnecessary ping operation when doing a ping request without asking for stats.
- Removed a lot of bug prone behavior from the decoders and clients

Added

- LOTS of typing additions! These are added using the python typing system, as well as via docstrings.
Most of these changes are applied to internal components, as the high-level
user facing methods were already mostly-typed.

- Added some unit tests for decoders, tests for other components will be added at a later date!

Changed

- PINGPackets, QUERYPackets, and some RCONPackets now determine state by using ints and globally defined values,
which should be slightly faster and should reduce the risk of bugs where packet
types differ across the codebase.

- Many changes to make the codebase more clear and less bug prone.

- Project now has a pyproject.toml file which is used for tool configuration and building.

- Moved changelog (this file!) from `README.md` to `CHANGELOG.md`

1.2.2

Removed some debugging print statements.

1.2.1

We now correctly disable length checking in RCONClient if specified by the user.

The 'set_timeout()' method in BaseProtocol will now work correctly even if the protocol object is not started.
This change applies to all clients, as they all use this method.

Added a 'DEFAULT_TIMEOUT' constant and moved some protocol attributes to BaseProtocol to prevent redundancy.
Protocol objects now init the parent BaseProtocol object.

Fixed some spelling errors, added more type hinting, made some more minor changes to the documentation.

1.2.0

Clients (of any type!) can now be started after being stopped,
so creating a new client after stopping it is no longer necessary.

The PINGClient will now auto stop itself after each operation.

Fixed a bug where the QUERYClient did not auto-start itself.

The documentation was updated to reflect these changes, and it now explains
stopping/starting clients a lot better.

1.1.2

Fixed an issue where RCON command size handling was broken.
Before, the remote server would kill the connection if a command is too large(Bigger than 1460 bytes).
We now raise a new exception, 'RCONLengthError' and refuse to send the packet if the command is too big,
thus keeping the connection alive. You can optionally disable this check, although this is not recommended.

The documentation has also been updated to make this limitation more clear,
as well as correcting some minor errors, mostly correcting examples in the formatting documentation.

We also added some type hinting, as some IDEs were complaining about type mismatches.

1.1.1

Fixed an issue where clients hang when the connection is closed by the remote host.

New features mentioned in the previous changelog are still coming, albeit slowly!

Page 1 of 2

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.