File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313
1414:authors: Volodymyr Buell, Thomas Calmant
1515:license: Apache License 2.0
16- :version: 0.4.4
16+ :version: 0.5.0
1717:status: Alpha
1818
1919..
2020
21- Copyright 2024 Thomas Calmant
21+ Copyright 2026 Thomas Calmant
2222
2323 Licensed under the Apache License, Version 2.0 (the "License");
2424 you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 44
55:authors: Thomas Calmant
66:license: Apache License 2.0
7- :version: 0.4.4
7+ :version: 0.5.0
88:status: Alpha
99
1010..
1111
12- Copyright 2024 Thomas Calmant
12+ Copyright 2026 Thomas Calmant
1313
1414 Licensed under the Apache License, Version 2.0 (the "License");
1515 you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1111
1212:authors: Scott Stephens (@swstephe), @guywithface
1313:license: Apache License 2.0
14- :version: 0.4.4
14+ :version: 0.5.0
1515:status: Alpha
1616"""
1717
1818from __future__ import unicode_literals
1919
2020import sys
2121
22-
2322# Module version
2423__version_info__ = (0 , 4 , 4 )
2524__version__ = "." .join (str (x ) for x in __version_info__ )
Original file line number Diff line number Diff line change 77
88:authors: Thomas Calmant
99:license: Apache License 2.0
10- :version: 0.4.4
10+ :version: 0.5.0
1111:status: Alpha
1212
1313..
1414
15- Copyright 2024 Thomas Calmant
15+ Copyright 2026 Thomas Calmant
1616
1717 Licensed under the Apache License, Version 2.0 (the "License");
1818 you may not use this file except in compliance with the License.
3030from __future__ import absolute_import
3131
3232# Standard library
33- from typing import IO , Tuple # noqa: F401
3433import gzip
3534import logging
3635import os
3736import struct
3837import sys
38+ from typing import IO , Tuple # noqa: F401
3939
4040# Modified UTF-8 parser
4141from .modifiedutf8 import byte_to_int , decode_modified_utf8
Original file line number Diff line number Diff line change 44
55:authors: Thomas Calmant
66:license: Apache License 2.0
7- :version: 0.4.4
7+ :version: 0.5.0
88:status: Alpha
99
1010..
1111
12- Copyright 2024 Thomas Calmant
12+ Copyright 2026 Thomas Calmant
1313
1414 Licensed under the Apache License, Version 2.0 (the "License");
1515 you may not use this file except in compliance with the License.
2626
2727from . import beans , core , transformers # noqa: F401
2828from .core import ( # noqa: F401
29- load ,
30- loads ,
31- dumps ,
3229 JavaObjectMarshaller ,
3330 JavaObjectUnmarshaller ,
31+ dumps ,
32+ load ,
33+ loads ,
3434)
3535from .transformers import DefaultObjectTransformer # noqa: F401
3636
Original file line number Diff line number Diff line change 55
66:authors: Volodymyr Buell, Thomas Calmant
77:license: Apache License 2.0
8- :version: 0.4.4
8+ :version: 0.5.0
99:status: Alpha
1010
1111..
1212
13- Copyright 2024 Thomas Calmant
13+ Copyright 2026 Thomas Calmant
1414
1515 Licensed under the Apache License, Version 2.0 (the "License");
1616 you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1313
1414:authors: Volodymyr Buell, Thomas Calmant
1515:license: Apache License 2.0
16- :version: 0.4.4
16+ :version: 0.5.0
1717:status: Alpha
1818
1919..
2020
21- Copyright 2024 Thomas Calmant
21+ Copyright 2026 Thomas Calmant
2222
2323 Licensed under the Apache License, Version 2.0 (the "License");
2424 you may not use this file except in compliance with the License.
4444 from io import BytesIO
4545
4646# Javaobj modules
47+ from ..utils import java_data_fd
4748from .marshaller import JavaObjectMarshaller
48- from .unmarshaller import JavaObjectUnmarshaller
4949from .transformers import DefaultObjectTransformer
50- from .. utils import java_data_fd
50+ from .unmarshaller import JavaObjectUnmarshaller
5151
5252# ------------------------------------------------------------------------------
5353
Original file line number Diff line number Diff line change 1313
1414:authors: Volodymyr Buell, Thomas Calmant
1515:license: Apache License 2.0
16- :version: 0.4.4
16+ :version: 0.5.0
1717:status: Alpha
1818
1919..
2020
21- Copyright 2024 Thomas Calmant
21+ Copyright 2026 Thomas Calmant
2222
2323 Licensed under the Apache License, Version 2.0 (the "License");
2424 you may not use this file except in compliance with the License.
4848 from io import BytesIO
4949
5050# Javaobj modules
51- from .beans import (
52- JavaClass ,
53- JavaString ,
54- JavaObject ,
55- JavaByteArray ,
56- JavaEnum ,
57- JavaArray ,
58- )
5951from ..constants import (
60- StreamConstants ,
6152 ClassDescFlags ,
53+ StreamConstants ,
6254 TerminalCode ,
6355 TypeCode ,
6456)
6557from ..utils import (
58+ BYTES_TYPE ,
59+ UNICODE_TYPE ,
6660 log_debug ,
6761 log_error ,
6862 to_bytes ,
69- BYTES_TYPE ,
70- UNICODE_TYPE ,
63+ )
64+ from .beans import (
65+ JavaArray ,
66+ JavaByteArray ,
67+ JavaClass ,
68+ JavaEnum ,
69+ JavaObject ,
70+ JavaString ,
7171)
7272
7373# ------------------------------------------------------------------------------
Original file line number Diff line number Diff line change 55
66:authors: Volodymyr Buell, Thomas Calmant
77:license: Apache License 2.0
8- :version: 0.4.4
8+ :version: 0.5.0
99:status: Alpha
1010
1111..
1212
13- Copyright 2024 Thomas Calmant
13+ Copyright 2026 Thomas Calmant
1414
1515 Licensed under the Apache License, Version 2.0 (the "License");
1616 you may not use this file except in compliance with the License.
2727
2828from __future__ import absolute_import
2929
30- from typing import Callable , Dict
3130import functools
31+ from typing import Callable , Dict # noqa: F401
3232
33- from .beans import JavaClass , JavaObject
34- from .unmarshaller import JavaObjectUnmarshaller
3533from ..constants import ClassDescFlags , TerminalCode , TypeCode
3634from ..utils import (
3735 log_debug ,
3836 log_error ,
39- to_bytes ,
40- read_struct ,
4137 read_string ,
38+ read_struct ,
39+ to_bytes ,
4240)
43-
41+ from .beans import JavaClass , JavaObject
42+ from .unmarshaller import JavaObjectUnmarshaller
4443
4544__all__ = ("DefaultObjectTransformer" ,)
4645
Original file line number Diff line number Diff line change 1313
1414:authors: Volodymyr Buell, Thomas Calmant
1515:license: Apache License 2.0
16- :version: 0.4.4
16+ :version: 0.5.0
1717:status: Alpha
1818
1919..
2020
21- Copyright 2024 Thomas Calmant
21+ Copyright 2026 Thomas Calmant
2222
2323 Licensed under the Apache License, Version 2.0 (the "License");
2424 you may not use this file except in compliance with the License.
3535
3636from __future__ import absolute_import
3737
38- # Standard library
39- from typing import Any , Union
40- import os
4138import struct
4239
43- # Javaobj modules
44- from .beans import (
45- JavaClass ,
46- JavaString ,
47- JavaObject ,
48- JavaByteArray ,
49- JavaEnum ,
50- JavaArray ,
51- )
40+ # Standard library
41+ from typing import Any , Union # noqa: F401
42+
5243from ..constants import (
53- StreamConstants ,
5444 ClassDescFlags ,
45+ StreamCodeDebug ,
46+ StreamConstants ,
5547 TerminalCode ,
5648 TypeCode ,
57- StreamCodeDebug ,
5849)
5950from ..utils import (
51+ hexdump ,
6052 log_debug ,
6153 log_error ,
6254 read_to_str ,
6355 to_unicode ,
6456 unicode_char ,
65- hexdump ,
57+ )
58+
59+ # Javaobj modules
60+ from .beans import (
61+ JavaArray ,
62+ JavaByteArray ,
63+ JavaClass ,
64+ JavaEnum ,
65+ JavaObject ,
66+ JavaString ,
6667)
6768
6869numpy = None # Imported only when really used
You can’t perform that action at this time.
0 commit comments