Skip to content

Commit d11d343

Browse files
committed
First version of v3 writer
Signed-off-by: Thomas Calmant <thomas.calmant@gmail.com>
1 parent 6aacf72 commit d11d343

3 files changed

Lines changed: 720 additions & 4 deletions

File tree

javaobj/v3/__init__.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env python3
22
"""
3-
Rewritten version of the un-marshalling process of javaobj (v3)
3+
Rewritten version of the un-marshalling and marshalling process of javaobj (v3)
44
5-
This package targets Python 3.12+ and provides fully typed parsing of the
6-
Java Object Serialization stream format, in read-only mode.
5+
This package targets Python 3.12+ and provides fully typed parsing and
6+
serializing of the Java Object Serialization stream format.
77
88
:authors: Thomas Calmant
99
:license: Apache License 2.0
@@ -66,11 +66,16 @@
6666
NumpyArrayTransformer,
6767
ObjectTransformer,
6868
)
69+
from .writer import JavaStreamWriter, dump, dumps
6970

7071
__all__ = [
71-
# Entry points
72+
# Entry points (reading)
7273
"load",
7374
"loads",
75+
# Entry points (writing)
76+
"dump",
77+
"dumps",
78+
"JavaStreamWriter",
7479
# Transformer API
7580
"ObjectTransformer",
7681
"DefaultObjectTransformer",

0 commit comments

Comments
 (0)