monkeytoolbox 0.4.0__py3-none-any.whl → 1.0.1__py3-none-any.whl

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.
CHANGELOG.md CHANGED
@@ -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.4.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,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._common.sconn]:
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]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: monkeytoolbox
3
- Version: 0.4.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 (>=5.7.0)
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,17 +1,17 @@
1
- CHANGELOG.md,sha256=Tqt2Ef7bml5W7K8oJUMpX1IRmFUWVWEwpUNgzpjxsTk,775
1
+ CHANGELOG.md,sha256=2lfUIcCv3SuJBMRVUH7WPWDJ9x3KN6eTSdEi6eHRpz8,1004
2
2
  README.md,sha256=ZOercnjzgT1CcA3bR_6Pg-i-p-xCUYsj7ShRZi_pfg0,309
3
3
  monkeytoolbox/__init__.py,sha256=-m9QOksTBVV53-G7_E4Ykyw0QCVwntmKHV0m62P1JqE,873
4
4
  monkeytoolbox/code_utils.py,sha256=ckVLP3LlQKRfq1gvgQiZorcyAENg7_i6tv9eDfK-Au0,5282
5
5
  monkeytoolbox/decorators.py,sha256=SfdYY9FTDYEUsb4clOaWzIwetljnL-imRaGTgPLVHuY,2240
6
6
  monkeytoolbox/environment.py,sha256=PozYy9gpHKghQnSStWM0ryFtcsmf02WPXmooelYDHDQ,1550
7
7
  monkeytoolbox/file_utils.py,sha256=k1142R9FP94Hr193qYBlRZLzJXd_wEWSOR1uJXnDpOI,1895
8
- monkeytoolbox/network_utils.py,sha256=QtskItC0E-CmhCmFBDBSLsCLbXxaHP8UvczyLK2-rCY,1685
8
+ monkeytoolbox/network_utils.py,sha256=R7wn0O61ttk0BtDzJP_4T6E1URvr1Fx9wkI6rABIStk,1686
9
9
  monkeytoolbox/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  monkeytoolbox/secure_directory.py,sha256=_6CQyUrPXdftt8NY-XIoN7iIoCL4oLxK_6IOR6fqZek,3257
11
11
  monkeytoolbox/secure_file.py,sha256=u7g_MQbl9Et3ok-sfHxy07IZXMFfOPHZ7h_sBMIHEGk,3259
12
12
  monkeytoolbox/threading.py,sha256=M8gIFZQVdHhQBqzaTCWBdDLiyvXqtJ2LXpEzOYuwjiI,4740
13
13
  monkeytoolbox/windows_permissions.py,sha256=jym55x5-fvH2t6_BsixUIGAbkk6ovKkHsGkHkjsqWFM,1845
14
- monkeytoolbox-0.4.0.dist-info/LICENSE,sha256=8vSVUSGQNLw3jNk-6LogMp9dkBcAS103yGyzS78mIjs,35255
15
- monkeytoolbox-0.4.0.dist-info/METADATA,sha256=9ZOnsdywR8FFidVAc1kcsvceeuNZd6v_VrtPCyFCUK4,1129
16
- monkeytoolbox-0.4.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
17
- monkeytoolbox-0.4.0.dist-info/RECORD,,
14
+ monkeytoolbox-1.0.1.dist-info/LICENSE,sha256=8vSVUSGQNLw3jNk-6LogMp9dkBcAS103yGyzS78mIjs,35255
15
+ monkeytoolbox-1.0.1.dist-info/METADATA,sha256=ySskGcSnBAc7bhPm9iDMZwunqRdL1RVgrDBzaHPU8bA,1136
16
+ monkeytoolbox-1.0.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
17
+ monkeytoolbox-1.0.1.dist-info/RECORD,,