monkeytoolbox 0.4.0__tar.gz → 1.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {monkeytoolbox-0.4.0 → monkeytoolbox-1.0.1}/CHANGELOG.md +9 -1
- {monkeytoolbox-0.4.0 → monkeytoolbox-1.0.1}/PKG-INFO +2 -2
- {monkeytoolbox-0.4.0 → monkeytoolbox-1.0.1}/monkeytoolbox/network_utils.py +2 -2
- {monkeytoolbox-0.4.0 → monkeytoolbox-1.0.1}/pyproject.toml +2 -2
- {monkeytoolbox-0.4.0 → monkeytoolbox-1.0.1}/LICENSE +0 -0
- {monkeytoolbox-0.4.0 → monkeytoolbox-1.0.1}/README.md +0 -0
- {monkeytoolbox-0.4.0 → monkeytoolbox-1.0.1}/monkeytoolbox/__init__.py +0 -0
- {monkeytoolbox-0.4.0 → monkeytoolbox-1.0.1}/monkeytoolbox/code_utils.py +0 -0
- {monkeytoolbox-0.4.0 → monkeytoolbox-1.0.1}/monkeytoolbox/decorators.py +0 -0
- {monkeytoolbox-0.4.0 → monkeytoolbox-1.0.1}/monkeytoolbox/environment.py +0 -0
- {monkeytoolbox-0.4.0 → monkeytoolbox-1.0.1}/monkeytoolbox/file_utils.py +0 -0
- {monkeytoolbox-0.4.0 → monkeytoolbox-1.0.1}/monkeytoolbox/py.typed +0 -0
- {monkeytoolbox-0.4.0 → monkeytoolbox-1.0.1}/monkeytoolbox/secure_directory.py +0 -0
- {monkeytoolbox-0.4.0 → monkeytoolbox-1.0.1}/monkeytoolbox/secure_file.py +0 -0
- {monkeytoolbox-0.4.0 → monkeytoolbox-1.0.1}/monkeytoolbox/threading.py +0 -0
- {monkeytoolbox-0.4.0 → monkeytoolbox-1.0.1}/monkeytoolbox/windows_permissions.py +0 -0
|
@@ -7,7 +7,15 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
|
|
|
7
7
|
the [PEP 440 version scheme](https://peps.python.org/pep-0440/#version-scheme).
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
## [0.
|
|
10
|
+
## [1.0.1] - 2026-02-03
|
|
11
|
+
### Fixed
|
|
12
|
+
- A loose dependency specifier for the psutils dependency, which could render
|
|
13
|
+
monkeytoolbox uninstallable or broken. #7
|
|
14
|
+
|
|
15
|
+
## [1.0.0] - 2024-07-09
|
|
16
|
+
This release is identical to 0.4.0.
|
|
17
|
+
|
|
18
|
+
## [0.4.0] - 2024-06-25
|
|
11
19
|
### Fixed
|
|
12
20
|
- Error that prevents monkeytoolbox from being imported on Darwin. #6
|
|
13
21
|
- Import error in `open_new_securely_permissioned_file()` on Windows. #6
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: monkeytoolbox
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.1
|
|
4
4
|
Summary: Miscellaneous convenience utilities for Python programs
|
|
5
5
|
Home-page: https://github.com/guardicode/monkeytoolbox
|
|
6
6
|
License: GPLv3
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
15
15
|
Requires-Dist: egg-timer
|
|
16
16
|
Requires-Dist: ifaddr
|
|
17
17
|
Requires-Dist: monkey-types
|
|
18
|
-
Requires-Dist: psutil (>=
|
|
18
|
+
Requires-Dist: psutil (>=7.2.2,<8.0.0)
|
|
19
19
|
Requires-Dist: pywin32 ; sys_platform == "win32"
|
|
20
20
|
Project-URL: Repository, https://github.com/guardicode/monkeytoolbox
|
|
21
21
|
Description-Content-Type: text/markdown
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ipaddress
|
|
2
|
+
from collections.abc import Iterable, Sequence
|
|
2
3
|
from ipaddress import IPv4Address, IPv4Interface
|
|
3
4
|
from typing import Optional
|
|
4
|
-
from collections.abc import Iterable, Sequence
|
|
5
5
|
|
|
6
6
|
import ifaddr
|
|
7
7
|
import psutil
|
|
@@ -42,7 +42,7 @@ def port_is_used(
|
|
|
42
42
|
def get_connections(
|
|
43
43
|
ports: Optional[Sequence[int]] = None,
|
|
44
44
|
ip_addresses: Optional[Sequence[IPv4Address]] = None,
|
|
45
|
-
) -> list[psutil.
|
|
45
|
+
) -> list[psutil._ntuples.sconn]:
|
|
46
46
|
connections = psutil.net_connections()
|
|
47
47
|
if ports:
|
|
48
48
|
connections = [connection for connection in connections if connection.laddr.port in ports]
|
|
@@ -43,7 +43,7 @@ paths = ["monkeytoolbox", "vulture_allowlist.py"]
|
|
|
43
43
|
|
|
44
44
|
[tool.poetry]
|
|
45
45
|
name = "monkeytoolbox"
|
|
46
|
-
version = "
|
|
46
|
+
version = "v1.0.1"
|
|
47
47
|
description = "Miscellaneous convenience utilities for Python programs"
|
|
48
48
|
authors = [
|
|
49
49
|
"Ilija Lazoroski <ilija.la@live.com>",
|
|
@@ -64,7 +64,7 @@ include = ["CHANGELOG.md", "README.md"]
|
|
|
64
64
|
python = "^3.11"
|
|
65
65
|
monkey-types = "*"
|
|
66
66
|
egg-timer = "*"
|
|
67
|
-
psutil = "
|
|
67
|
+
psutil = "^7.2.2"
|
|
68
68
|
ifaddr = "*"
|
|
69
69
|
pywin32 = {version = "*", markers = "sys_platform == 'win32'"}
|
|
70
70
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|