Bug fix: is_valid_host, is_valid_port and validate_address_port in jeb_utils.utils were not included in __all__

This commit is contained in:
2026-04-02 13:08:29 +02:00
parent 867e9a9c0c
commit 372bcc0463
3 changed files with 7 additions and 1 deletions
+3
View File
@@ -77,6 +77,9 @@ pip install jeb-utils --index-url https://repo.jcloud-services.ddns.net/simple/
- `create_file_if_not_exists`: Creates a file if it does not exist. - `create_file_if_not_exists`: Creates a file if it does not exist.
## Changelog ## Changelog
### Version 0.2.3
- Bug fix: `is_valid_host`, `is_valid_port` and `validate_address_port` in `jeb_utils.utils` were not included in `__all__`
### Version 0.2.2 ### Version 0.2.2
- Bug fix: jeb_utils.utils.is_number could return `True` even if the base is `0` which is mathematically incorrect. - Bug fix: jeb_utils.utils.is_number could return `True` even if the base is `0` which is mathematically incorrect.
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "jeb-utils" name = "jeb-utils"
version = "0.2.2" version = "0.2.3"
description = "Common utils for JEB client and server." description = "Common utils for JEB client and server."
dependencies = ["cryptography"] dependencies = ["cryptography"]
license = "Apache-2.0" license = "Apache-2.0"
+3
View File
@@ -24,6 +24,9 @@ __all__ = [
'get_next_lower_integer_multiple', 'get_next_lower_integer_multiple',
'find_nearest_lower_number', 'find_nearest_lower_number',
'create_file_if_not_exists', 'create_file_if_not_exists',
'is_valid_host',
'is_valid_port',
'validate_address_port'
] ]
def is_number(string: str, base: int = 10) -> bool: def is_number(string: str, base: int = 10) -> bool: