Tcppinglib

Latest version: v2.0.4

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

Scan your dependencies

2.0.4

- `stddev_rtt` property is added to `TCPHost` which calculates the standard deviation similar to ICMP ping with 11 . Thanks to jursonovicst
- Basic CLI functionality is added with 20 . You can now refer to `tcpping --help` command output or [Command Line Interface (CLI)](https://github.com/EnginEken/tcppinglib?tab=readme-ov-file#command-line-interface-cli) section for more detail after upgrading to v2.0.4
- Previously, the code did not behave asynchronously when using ports that were not open, causing each request to hit the timeout sequentially. Updated to use proper asynchronous execution, allowing all timeouts to occur simultaneously with 16 . Thanks to harrandt
- `TCPHost` output now prints the output in `<fqdn>(<resolved_ip>)` format if the given destination is fqdn. 17
- `TCPHost` `packet_loss` property was returning wrong value. This is fixed along with `packets_sent` property which was always equal to `packet_received` with 14

2.0.3

- Examples edited with the latest features
- `TcpHost` model renamed to `TCPHost`
- Add stripping http and https prefix functionality to `tcpping` function
- Remove print output from `tcpping` function
- `AsyncSocket` class' `connect()` function changed to use created socket object's `connect()` function.

v.2.0.2

2.0

- More moduler socket structure
- `tcp_sockets.py` file added included with `TCPSocket`, `TCPv4Socket`, `TCPv6Socket` and `AsyncSocket` classes which are used for opening a socket and connect to remote end.
- Rewrite `tcpping`, `async_tcpping`, `multi_tcpping` and `async_multi_tcpping` functions
- socket connection removed from main tcpping and async_tcpping functions and implemented in socket classes.
- SSL and HTTP requests parts are removed for future generic implementation.
- `is_ipv6` parameter in functions are removed and implemented when creating sockets.
- Deault values for these functions also edited.
- Time performance calculation is moved from these functions to socket classes.
- Rewrite models
- Since ssl, dns and http requests are removed, rtt times for these are removed from `TcpHost` model. `min_rtt_all`, `avg_rtt_all` and `max_rtt_all` properties are renamed and `_all` suffix removed
- Implemented `TCPRequest` model for more structured tcpping
- Rewrite the documentation based on changes.
- Add the `is_hostname` function to check if a string is a hostname or an FQDN.
- Remove the `is_ipv4` function since it is default now.
- Add the `strip_http_https` function to remove these headers from the given hostname or FQDN
- Performance and compatibility improvement.
- Many other small changes and fixes.

- [ ] Adding SSL connection time performance calculation
- [ ] Adding DNS resolution time performance calculation

> Please read the documentation before changing your old code base since library had major change with this release

1.0.3

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.