ormsgpack 1.4.0__cp38-none-win_amd64.whl → 1.4.1__cp38-none-win_amd64.whl

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.

Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ormsgpack
3
- Version: 1.4.0
3
+ Version: 1.4.1
4
4
  Classifier: Development Status :: 5 - Production/Stable
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: License :: OSI Approved :: Apache Software License
@@ -146,7 +146,7 @@ The global interpreter lock (GIL) is held for the duration of the call.
146
146
 
147
147
  It raises `MsgpackEncodeError` on an unsupported type. This exception message
148
148
  describes the invalid object with the error message
149
- `Type is not JSON serializable: ...`. To fix this, specify
149
+ `Type is not msgpack serializable: ...`. To fix this, specify
150
150
  [default](#default).
151
151
 
152
152
  It raises `MsgpackEncodeError` on a `str` that contains invalid UTF-8.
@@ -162,8 +162,7 @@ It raises `MsgpackEncodeError` on circular references.
162
162
  It raises `MsgpackEncodeError` if a `tzinfo` on a datetime object is
163
163
  unsupported.
164
164
 
165
- `MsgpackEncodeError` is a subclass of `TypeError`. This is for compatibility
166
- with the standard library.
165
+ `MsgpackEncodeError` is a subclass of `TypeError`.
167
166
 
168
167
  #### default
169
168
 
@@ -181,7 +180,7 @@ def default(obj):
181
180
  raise TypeError
182
181
 
183
182
  >>> ormsgpack.packb(decimal.Decimal("0.0842389659712649442845"))
184
- MsgpackEncodeError: Type is not JSON serializable: decimal.Decimal
183
+ MsgpackEncodeError: Type is not msgpack serializable: decimal.Decimal
185
184
  >>> ormsgpack.packb(decimal.Decimal("0.0842389659712649442845"), default=default)
186
185
  b'\xb80.0842389659712649442845'
187
186
  >>> ormsgpack.packb({1, 2}, default=default)
@@ -252,9 +251,7 @@ has no effect on `datetime.datetime` objects that have `tzinfo` set.
252
251
 
253
252
  Serialize `dict` keys of type other than `str`. This allows `dict` keys
254
253
  to be one of `str`, `int`, `float`, `bool`, `None`, `datetime.datetime`,
255
- `datetime.date`, `datetime.time`, `enum.Enum`, and `uuid.UUID`. For comparison,
256
- the standard library serializes `str`, `int`, `float`, `bool` or `None` by
257
- default.
254
+ `datetime.date`, `datetime.time`, `enum.Enum`, and `uuid.UUID`.
258
255
 
259
256
  ```python
260
257
  >>> import ormsgpack, datetime, uuid
@@ -435,8 +432,7 @@ Serialize `pydantic.BaseModel` instances.
435
432
  ##### OPT_SORT_KEYS
436
433
 
437
434
  Serialize `dict` keys in sorted order. The default is to serialize in an
438
- unspecified order. This is equivalent to `sort_keys=True` in the standard
439
- library.
435
+ unspecified order.
440
436
 
441
437
  This can be used to ensure the order is deterministic for hashing or tests.
442
438
  It has a substantial performance penalty and is not recommended in general.
@@ -457,8 +453,6 @@ The sorting is not collation/locale-aware:
457
453
  b'\x83\xa1A\x03\xa1a\x01\xa2\xc3\xa4\x02'
458
454
  ```
459
455
 
460
- This is the same sorting behavior as the standard library.
461
-
462
456
  `dataclass` also serialize as maps but this has no effect on them.
463
457
 
464
458
  ##### OPT_UTC_Z
@@ -585,7 +579,7 @@ test_dataclass_msgpack 140.2774 (40.96) 143.6087 (18.42) 141.3847 (3
585
579
 
586
580
  ormsgpack serializes `datetime.datetime` objects to
587
581
  [RFC 3339](https://tools.ietf.org/html/rfc3339) format,
588
- e.g., "1970-01-01T00:00:00+00:00". This is a subset of ISO 8601 and
582
+ e.g., "1970-01-01T00:00:00+00:00". This is a subset of ISO 8601 and is
589
583
  compatible with `isoformat()` in the standard library.
590
584
 
591
585
  ```python
@@ -632,17 +626,13 @@ module, or a timezone instance from the third-party `pendulum`, `pytz`, or
632
626
 
633
627
  Errors with `tzinfo` result in `MsgpackEncodeError` being raised.
634
628
 
635
- It is faster to have ormsgpack serialize datetime objects than to do so
636
- before calling `packb()`. If using an unsupported type such as
637
- `pendulum.datetime`, use `default`.
638
-
639
629
  To disable serialization of `datetime` objects specify the option
640
630
  `ormsgpack.OPT_PASSTHROUGH_DATETIME`.
641
631
 
642
632
  To use "Z" suffix instead of "+00:00" to indicate UTC ("Zulu") time, use the option
643
633
  `ormsgpack.OPT_UTC_Z`.
644
634
 
645
- To assume datetimes without timezone are UTC, se the option `ormsgpack.OPT_NAIVE_UTC`.
635
+ To assume datetimes without timezone are UTC, use the option `ormsgpack.OPT_NAIVE_UTC`.
646
636
 
647
637
  ### enum
648
638
 
@@ -0,0 +1,9 @@
1
+ ormsgpack-1.4.1.dist-info/METADATA,sha256=0nsqWb3DQK3nLDmG5xqY5Ty3hviYoVhW-sEKRQDVy_8,43847
2
+ ormsgpack-1.4.1.dist-info/WHEEL,sha256=T1RLm43AXt41GKrFU5GP7AbI-r0Ir8iMFRaUAG9tOo0,94
3
+ ormsgpack-1.4.1.dist-info/license_files/LICENSE-APACHE,sha256=fP1zjFPWHHnwfjSPYiv3cHyQhCNwVNN_vgd4inX1iBw,11048
4
+ ormsgpack-1.4.1.dist-info/license_files/LICENSE-MIT,sha256=NlFq79yExdWh50hUJZE6ItvaaesZMMXoTWrklytRlLk,1046
5
+ ormsgpack/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ ormsgpack/__init__.py,sha256=jGcrk6dQSfTAgcqkXznT4VlrV-z9KZ9t6bHuDepqfJA,583
7
+ ormsgpack/__init__.pyi,sha256=vVfpvAXniV3FAfa546Ni7ZjwYfb4l0OevDCkK2SH9CQ,784
8
+ ormsgpack/ormsgpack.cp38-win_amd64.pyd,sha256=tpEXzZA1mi_ABzhACWe6J6LeO3JV04YIZcW4tmuoLlw,280064
9
+ ormsgpack-1.4.1.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- ormsgpack-1.4.0.dist-info/METADATA,sha256=6Khn9kj9zalRB68eOsdugIRBoPN8aa44zfh9oH4eUVo,44296
2
- ormsgpack-1.4.0.dist-info/WHEEL,sha256=T1RLm43AXt41GKrFU5GP7AbI-r0Ir8iMFRaUAG9tOo0,94
3
- ormsgpack-1.4.0.dist-info/license_files/LICENSE-APACHE,sha256=fP1zjFPWHHnwfjSPYiv3cHyQhCNwVNN_vgd4inX1iBw,11048
4
- ormsgpack-1.4.0.dist-info/license_files/LICENSE-MIT,sha256=NlFq79yExdWh50hUJZE6ItvaaesZMMXoTWrklytRlLk,1046
5
- ormsgpack/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- ormsgpack/__init__.py,sha256=jGcrk6dQSfTAgcqkXznT4VlrV-z9KZ9t6bHuDepqfJA,583
7
- ormsgpack/__init__.pyi,sha256=vVfpvAXniV3FAfa546Ni7ZjwYfb4l0OevDCkK2SH9CQ,784
8
- ormsgpack/ormsgpack.cp38-win_amd64.pyd,sha256=zfGNa6WNGs-PlriMaO6BuiwPm4SPOzgvPZ5_RSyx4fg,280064
9
- ormsgpack-1.4.0.dist-info/RECORD,,