Skip to content

Commit

Permalink
Compress requests, support zstd
Browse files Browse the repository at this point in the history
Compress requests larger than 1K using zstd if available and otherwise
with zlib. `requests` already supports responses compressed with zstd if
`zstandard` is available.
  • Loading branch information
mgorven committed May 13, 2024
1 parent 9e166c2 commit 34f72a4
Show file tree
Hide file tree
Showing 6 changed files with 433 additions and 458 deletions.
5 changes: 4 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ persistent=no

[MESSAGES]

# These should be fixed
# R0401: cyclic-import

# Enforce minimal documentation. Probably nice to fix.
# C0114: missing-module-docstring
# C0115: missing-class-docstring
Expand All @@ -23,7 +26,7 @@ persistent=no
# C0103: invalid-name
# C0104: disallowed-name

disable=C0103,C0104,C0301,C0302,C0114,C0115,C0116,C0301,R0801,R0902,R0903,R0904,R0913,R0914,R0915
disable=C0103,C0104,C0301,C0302,C0114,C0115,C0116,C0301,R0801,R0902,R0903,R0904,R0913,R0914,R0915,R0401

[MISCELLANEOUS]

Expand Down
6 changes: 4 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ name = "pypi"

[packages]
cryptography = "*"
lightspark-crypto-python = "*"
pyjwt = "*"
requests = "*"
lightspark-crypto-python = "*"
zstandard = "*"

[dev-packages]
black = "*"
black = "<24"
flask = "<2.3"
importlib_metadata = "*"
isort = "==5.11.4"
libcst = "<1.2" # Stopped supporting Python 3.8
pylint = "*"
pyre-check = "*"
pytest = "*"
Expand Down
Loading

0 comments on commit 34f72a4

Please sign in to comment.