betterproto2-compiler 0.5.0__tar.gz → 0.5.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.
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/PKG-INFO +2 -2
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/pyproject.toml +2 -2
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/known_types/any.py +1 -1
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/plugin/main.py +1 -2
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/LICENSE.md +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/README.md +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/__init__.py +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/casing.py +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/compile/__init__.py +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/compile/importing.py +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/compile/naming.py +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/known_types/__init__.py +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/known_types/duration.py +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/known_types/google_values.py +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/known_types/timestamp.py +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/lib/__init__.py +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/lib/google/__init__.py +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/lib/google/protobuf/__init__.py +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/lib/google/protobuf/compiler/__init__.py +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/lib/message_pool.py +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/plugin/__init__.py +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/plugin/__main__.py +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/plugin/compiler.py +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/plugin/models.py +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/plugin/module_validation.py +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/plugin/parser.py +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/plugin/plugin.bat +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/py.typed +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/settings.py +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/templates/header.py.j2 +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/templates/service_stub.py.j2 +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/templates/service_stub_async.py.j2 +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/templates/service_stub_sync.py.j2 +0 -0
- {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/templates/template.py.j2 +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: betterproto2_compiler
|
3
|
-
Version: 0.5.
|
3
|
+
Version: 0.5.1
|
4
4
|
Summary: Compiler for betterproto2
|
5
5
|
License: MIT
|
6
6
|
Keywords: protobuf,gRPC,compiler
|
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.11
|
14
14
|
Classifier: Programming Language :: Python :: 3.12
|
15
15
|
Classifier: Programming Language :: Python :: 3.13
|
16
|
-
Requires-Dist: betterproto2[grpclib] (>=0.5.
|
16
|
+
Requires-Dist: betterproto2[grpclib] (>=0.5.1,<0.6.0)
|
17
17
|
Requires-Dist: jinja2 (>=3.0.3)
|
18
18
|
Requires-Dist: ruff (>=0.9.3,<0.10.0)
|
19
19
|
Requires-Dist: strenum (>=0.4.15,<0.5.0) ; python_version == "3.10"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "betterproto2_compiler"
|
3
|
-
version = "0.5.
|
3
|
+
version = "0.5.1"
|
4
4
|
description = "Compiler for betterproto2"
|
5
5
|
authors = [
|
6
6
|
{ name = "Adrien Vannson", email = "adrien.vannson@protonmail.com" },
|
@@ -26,7 +26,7 @@ packages = [
|
|
26
26
|
|
27
27
|
[tool.poetry.dependencies]
|
28
28
|
python = "^3.10"
|
29
|
-
betterproto2 = { version = "^0.5.
|
29
|
+
betterproto2 = { version = "^0.5.1", extras = ["grpclib"] }
|
30
30
|
# betterproto2 = { git="https://github.com/betterproto/python-betterproto2" }
|
31
31
|
# betterproto2 = { path = "../python-betterproto2", extras = ["grpclib"] }
|
32
32
|
# The Ruff version is pinned. To update it, also update it in .pre-commit-config.yaml
|
@@ -37,7 +37,7 @@ class Any(VanillaAny):
|
|
37
37
|
except KeyError:
|
38
38
|
raise TypeError(f"Can't unpack unregistered type: {self.type_url}")
|
39
39
|
|
40
|
-
return message_type
|
40
|
+
return message_type.parse(self.value)
|
41
41
|
|
42
42
|
def to_dict(self, **kwargs) -> dict[str, typing.Any]:
|
43
43
|
# TODO allow passing a message pool to `to_dict`
|
File without changes
|
File without changes
|
{betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/__init__.py
RENAMED
File without changes
|
{betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/casing.py
RENAMED
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
|
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
|
{betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/py.typed
RENAMED
File without changes
|
{betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/settings.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|