asnkit-gen-python 1.1.0__tar.gz → 1.2.0__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: asnkit-gen-python
3
- Version: 1.1.0
3
+ Version: 1.2.0
4
4
  Summary: asnkit plugin that makes Python code with data classes from ASN.1
5
5
  Author: xadaemon
6
6
  Author-email: xadaemon <mxavier@boxtheta.com>
@@ -10,7 +10,7 @@ Classifier: Development Status :: 5 - Production/Stable
10
10
  Classifier: Intended Audience :: Developers
11
11
  Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Topic :: Software Development :: Code Generators
13
- Requires-Dist: asnkitrt==1.1.0
13
+ Requires-Dist: asnkitrt==1.2.0
14
14
  Requires-Python: >=3.13
15
15
  Project-URL: source, https://github.com/boxtheta/asnkit
16
16
  Description-Content-Type: text/x-rst
@@ -1,10 +1,10 @@
1
1
  [project]
2
2
  name = "asnkit-gen-python"
3
- version = "1.1.0"
3
+ version = "1.2.0"
4
4
  description = "asnkit plugin that makes Python code with data classes from ASN.1"
5
5
  readme = "README.rst"
6
6
  requires-python = ">=3.13"
7
- dependencies = ["asnkitrt==1.1.0"]
7
+ dependencies = ["asnkitrt==1.2.0"]
8
8
  license = "Apache-2.0"
9
9
  license-files = ["LICENSE-COMPILER"]
10
10
  classifiers = [
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "asnkit-gen-python"
3
- version = "1.1.0"
3
+ version = "1.2.0"
4
4
  description = "asnkit plugin that makes Python code with data classes from ASN.1"
5
5
  readme = "README.rst"
6
6
  authors = [
@@ -8,7 +8,7 @@ authors = [
8
8
  ]
9
9
  requires-python = ">=3.13"
10
10
  dependencies = [
11
- "asnkitrt==1.1.0",
11
+ "asnkitrt==1.2.0",
12
12
  ]
13
13
  license = "Apache-2.0"
14
14
  license-files = ["LICENSE-COMPILER"]
@@ -18,6 +18,10 @@ from typing import Any
18
18
 
19
19
  from asnkitrt import syntax
20
20
 
21
+ # The resolved dictionaries are not part of the API of asnkitrt, which is
22
+ # released with this plugin.
23
+ from asnkitrt.syntax.convert import _compiled_to_dict
24
+
21
25
  DEFAULT_CODEC = "ber"
22
26
 
23
27
  # What asnkitrt encodes and decodes a type as, by the name of the type.
@@ -340,7 +344,7 @@ class Generator:
340
344
  self.sources = sources
341
345
  self.codec = codec
342
346
  self.embed = embed
343
- self.modules: dict[str, Any] = syntax.compiled_to_dict(compiled)
347
+ self.modules: dict[str, Any] = _compiled_to_dict(compiled)
344
348
  self.blocks: list[str] = []
345
349
  self.registrations: list[str] = []
346
350
  self.functions: list[str] = []
@@ -2,4 +2,4 @@
2
2
  #
3
3
  # SPDX-License-Identifier: Apache-2.0
4
4
 
5
- __version__ = "1.1.0"
5
+ __version__ = "1.2.0"