Skip to content

Commit 34f72a4

Browse files
committed
Compress requests, support zstd
Compress requests larger than 1K using zstd if available and otherwise with zlib. `requests` already supports responses compressed with zstd if `zstandard` is available.
1 parent 9e166c2 commit 34f72a4

File tree

6 files changed

+433
-458
lines changed

6 files changed

+433
-458
lines changed

.pylintrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ persistent=no
33

44
[MESSAGES]
55

6+
# These should be fixed
7+
# R0401: cyclic-import
8+
69
# Enforce minimal documentation. Probably nice to fix.
710
# C0114: missing-module-docstring
811
# C0115: missing-class-docstring
@@ -23,7 +26,7 @@ persistent=no
2326
# C0103: invalid-name
2427
# C0104: disallowed-name
2528

26-
disable=C0103,C0104,C0301,C0302,C0114,C0115,C0116,C0301,R0801,R0902,R0903,R0904,R0913,R0914,R0915
29+
disable=C0103,C0104,C0301,C0302,C0114,C0115,C0116,C0301,R0801,R0902,R0903,R0904,R0913,R0914,R0915,R0401
2730

2831
[MISCELLANEOUS]
2932

Pipfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@ name = "pypi"
55

66
[packages]
77
cryptography = "*"
8+
lightspark-crypto-python = "*"
89
pyjwt = "*"
910
requests = "*"
10-
lightspark-crypto-python = "*"
11+
zstandard = "*"
1112

1213
[dev-packages]
13-
black = "*"
14+
black = "<24"
1415
flask = "<2.3"
1516
importlib_metadata = "*"
1617
isort = "==5.11.4"
18+
libcst = "<1.2" # Stopped supporting Python 3.8
1719
pylint = "*"
1820
pyre-check = "*"
1921
pytest = "*"

0 commit comments

Comments
 (0)