domolibrary
Advanced tools
| Metadata-Version: 2.2 | ||
| Name: domolibrary | ||
| Version: 4.5.23 | ||
| Version: 4.5.24 | ||
| Home-page: https://github.com/jaewilson07/domo_library | ||
@@ -5,0 +5,0 @@ Author: Jae Wilson |
@@ -1,1 +0,1 @@ | ||
| __version__ = "4.5.23" | ||
| __version__ = "4.5.24" |
| # AUTOGENERATED! DO NOT EDIT! File to edit: ../../nbs/classes/DomoInstanceConfig_Allowlist.ipynb. | ||
| # %% auto 0 | ||
| __all__ = ['DomoAllowlist'] | ||
| __all__ = ['validate_ip_or_cidr', 'DomoAllowlist'] | ||
@@ -17,2 +17,16 @@ # %% ../../nbs/classes/DomoInstanceConfig_Allowlist.ipynb 2 | ||
| # %% ../../nbs/classes/DomoInstanceConfig_Allowlist.ipynb 6 | ||
| def validate_ip_or_cidr(ip : str): | ||
| try: | ||
| # Try IPv4 address | ||
| ipaddress.IPv4Address(ip) | ||
| return True | ||
| except ValueError: | ||
| try: | ||
| # Try IPv4 network (CIDR) | ||
| ipaddress.IPv4Network(ip, strict=False) | ||
| except ValueError: | ||
| raise ValueError(f"Invalid IP/CIDR entry: {ip}") | ||
| # %% ../../nbs/classes/DomoInstanceConfig_Allowlist.ipynb 7 | ||
@@ -19,0 +33,0 @@ @dataclass |
+1
-1
| Metadata-Version: 2.2 | ||
| Name: domolibrary | ||
| Version: 4.5.23 | ||
| Version: 4.5.24 | ||
| Home-page: https://github.com/jaewilson07/domo_library | ||
@@ -5,0 +5,0 @@ Author: Jae Wilson |
+1
-1
@@ -8,3 +8,3 @@ [DEFAULT] | ||
| lib_name = domolibrary | ||
| version = 4.5.23 | ||
| version = 4.5.24 | ||
| min_python = 3.9 | ||
@@ -11,0 +11,0 @@ license = apache2 |
Sorry, the diff of this file is too big to display
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
1615320
0.05%31842
0.04%