rndc-python 0.1.0__tar.gz → 0.1.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.
- {rndc_python-0.1.0 → rndc_python-0.1.1}/PKG-INFO +1 -1
- {rndc_python-0.1.0 → rndc_python-0.1.1}/pyproject.toml +1 -1
- {rndc_python-0.1.0 → rndc_python-0.1.1}/src/rndc_python/__init__.py +1 -1
- {rndc_python-0.1.0 → rndc_python-0.1.1}/src/rndc_python/cli.py +6 -14
- {rndc_python-0.1.0 → rndc_python-0.1.1}/.gitignore +0 -0
- {rndc_python-0.1.0 → rndc_python-0.1.1}/LICENSE +0 -0
- {rndc_python-0.1.0 → rndc_python-0.1.1}/README.md +0 -0
- {rndc_python-0.1.0 → rndc_python-0.1.1}/src/rndc_python/config.py +0 -0
- {rndc_python-0.1.0 → rndc_python-0.1.1}/src/rndc_python/enums.py +0 -0
- {rndc_python-0.1.0 → rndc_python-0.1.1}/src/rndc_python/exceptions.py +0 -0
- {rndc_python-0.1.0 → rndc_python-0.1.1}/src/rndc_python/py.typed +0 -0
- {rndc_python-0.1.0 → rndc_python-0.1.1}/src/rndc_python/rndc_client.py +0 -0
- {rndc_python-0.1.0 → rndc_python-0.1.1}/src/rndc_python/rndc_config.py +0 -0
- {rndc_python-0.1.0 → rndc_python-0.1.1}/src/rndc_python/rndc_protocol.py +0 -0
|
@@ -4,7 +4,7 @@ rndc-python - A Python client library for ISC BIND's RNDC
|
|
|
4
4
|
This library provides a Python interface to ISC BIND's Remote Name Daemon Control (RNDC).
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
-
__version__ = "0.1.
|
|
7
|
+
__version__ = "0.1.1"
|
|
8
8
|
__author__ = "David Groves"
|
|
9
9
|
__email__ = "dave@fibrecat.org"
|
|
10
10
|
|
|
@@ -17,20 +17,12 @@ import sys
|
|
|
17
17
|
|
|
18
18
|
import click
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"sha512",
|
|
27
|
-
"hmac-md5",
|
|
28
|
-
"hmac-sha1",
|
|
29
|
-
"hmac-sha224",
|
|
30
|
-
"hmac-sha256",
|
|
31
|
-
"hmac-sha384",
|
|
32
|
-
"hmac-sha512",
|
|
33
|
-
]
|
|
20
|
+
from .enums import TSIGAlgorithm
|
|
21
|
+
|
|
22
|
+
# Use lowercase enum names for CLI choices
|
|
23
|
+
ALGORITHM_CHOICES = [alg.name.lower() for alg in TSIGAlgorithm]
|
|
24
|
+
# Also accept hmac- prefixed versions for compatibility
|
|
25
|
+
ALGORITHM_CHOICES += [f"hmac-{alg.name.lower()}" for alg in TSIGAlgorithm]
|
|
34
26
|
|
|
35
27
|
|
|
36
28
|
@click.command()
|
|
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
|