Evgenii Kliuchnikov
ea5b5c10dd
Drop Py 3.9- support
...
PiperOrigin-RevId: 830342213
2025-11-10 02:18:38 -08:00
Rui Xi
e4bc10a000
fix method name in python Decompressor docstring
2025-11-07 15:48:14 +08:00
Evgenii Kliuchnikov
ed93810e27
support multi-phase initialization
...
PiperOrigin-RevId: 814128632
2025-10-02 01:51:02 -07:00
Evgenii Kliuchnikov
1f6ab76bff
use module-bound exception
...
PiperOrigin-RevId: 812739918
2025-09-29 05:12:31 -07:00
Evgenii Kliuchnikov
1406898440
Build and test with PY2.7
...
PiperOrigin-RevId: 811352084
2025-09-25 08:00:20 -07:00
Evgenii Kliuchnikov
9686382ff3
PY: continue renovation of extension
...
Fixed unchecked malloc for "tail" input data.
Fixed inconsistencies in docstrings.
Rewritten "growable buffer" to C-code, so it could run without acquiring GIL.
Breaking changes:
- native object allocation failures now handled at object creation time
- some lower level exceptions (e.g. OOM) are not shadowed by brotli.error
PiperOrigin-RevId: 810813664
2025-09-24 03:52:44 -07:00
Evgenii Kliuchnikov
41a22f07f2
modernize PY3 class definition
...
PiperOrigin-RevId: 804460135
2025-09-08 09:15:53 -07:00
Evgenii Kliuchnikov
98a89b1563
temporary rollback
...
PiperOrigin-RevId: 803462595
2025-09-05 07:57:59 -07:00
Evgenii Kliuchnikov
35d4992ac8
PY: reformat _brotli.c
...
PiperOrigin-RevId: 803412055
2025-09-05 04:42:06 -07:00
Eugene Kliuchnikov
79ea7296d4
Merge branch 'master' into master
2025-08-29 15:06:37 +02:00
Evgenii Kliuchnikov
9a4ba5932b
internal change
...
PiperOrigin-RevId: 795452145
2025-08-15 06:18:41 -07:00
Domingo Dirutigliano
964ca075d1
fix module import in set exception + setup.py compatible with python2
2025-06-13 14:58:13 +02:00
Domingo Dirutigliano
ddb803acc3
using static function
2025-06-13 14:13:12 +02:00
Domingo Dirutigliano
998a28bde4
using module state for error handling
2025-06-13 14:09:51 +02:00
Domingo Dirutigliano
e45f18ccca
DECREF on exception raise
2025-03-15 11:23:32 +01:00
Domingo Dirutigliano
c710db0510
enabled support to 3.12 per GIL interpeter using multistage module inizialization
2025-03-15 09:13:46 +01:00
Robert Obryk
eb3a31e2d3
add max_length to Python streaming decompression
2025-01-07 16:28:30 +01:00
Robert Obryk
28ce91caf6
add size limit to buffer
2025-01-07 16:28:30 +01:00
Brotli
d019271c8b
Copybara import of the project:
...
--
f1bdfaa803 by Robert Obryk <robryk@google.com >:
add size limit to buffer
--
ef8922cee7 by Robert Obryk <robryk@google.com >:
add max_length to Python streaming decompression
PiperOrigin-RevId: 712463460
2025-01-06 03:05:56 -08:00
Robert Obryk
ef8922cee7
add max_length to Python streaming decompression
2025-01-06 11:26:42 +01:00
Robert Obryk
f1bdfaa803
add size limit to buffer
2024-09-17 16:54:59 +02:00
Ma Lin
c8df4b3049
Python: use a new output buffer code ( #902 )
...
Currently, the output buffer is a std::vector<uint8_t>.
When the buffer grows, resizing will cause unnecessary memcpy().
This change uses a list of bytes object to represent output buffer, can avoid the extra overhead of resizing.
In addition, C++ code can be removed, it's a pure C extension.
2022-12-29 14:07:16 +01:00