Commit graph

113 commits

Author SHA1 Message Date
Inada Naoki
c356035a57
Unpacker: Change max_buffer_size to 100MiB (#391) 2019-12-09 17:03:12 +09:00
Inada Naoki
5399f8180d
Update README (#393) 2019-12-09 17:02:35 +09:00
Inada Naoki
d8e3cf0563
Make strict_map_key default to True (#392) 2019-12-06 22:23:15 +09:00
Inada Naoki
f6f6f328eb
Fix fallback Unpacker.read() (#388)
Fixes #352.
2019-12-06 21:16:27 +09:00
Inada Naoki
7a8ce0f9ca Remove unused import 2019-12-06 20:34:18 +09:00
Inada Naoki
7e9905bdfa
Use new msgpack spec by default. (#386) 2019-12-05 21:34:10 +09:00
Inada Naoki
de320488ae
fallback: Remove old buffer protocol support (#384) 2019-12-05 20:47:20 +09:00
Inada Naoki
9f4b2d53b7
Remove deprecated submodule unpack (#385) 2019-12-05 20:47:01 +09:00
Inada Naoki
e557e17cbd blacken 2019-12-05 18:50:13 +09:00
Inada Naoki
641406902e
Add Timestamp support (#382) 2019-12-05 18:29:15 +09:00
Inada Naoki
2c6668941f
Intern map keys (#381)
Fixes #372.
2019-12-03 21:18:17 +09:00
Inada Naoki
e419cd8e2d
Remove encoding option from Unpacker. (#380) 2019-12-03 21:13:05 +09:00
Inada Naoki
83ebb63c44
Ressurect unicode_errors of the Packer. (#379) 2019-12-03 20:53:11 +09:00
Inada Naoki
e1ed0044bf
Remove encoding/unicode_errors options from Packer (#378) 2019-12-03 18:54:01 +09:00
Inada Naoki
891f2d8743
Drop Python 2 support from _cmsgpack (#376) 2019-11-28 20:23:34 +09:00
Felix Schwarz
05ff11dbcc use relative imports (#357)
Some applications use msgpack to store persistent data and require a specific
msgpack version (e.g. borgbackup). Bundling helps in case there is an
(incompatible) version of msgpack in a system-wide install.
2019-05-12 21:44:32 +09:00
Inada Naoki
280308e8ce Recommend max_buffer_len instead of max_(str|bin|ext)_len 2019-01-25 21:27:46 +09:00
Inada Naoki
28b5f46a34
Auto limit configuration (#342) 2019-01-24 18:46:39 +09:00
Inada Naoki
197e30723a Fix docstring 2018-12-04 20:10:21 +09:00
Inada Naoki
bbdfd4d92e cleanup 2018-11-30 16:28:41 +09:00
Inada Naoki
8ae6320072 Fix fallback 2018-11-30 11:42:51 +09:00
Inada Naoki
dc1b993079 Implement strict_map_key to fallback unpacker. 2018-11-29 22:35:12 +09:00
INADA Naoki
44254dd35e
Add StackError and FormatError (#331) 2018-11-20 13:12:49 +09:00
INADA Naoki
2b5f59166b
fallback: Fix warning stacklevel (#327) 2018-11-14 16:34:51 +09:00
INADA Naoki
39f8aa78c7
Remove deprecated write_bytes option (#322) 2018-11-12 02:33:31 +09:00
INADA Naoki
07f0beeabb
Remove deprecated exception classes (#323) 2018-11-12 02:19:01 +09:00
INADA Naoki
1bf62ba6f8
PendingDeprecationWarning -> DeprecationWarning (#321) 2018-11-09 21:39:25 +09:00
INADA Naoki
9e210bfc1a
Add Packer.buffer() (#320) 2018-11-09 20:55:13 +09:00
INADA Naoki
3b80233592
unpacker: Make default size limit smaller (#319)
To avoid DoS attack, make default size limit smaller.

Fixes #295
2018-11-08 22:21:44 +09:00
Raymond E Ferguson
70b5f21b34 Alternate fixes for jython and legacy CPython (#310)
Python 3.4 is not supported officially.
But keep running test for a while, to know when msgpack-python
stop working on Python 3.4 actually.

The current patches did not work under jython-2.7.1 where implicit
casting of buffer or memoryview doesn't work. It may also be the
jython is a little pickier about string casting non string bytes
due to the underlying strong typing of java.

See issues #303 & #304.
2018-10-02 20:20:06 +09:00
Inada Naoki
5f684aed82 fallback: Fix error on Jython
Fixes #303
2018-06-27 01:27:31 +09:00
Alex Gaynor
b10cf78f54 Fix TypeError in fallback.unpack() on <Python 2.7.6 2018-04-16 12:18:35 +09:00
INADA Naoki
ae3a6ba0b0
Deprecate implementation module's unpack() (#290) 2018-02-23 15:41:21 +09:00
INADA Naoki
f38c1a3674
Fix Unpacker.feed() drops unused data in buffer. (#289)
Fixes #287
2018-02-23 11:52:48 +09:00
INADA Naoki
9455fccc52 Revert "Move unpack() from each implementation to __init__. (#286)"
This reverts commit da902f9c1d.
2018-02-23 11:32:26 +09:00
INADA Naoki
da902f9c1d
Move unpack() from each implementation to __init__. (#286)
Fixes #285
2018-02-22 00:55:32 +09:00
INADA Naoki
ae8d469482
Fix memory leak in pure Python Unpacker.feed() (#284)
fixes #283
2018-02-16 16:35:22 +09:00
INADA Naoki
5569a4efcd
s/raw_as_bytes/raw/g (#276)
fixes #273
2018-01-12 19:22:36 +09:00
INADA Naoki
d9ec8fc905
Packer.pack() reset buffer on exception (#274)
fixes #210
2018-01-11 23:50:41 +09:00
INADA Naoki
5534d0c7af
Add raw_as_bytes option to Unpacker. (#265) 2018-01-11 17:02:41 +09:00
INADA Naoki
fc09da997c fallback: Update docstring. 2018-01-10 02:58:55 +09:00
INADA Naoki
43137d6bd2
Deprecate write_bytes option in Unpacker. (#262)
Fixes #197
2018-01-05 20:19:04 +09:00
Lorenzo Bolla
deeda31a88 Add unittests to document serialisation of tuples (#246)
Also, fix formatting of error message in case of tuple.
See https://github.com/msgpack/msgpack-python/issues/245
2017-09-30 16:23:55 +09:00
jfolz
f0f2c0b397 Packer accepts bytearray objects (#229) 2017-05-18 20:03:15 +09:00
jfolz
a8d9162ca6 Unpacker: add tell() (#227) 2017-04-30 02:33:20 +09:00
INADA Naoki
2481c64cf1 Merge branch 'release-0.4' 2017-01-12 18:17:00 +09:00
TW
e3fea94509 fix typos and other cosmetic issues (#214)
cosmetic issues:
- reST headlines' underline length needs to match the headline length
  (looks like somebody is / was using a proportional font)
- Cython code lines do not need to be terminated with a semicolon
- always use triple-double-quotes for docstrings
2017-01-11 12:04:23 +09:00
folz
2b63e9fbbb enable unpacking from memoryview 2016-06-13 15:37:33 +02:00
INADA Naoki
c16a1c6bdf fallback: Use bytearray as buffer 2016-05-24 07:32:30 +09:00
INADA Naoki
6b8919355d fallback: Use struct.unpack_from when possible 2016-05-24 02:46:29 +09:00