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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rndc-python
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Python client for ISC BIND's RNDC
5
5
  Project-URL: Homepage, https://github.com/davidgroves/rndc-python
6
6
  Project-URL: Repository, https://github.com/davidgroves/rndc-python
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "rndc-python"
7
- version = "0.1.0"
7
+ version = "0.1.1"
8
8
  description = "Python client for ISC BIND's RNDC"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -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.0"
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
- ALGORITHM_CHOICES = [
21
- "md5",
22
- "sha1",
23
- "sha224",
24
- "sha256",
25
- "sha384",
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