From 372bcc046301a01e25aa3e0e142ea3b6134c0073 Mon Sep 17 00:00:00 2001 From: Jakob Scheid Date: Thu, 2 Apr 2026 13:08:29 +0200 Subject: [PATCH] Bug fix: is_valid_host, is_valid_port and validate_address_port in jeb_utils.utils were not included in __all__ --- README.md | 3 +++ pyproject.toml | 2 +- src/jeb_utils/utils.py | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8744dfa..5c9b7a8 100644 --- a/README.md +++ b/README.md @@ -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. ## 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 - Bug fix: jeb_utils.utils.is_number could return `True` even if the base is `0` which is mathematically incorrect. diff --git a/pyproject.toml b/pyproject.toml index cb0be83..978ad25 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "jeb-utils" -version = "0.2.2" +version = "0.2.3" description = "Common utils for JEB client and server." dependencies = ["cryptography"] license = "Apache-2.0" \ No newline at end of file diff --git a/src/jeb_utils/utils.py b/src/jeb_utils/utils.py index 2a2cdd0..6903c1d 100644 --- a/src/jeb_utils/utils.py +++ b/src/jeb_utils/utils.py @@ -24,6 +24,9 @@ __all__ = [ 'get_next_lower_integer_multiple', 'find_nearest_lower_number', 'create_file_if_not_exists', + 'is_valid_host', + 'is_valid_port', + 'validate_address_port' ] def is_number(string: str, base: int = 10) -> bool: