protobin 0.0.22__tar.gz → 0.0.23__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.
- {protobin-0.0.22 → protobin-0.0.23}/PKG-INFO +1 -1
- {protobin-0.0.22 → protobin-0.0.23}/protobin/protocol.py +1 -1
- {protobin-0.0.22 → protobin-0.0.23}/pyproject.toml +1 -1
- {protobin-0.0.22 → protobin-0.0.23}/tests/tests.py +8 -8
- {protobin-0.0.22 → protobin-0.0.23}/.gitignore +0 -0
- {protobin-0.0.22 → protobin-0.0.23}/LICENSE.txt +0 -0
- {protobin-0.0.22 → protobin-0.0.23}/README.md +0 -0
- {protobin-0.0.22 → protobin-0.0.23}/protobin/__init__.py +0 -0
- {protobin-0.0.22 → protobin-0.0.23}/protobin/errors.py +0 -0
- {protobin-0.0.22 → protobin-0.0.23}/protobin/fields.py +0 -0
- {protobin-0.0.22 → protobin-0.0.23}/protobin/interfaces.py +0 -0
- {protobin-0.0.22 → protobin-0.0.23}/tests/codec8.json +0 -0
- {protobin-0.0.22 → protobin-0.0.23}/tests/demo.json +0 -0
- {protobin-0.0.22 → protobin-0.0.23}/tests/demo.yaml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: protobin
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.23
|
|
4
4
|
Summary: Python library for encode and decode data in protobin format
|
|
5
5
|
Project-URL: Homepage, https://github.com/drmelectronic/protobin-python
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/drmelectronic/protobin-python/issues
|
|
@@ -88,7 +88,7 @@ class Protocol:
|
|
|
88
88
|
for name in formats.keys():
|
|
89
89
|
format = formats[name]
|
|
90
90
|
if format.get('header') in self.headers:
|
|
91
|
-
raise FormatError(f'The "{format[
|
|
91
|
+
raise FormatError(f'The \"{format["header"]}\" header is already in use at \"{self.headers[format["header"]]}\"')
|
|
92
92
|
self.formats[name] = Format(name=name, format=format, server=self.server)
|
|
93
93
|
if 'header' in format:
|
|
94
94
|
self.headers[format['header']] = name
|
|
@@ -530,14 +530,14 @@ report:
|
|
|
530
530
|
'test': {'bytes': 0, 'type': 'string'}
|
|
531
531
|
}}}
|
|
532
532
|
},
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
533
|
+
'bits': {
|
|
534
|
+
"header": "B",
|
|
535
|
+
"fields": {'test': {'type': 'bits'}}
|
|
536
|
+
},
|
|
537
|
+
'bits_fixed': {
|
|
538
|
+
"header": "B",
|
|
539
|
+
"fields": {'test': {'type': 'bits', 'length': 7}}
|
|
540
|
+
}}
|
|
541
541
|
})
|
|
542
542
|
|
|
543
543
|
def test_teltonika_login_hex(self):
|
|
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
|