moat-lib-codec 0.4.18__tar.gz → 0.4.19__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.
- {moat_lib_codec-0.4.18/src/moat_lib_codec.egg-info → moat_lib_codec-0.4.19}/PKG-INFO +1 -1
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/debian/changelog +12 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/pyproject.toml +1 -1
- moat_lib_codec-0.4.19/src/moat/lib/codec/null.py +32 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19/src/moat_lib_codec.egg-info}/PKG-INFO +1 -1
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat_lib_codec.egg-info/SOURCES.txt +1 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/LICENSE.txt +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/Makefile +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/README.md +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/debian/.gitignore +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/debian/control +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/debian/py3dist-overrides +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/debian/rules +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/setup.cfg +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat/lib/codec/__init__.py +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat/lib/codec/_base.py +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat/lib/codec/_cbor.py +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat/lib/codec/_moat_cbor.py +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat/lib/codec/_moat_msgpack.py +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat/lib/codec/binary.py +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat/lib/codec/bool.py +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat/lib/codec/cbor.py +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat/lib/codec/errors.py +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat/lib/codec/json.py +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat/lib/codec/jsonvalstr.py +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat/lib/codec/jsonvalue.py +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat/lib/codec/moat_cbor.py +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat/lib/codec/moat_kv.py +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat/lib/codec/moat_msgpack.py +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat/lib/codec/msgpack.py +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat/lib/codec/noop.py +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat/lib/codec/utf8.py +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat/lib/codec/yaml.py +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat_lib_codec.egg-info/dependency_links.txt +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat_lib_codec.egg-info/requires.txt +0 -0
- {moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat_lib_codec.egg-info/top_level.txt +0 -0
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
moat-lib-codec (0.4.19-1) unstable; urgency=medium
|
|
2
|
+
|
|
3
|
+
* New release for 26.1.18
|
|
4
|
+
|
|
5
|
+
-- Matthias Urlichs <matthias@urlichs.de> Wed, 03 Jun 2026 18:49:14 +0200
|
|
6
|
+
|
|
7
|
+
moat-lib-codec (0.4.18-2) unstable; urgency=medium
|
|
8
|
+
|
|
9
|
+
* New release for 26.1.12
|
|
10
|
+
|
|
11
|
+
-- Matthias Urlichs <matthias@urlichs.de> Fri, 24 Apr 2026 15:33:49 +0200
|
|
12
|
+
|
|
1
13
|
moat-lib-codec (0.4.18-1) unstable; urgency=medium
|
|
2
14
|
|
|
3
15
|
* New release for 26.1.10
|
|
@@ -25,7 +25,7 @@ maintainers = [{email = "matthias@urlichs.de",name = "Matthias Urlichs"}]
|
|
|
25
25
|
description='A simple command/stream multiplexer'
|
|
26
26
|
readme = "README.rst"
|
|
27
27
|
authors = [{email = "matthias@urlichs.de",name = "Matthias Urlichs"}]
|
|
28
|
-
version = "0.4.
|
|
28
|
+
version = "0.4.19"
|
|
29
29
|
|
|
30
30
|
[project.urls]
|
|
31
31
|
homepage = "https://m-o-a-t.org"
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"""Null codec — accepts only ``None``.
|
|
2
|
+
|
|
3
|
+
This codec exists as a placeholder, e.g. for use in conversion-vector
|
|
4
|
+
trees to mark paths whose payload should be silently dropped by gateways.
|
|
5
|
+
It encodes ``None`` to an empty byte string and refuses any other value.
|
|
6
|
+
Decoding ignores the input and returns ``None``.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
11
|
+
from ._base import Codec as _Codec
|
|
12
|
+
|
|
13
|
+
from typing import Any
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class Codec(_Codec):
|
|
17
|
+
"""Codec that only accepts :data:`None` as a value."""
|
|
18
|
+
|
|
19
|
+
def __init__(self, ext: Any | None = None) -> None:
|
|
20
|
+
if ext is not None:
|
|
21
|
+
raise ValueError("You can't extend the null codec")
|
|
22
|
+
super().__init__()
|
|
23
|
+
|
|
24
|
+
def encode(self, obj: Any) -> bytes:
|
|
25
|
+
"""Encode :data:`None` to empty bytes; raise otherwise."""
|
|
26
|
+
if obj is None:
|
|
27
|
+
return b""
|
|
28
|
+
raise ValueError(f"The null codec only accepts None, not {obj!r}")
|
|
29
|
+
|
|
30
|
+
def decode(self, data: bytes | bytearray | memoryview) -> None: # noqa: ARG002
|
|
31
|
+
"""Discard ``data`` and return :data:`None`."""
|
|
32
|
+
return None
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moat_lib_codec-0.4.18 → moat_lib_codec-0.4.19}/src/moat_lib_codec.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|