ormsgpack 1.9.1__tar.gz → 1.11.0__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.

Potentially problematic release.


This version of ormsgpack might be problematic. Click here for more details.

Files changed (70) hide show
  1. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/CHANGELOG.md +19 -0
  2. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/Cargo.lock +40 -33
  3. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/Cargo.toml +17 -22
  4. ormsgpack-1.11.0/PKG-INFO +27 -0
  5. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/README.md +250 -209
  6. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/pyproject.toml +16 -4
  7. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/python/ormsgpack/__init__.py +2 -0
  8. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/python/ormsgpack/__init__.pyi +4 -0
  9. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/deserialize/cache.rs +26 -13
  10. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/deserialize/deserializer.rs +158 -79
  11. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/deserialize/mod.rs +0 -1
  12. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/ext.rs +10 -9
  13. ormsgpack-1.11.0/src/ffi/base/int.rs +16 -0
  14. ormsgpack-1.11.0/src/ffi/base/mod.rs +63 -0
  15. ormsgpack-1.11.0/src/ffi/base/unicode.rs +19 -0
  16. ormsgpack-1.11.0/src/ffi/cpython/int.rs +46 -0
  17. ormsgpack-1.11.0/src/ffi/cpython/mod.rs +64 -0
  18. {ormsgpack-1.9.1/src → ormsgpack-1.11.0/src/ffi/cpython}/unicode.rs +68 -36
  19. ormsgpack-1.11.0/src/ffi/int.rs +63 -0
  20. ormsgpack-1.11.0/src/ffi/mod.rs +104 -0
  21. ormsgpack-1.11.0/src/ffi/unicode.rs +17 -0
  22. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/lib.rs +73 -43
  23. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/opt.rs +4 -2
  24. ormsgpack-1.11.0/src/serialize/bytearray.rs +25 -0
  25. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/serialize/bytes.rs +2 -5
  26. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/serialize/dataclass.rs +28 -21
  27. ormsgpack-1.11.0/src/serialize/datetime.rs +255 -0
  28. ormsgpack-1.11.0/src/serialize/datetimelike.rs +196 -0
  29. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/serialize/default.rs +18 -10
  30. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/serialize/dict.rs +38 -127
  31. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/serialize/ext.rs +7 -10
  32. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/serialize/list.rs +7 -2
  33. ormsgpack-1.11.0/src/serialize/memoryview.rs +30 -0
  34. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/serialize/mod.rs +2 -1
  35. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/serialize/numpy.rs +88 -65
  36. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/serialize/pydantic.rs +16 -10
  37. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/serialize/serializer.rs +169 -104
  38. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/serialize/str.rs +3 -3
  39. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/serialize/tuple.rs +8 -2
  40. ormsgpack-1.11.0/src/serialize/uuid.rs +77 -0
  41. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/serialize/writer.rs +5 -15
  42. ormsgpack-1.11.0/src/state.rs +141 -0
  43. ormsgpack-1.11.0/src/util.rs +41 -0
  44. ormsgpack-1.9.1/PKG-INFO +0 -922
  45. ormsgpack-1.9.1/src/ffi.rs +0 -101
  46. ormsgpack-1.9.1/src/serialize/datetime.rs +0 -214
  47. ormsgpack-1.9.1/src/serialize/datetimelike.rs +0 -162
  48. ormsgpack-1.9.1/src/serialize/int.rs +0 -40
  49. ormsgpack-1.9.1/src/serialize/uuid.rs +0 -63
  50. ormsgpack-1.9.1/src/typeref.rs +0 -202
  51. ormsgpack-1.9.1/src/util.rs +0 -81
  52. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/LICENSE-APACHE +0 -0
  53. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/LICENSE-MIT +0 -0
  54. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/build.rs +0 -0
  55. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/python/ormsgpack/_pyinstaller/__init__.py +0 -0
  56. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/python/ormsgpack/_pyinstaller/hook-ormsgpack.py +0 -0
  57. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/python/ormsgpack/py.typed +0 -0
  58. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/deserialize/error.rs +0 -0
  59. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/exc.rs +0 -0
  60. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/msgpack/array.rs +0 -0
  61. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/msgpack/bin.rs +0 -0
  62. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/msgpack/bool.rs +0 -0
  63. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/msgpack/ext.rs +0 -0
  64. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/msgpack/float.rs +0 -0
  65. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/msgpack/int.rs +0 -0
  66. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/msgpack/map.rs +0 -0
  67. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/msgpack/marker.rs +0 -0
  68. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/msgpack/mod.rs +0 -0
  69. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/msgpack/nil.rs +0 -0
  70. {ormsgpack-1.9.1 → ormsgpack-1.11.0}/src/msgpack/str.rs +0 -0
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.11.0 08/10/2025
4
+
5
+ ### Changed
6
+
7
+ - Add support for Python 3.14
8
+ - Add support for free-threading and subinterpreters
9
+ - Add Windows arm64 wheels by [JexinSam](https://github.com/JexinSam) in [#412](/../../pull/412)
10
+
11
+ ## 1.10.0 24/05/2025
12
+
13
+ ### Changed
14
+
15
+ - Port to PyPy 3.11 and GraalPy 3.11
16
+ - Add support for `bytearray` and `memoryview` types by [littledivy](https://github.com/littledivy) in [#374](/../../pull/374)
17
+ - Add `packb` and `unpackb` option `OPT_DATETIME_AS_TIMESTAMP_EXT` to serialize
18
+ aware datetime objects to timestamp extension objects and deserialize
19
+ timestamp extension objects to UTC datetime objects, respectively
20
+ [#378](/../../issues/378)
21
+
3
22
  ## 1.9.1 28/03/2025
4
23
 
5
24
  ### Changed
@@ -4,9 +4,9 @@ version = 3
4
4
 
5
5
  [[package]]
6
6
  name = "ahash"
7
- version = "0.8.11"
7
+ version = "0.8.12"
8
8
  source = "registry+https://github.com/rust-lang/crates.io-index"
9
- checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011"
9
+ checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"
10
10
  dependencies = [
11
11
  "cfg-if",
12
12
  "once_cell",
@@ -22,9 +22,9 @@ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
22
22
 
23
23
  [[package]]
24
24
  name = "bytecount"
25
- version = "0.6.8"
25
+ version = "0.6.9"
26
26
  source = "registry+https://github.com/rust-lang/crates.io-index"
27
- checksum = "5ce89b21cab1437276d2650d57e971f9d548a2d9037cc231abdc0562b97498ce"
27
+ checksum = "175812e0be2bccb6abe50bb8d566126198344f707e304f45c648fd8f2cc0365e"
28
28
 
29
29
  [[package]]
30
30
  name = "byteorder"
@@ -40,9 +40,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
40
40
 
41
41
  [[package]]
42
42
  name = "chrono"
43
- version = "0.4.40"
43
+ version = "0.4.42"
44
44
  source = "registry+https://github.com/rust-lang/crates.io-index"
45
- checksum = "1a7964611d71df112cb1730f2ee67324fcf4d0fc6606acbbe9bfe06df124637c"
45
+ checksum = "145052bdd345b87320e369255277e3fb5152762ad123a901ef5c262dd38fe8d2"
46
46
  dependencies = [
47
47
  "num-traits",
48
48
  ]
@@ -55,9 +55,9 @@ checksum = "43da5946c66ffcc7745f48db692ffbb10a83bfe0afd96235c5c2a4fb23994929"
55
55
 
56
56
  [[package]]
57
57
  name = "half"
58
- version = "2.5.0"
58
+ version = "2.6.0"
59
59
  source = "registry+https://github.com/rust-lang/crates.io-index"
60
- checksum = "7db2ff139bba50379da6aa0766b52fdcb62cb5b263009b09ed58ba604e14bbd1"
60
+ checksum = "459196ed295495a68f7d7fe1d84f6c4b7ff0e21fe3017b2f283c6fac3ad803c9"
61
61
  dependencies = [
62
62
  "cfg-if",
63
63
  "crunchy",
@@ -95,13 +95,13 @@ dependencies = [
95
95
 
96
96
  [[package]]
97
97
  name = "once_cell"
98
- version = "1.21.1"
98
+ version = "1.21.3"
99
99
  source = "registry+https://github.com/rust-lang/crates.io-index"
100
- checksum = "d75b0bedcc4fe52caa0e03d9f1151a323e4aa5e2d78ba3580400cd3c9e2bc4bc"
100
+ checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
101
101
 
102
102
  [[package]]
103
103
  name = "ormsgpack"
104
- version = "1.9.1"
104
+ version = "1.11.0"
105
105
  dependencies = [
106
106
  "ahash",
107
107
  "bytecount",
@@ -109,7 +109,6 @@ dependencies = [
109
109
  "chrono",
110
110
  "half",
111
111
  "itoa",
112
- "once_cell",
113
112
  "pyo3",
114
113
  "pyo3-build-config",
115
114
  "serde",
@@ -135,11 +134,10 @@ dependencies = [
135
134
 
136
135
  [[package]]
137
136
  name = "pyo3"
138
- version = "0.24.0"
137
+ version = "0.26.0"
139
138
  source = "registry+https://github.com/rust-lang/crates.io-index"
140
- checksum = "7f1c6c3591120564d64db2261bec5f910ae454f01def849b9c22835a84695e86"
139
+ checksum = "7ba0117f4212101ee6544044dae45abe1083d30ce7b29c4b5cbdfa2354e07383"
141
140
  dependencies = [
142
- "cfg-if",
143
141
  "libc",
144
142
  "memoffset",
145
143
  "once_cell",
@@ -150,19 +148,18 @@ dependencies = [
150
148
 
151
149
  [[package]]
152
150
  name = "pyo3-build-config"
153
- version = "0.24.0"
151
+ version = "0.26.0"
154
152
  source = "registry+https://github.com/rust-lang/crates.io-index"
155
- checksum = "e9b6c2b34cf71427ea37c7001aefbaeb85886a074795e35f161f5aecc7620a7a"
153
+ checksum = "4fc6ddaf24947d12a9aa31ac65431fb1b851b8f4365426e182901eabfb87df5f"
156
154
  dependencies = [
157
- "once_cell",
158
155
  "target-lexicon",
159
156
  ]
160
157
 
161
158
  [[package]]
162
159
  name = "pyo3-ffi"
163
- version = "0.24.0"
160
+ version = "0.26.0"
164
161
  source = "registry+https://github.com/rust-lang/crates.io-index"
165
- checksum = "5507651906a46432cdda02cd02dd0319f6064f1374c9147c45b978621d2c3a9c"
162
+ checksum = "025474d3928738efb38ac36d4744a74a400c901c7596199e20e45d98eb194105"
166
163
  dependencies = [
167
164
  "libc",
168
165
  "pyo3-build-config",
@@ -179,27 +176,37 @@ dependencies = [
179
176
 
180
177
  [[package]]
181
178
  name = "serde"
182
- version = "1.0.219"
179
+ version = "1.0.228"
183
180
  source = "registry+https://github.com/rust-lang/crates.io-index"
184
- checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6"
181
+ checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
185
182
  dependencies = [
186
- "serde_derive",
183
+ "serde_core",
187
184
  ]
188
185
 
189
186
  [[package]]
190
187
  name = "serde_bytes"
191
- version = "0.11.17"
188
+ version = "0.11.19"
192
189
  source = "registry+https://github.com/rust-lang/crates.io-index"
193
- checksum = "8437fd221bde2d4ca316d61b90e337e9e702b3820b87d63caa9ba6c02bd06d96"
190
+ checksum = "a5d440709e79d88e51ac01c4b72fc6cb7314017bb7da9eeff678aa94c10e3ea8"
194
191
  dependencies = [
195
192
  "serde",
193
+ "serde_core",
194
+ ]
195
+
196
+ [[package]]
197
+ name = "serde_core"
198
+ version = "1.0.228"
199
+ source = "registry+https://github.com/rust-lang/crates.io-index"
200
+ checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
201
+ dependencies = [
202
+ "serde_derive",
196
203
  ]
197
204
 
198
205
  [[package]]
199
206
  name = "serde_derive"
200
- version = "1.0.219"
207
+ version = "1.0.228"
201
208
  source = "registry+https://github.com/rust-lang/crates.io-index"
202
- checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00"
209
+ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
203
210
  dependencies = [
204
211
  "proc-macro2",
205
212
  "quote",
@@ -214,9 +221,9 @@ checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e"
214
221
 
215
222
  [[package]]
216
223
  name = "smallvec"
217
- version = "1.14.0"
224
+ version = "1.15.1"
218
225
  source = "registry+https://github.com/rust-lang/crates.io-index"
219
- checksum = "7fcf8323ef1faaee30a44a340193b1ac6814fd9b7b4e88e9d4519a3e4abe1cfd"
226
+ checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
220
227
 
221
228
  [[package]]
222
229
  name = "syn"
@@ -249,18 +256,18 @@ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
249
256
 
250
257
  [[package]]
251
258
  name = "zerocopy"
252
- version = "0.7.35"
259
+ version = "0.8.25"
253
260
  source = "registry+https://github.com/rust-lang/crates.io-index"
254
- checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0"
261
+ checksum = "a1702d9583232ddb9174e01bb7c15a2ab8fb1bc6f227aa1233858c351a3ba0cb"
255
262
  dependencies = [
256
263
  "zerocopy-derive",
257
264
  ]
258
265
 
259
266
  [[package]]
260
267
  name = "zerocopy-derive"
261
- version = "0.7.35"
268
+ version = "0.8.25"
262
269
  source = "registry+https://github.com/rust-lang/crates.io-index"
263
- checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
270
+ checksum = "28a6e20d751156648aa063f3800b706ee209a32c0b4d9f24be3d980b01be55ef"
264
271
  dependencies = [
265
272
  "proc-macro2",
266
273
  "quote",
@@ -1,10 +1,6 @@
1
1
  [package]
2
2
  name = "ormsgpack"
3
- version = "1.9.1"
4
- authors = [
5
- "Aviram Hassan <aviramyhassan@gmail.com>",
6
- "Emanuele Giaquinta <emanuele.giaquinta@gmail.com>",
7
- ]
3
+ version = "1.11.0"
8
4
  description = "Fast, correct Python msgpack library supporting dataclasses, datetimes, and numpy"
9
5
  edition = "2021"
10
6
  rust-version = "1.81"
@@ -14,14 +10,14 @@ homepage = "https://github.com/aviramha/ormsgpack"
14
10
  readme = "README.md"
15
11
  keywords = ["fast", "msgpack", "dataclass", "dataclasses", "datetime"]
16
12
  include = [
17
- "build.rs",
18
- "Cargo.toml",
19
- "CHANGELOG.md",
20
- "LICENSE-APACHE",
21
- "LICENSE-MIT",
22
- "pyproject.toml",
23
- "README.md",
24
- "src/*",
13
+ "/build.rs",
14
+ "/CHANGELOG.md",
15
+ "/LICENSE-APACHE",
16
+ "/LICENSE-MIT",
17
+ "/pyproject.toml",
18
+ "/python",
19
+ "/README.md",
20
+ "/src",
25
21
  ]
26
22
 
27
23
  [lib]
@@ -29,7 +25,7 @@ name = "ormsgpack"
29
25
  crate-type = ["cdylib"]
30
26
 
31
27
  [features]
32
- default = ["unstable-simd"]
28
+ default = []
33
29
 
34
30
  # Use SIMD intrinsics. This requires Rust on the nightly channel.
35
31
  unstable-simd = [
@@ -38,20 +34,19 @@ unstable-simd = [
38
34
 
39
35
  [dependencies]
40
36
  ahash = { version = "0.8", default-features = false }
41
- bytecount = { version = "^0.6.7", default-features = false, features = ["runtime-dispatch-simd"] }
37
+ bytecount = { version = "^0.6.9", default-features = false, features = ["runtime-dispatch-simd"] }
42
38
  byteorder = { version = "1.5.0", default-features = false, features = ["std"] }
43
- chrono = { version = "0.4.40", default-features = false }
44
- half = { version = "2.4.1", default-features = false }
39
+ chrono = { version = "0.4.42", default-features = false }
40
+ half = { version = "2.6.0", default-features = false }
45
41
  itoa = { version = "1", default-features = false }
46
- once_cell = { version = "1", default-features = false, features = ["race"] }
47
- pyo3 = { version = "^0.24.0", default-features = false, features = ["extension-module"] }
42
+ pyo3 = { version = "^0.26.0", default-features = false, features = ["extension-module"] }
48
43
  serde = { version = "1", default-features = false }
49
- serde_bytes = { version = "0.11.16", default-features = false, features = ["std"] }
44
+ serde_bytes = { version = "0.11.19", default-features = false, features = ["std"] }
50
45
  simdutf8 = { version = "0.1.5", default-features = false, features = ["std"] }
51
- smallvec = { version = "^1.13", default-features = false, features = ["union", "write"] }
46
+ smallvec = { version = "^1.15", default-features = false, features = ["union", "write"] }
52
47
 
53
48
  [build-dependencies]
54
- pyo3-build-config = { version = "^0.24.0" }
49
+ pyo3-build-config = { version = "^0.26.0" }
55
50
 
56
51
  [profile.release]
57
52
  codegen-units = 1
@@ -0,0 +1,27 @@
1
+ Metadata-Version: 2.4
2
+ Name: ormsgpack
3
+ Version: 1.11.0
4
+ Classifier: Development Status :: 5 - Production/Stable
5
+ Classifier: Intended Audience :: Developers
6
+ Classifier: License :: OSI Approved :: Apache Software License
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Classifier: Operating System :: MacOS
9
+ Classifier: Operating System :: Microsoft :: Windows
10
+ Classifier: Operating System :: POSIX :: Linux
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
18
+ Classifier: Programming Language :: Python :: Implementation :: CPython
19
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
20
+ Classifier: Programming Language :: Python
21
+ Classifier: Programming Language :: Rust
22
+ Classifier: Typing :: Typed
23
+ License-File: LICENSE-APACHE
24
+ License-File: LICENSE-MIT
25
+ Home-Page: https://github.com/aviramha/ormsgpack
26
+ Author-email: Aviram Hassan <aviramyhassan@gmail.com>, Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
27
+ Requires-Python: >=3.9