Skip to content

Commit bbafa98

Browse files
committed
Replace requests with httpx
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
1 parent cdf72db commit bbafa98

File tree

3 files changed

+38
-17
lines changed

3 files changed

+38
-17
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ readme = "README.md"
1010
license = { file = "LICENSE" }
1111
authors = [{ name = "Replicate, Inc." }]
1212
requires-python = ">=3.8"
13-
dependencies = ["packaging", "pydantic>1", "requests>2"]
13+
dependencies = ["packaging", "pydantic>1", "httpx>=0.21.0,<1"]
1414
optional-dependencies = { dev = [
1515
"black",
1616
"mypy",

requirements-dev.txt

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,26 @@
66
#
77
annotated-types==0.5.0
88
# via pydantic
9+
anyio==3.7.1
10+
# via httpcore
911
black==23.7.0
1012
# via replicate (pyproject.toml)
1113
certifi==2023.7.22
12-
# via requests
13-
charset-normalizer==3.2.0
14-
# via requests
14+
# via
15+
# httpcore
16+
# httpx
1517
click==8.1.6
1618
# via black
19+
h11==0.14.0
20+
# via httpcore
21+
httpcore==0.17.3
22+
# via httpx
23+
httpx==0.24.1
24+
# via replicate (pyproject.toml)
1725
idna==3.4
1826
# via
19-
# requests
27+
# anyio
28+
# httpx
2029
# yarl
2130
iniconfig==2.0.0
2231
# via pytest
@@ -54,17 +63,18 @@ pytest-recording==0.13.0
5463
# via replicate (pyproject.toml)
5564
pyyaml==6.0.1
5665
# via vcrpy
57-
requests==2.31.0
58-
# via replicate (pyproject.toml)
5966
ruff==0.0.278
6067
# via replicate (pyproject.toml)
68+
sniffio==1.3.0
69+
# via
70+
# anyio
71+
# httpcore
72+
# httpx
6173
typing-extensions==4.7.1
6274
# via
6375
# mypy
6476
# pydantic
6577
# pydantic-core
66-
urllib3==2.0.3
67-
# via requests
6878
vcrpy==5.1.0
6979
# via pytest-recording
7080
wrapt==1.15.0

requirements.txt

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,34 @@
66
#
77
annotated-types==0.5.0
88
# via pydantic
9+
anyio==3.7.1
10+
# via httpcore
911
certifi==2023.7.22
10-
# via requests
11-
charset-normalizer==3.2.0
12-
# via requests
12+
# via
13+
# httpcore
14+
# httpx
15+
h11==0.14.0
16+
# via httpcore
17+
httpcore==0.17.3
18+
# via httpx
19+
httpx==0.24.1
20+
# via replicate (pyproject.toml)
1321
idna==3.4
14-
# via requests
22+
# via
23+
# anyio
24+
# httpx
1525
packaging==23.1
1626
# via replicate (pyproject.toml)
1727
pydantic==2.0.3
1828
# via replicate (pyproject.toml)
1929
pydantic-core==2.3.0
2030
# via pydantic
21-
requests==2.31.0
22-
# via replicate (pyproject.toml)
31+
sniffio==1.3.0
32+
# via
33+
# anyio
34+
# httpcore
35+
# httpx
2336
typing-extensions==4.7.1
2437
# via
2538
# pydantic
2639
# pydantic-core
27-
urllib3==2.0.3
28-
# via requests

0 commit comments

Comments
 (0)