vpndetection-fastapi 2.0.8__tar.gz → 2.0.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {vpndetection_fastapi-2.0.8 → vpndetection_fastapi-2.0.9}/CHANGELOG.md +6 -0
- {vpndetection_fastapi-2.0.8 → vpndetection_fastapi-2.0.9}/PKG-INFO +4 -2
- {vpndetection_fastapi-2.0.8 → vpndetection_fastapi-2.0.9}/README.md +2 -0
- {vpndetection_fastapi-2.0.8 → vpndetection_fastapi-2.0.9}/pyproject.toml +1 -1
- {vpndetection_fastapi-2.0.8 → vpndetection_fastapi-2.0.9}/src/vpndetection_fastapi/__init__.py +1 -1
- {vpndetection_fastapi-2.0.8 → vpndetection_fastapi-2.0.9}/.github/workflows/ci.yml +0 -0
- {vpndetection_fastapi-2.0.8 → vpndetection_fastapi-2.0.9}/.github/workflows/release.yml +0 -0
- {vpndetection_fastapi-2.0.8 → vpndetection_fastapi-2.0.9}/.gitignore +0 -0
- {vpndetection_fastapi-2.0.8 → vpndetection_fastapi-2.0.9}/LICENSE +0 -0
- {vpndetection_fastapi-2.0.8 → vpndetection_fastapi-2.0.9}/src/vpndetection_fastapi/py.typed +0 -0
- {vpndetection_fastapi-2.0.8 → vpndetection_fastapi-2.0.9}/testdata/bogons.json +0 -0
- {vpndetection_fastapi-2.0.8 → vpndetection_fastapi-2.0.9}/testdata/testdata.json +0 -0
- {vpndetection_fastapi-2.0.8 → vpndetection_fastapi-2.0.9}/tests/test_middleware.py +0 -0
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
What each release changed for you, newest first. Each line is a commit's summary, linked to its full description and diff. Releases before 2.0.5 are described by their release commits.
|
|
4
4
|
|
|
5
|
+
## 2.0.9 - 2026-10-02
|
|
6
|
+
|
|
7
|
+
### Fixes
|
|
8
|
+
|
|
9
|
+
- Require vpndetection 5.5.3: a long Retry-After or timeout no longer raises OverflowError ([`7805671`](https://github.com/vpndetection-io/sdk-python-fastapi/commit/78056714706cbadef865a8b1888209fae061a796))
|
|
10
|
+
|
|
5
11
|
## 2.0.8 - 2026-09-29
|
|
6
12
|
|
|
7
13
|
### Fixes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: vpndetection-fastapi
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.9
|
|
4
4
|
Summary: Official FastAPI and Starlette middleware for the VPNDetection API. Detect VPNs, proxies, Tor, hosting and CDN visitors on every request.
|
|
5
5
|
Project-URL: Homepage, https://vpndetection.io
|
|
6
6
|
Project-URL: Source, https://github.com/vpndetection-io/sdk-python-fastapi
|
|
@@ -20,7 +20,7 @@ Classifier: Topic :: Security
|
|
|
20
20
|
Classifier: Typing :: Typed
|
|
21
21
|
Requires-Python: >=3.11
|
|
22
22
|
Requires-Dist: starlette>=0.37
|
|
23
|
-
Requires-Dist: vpndetection<6,>=5.5.
|
|
23
|
+
Requires-Dist: vpndetection<6,>=5.5.3
|
|
24
24
|
Provides-Extra: dev
|
|
25
25
|
Requires-Dist: mypy>=1.11; extra == 'dev'
|
|
26
26
|
Requires-Dist: pytest>=8; extra == 'dev'
|
|
@@ -67,6 +67,8 @@ async def index(request: Request):
|
|
|
67
67
|
return {"vpn": found.result.is_vpn}
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
+
A request your `skip` claims gets no answer, and `lookup(request)` is `None` for it.
|
|
71
|
+
|
|
70
72
|
By default nothing is blocked. Every request gets an answer and your own code decides what that means — which is usually what you want, because whether a VPN visitor is a problem depends entirely on what they are doing.
|
|
71
73
|
|
|
72
74
|
## Blocking
|
|
@@ -38,6 +38,8 @@ async def index(request: Request):
|
|
|
38
38
|
return {"vpn": found.result.is_vpn}
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
+
A request your `skip` claims gets no answer, and `lookup(request)` is `None` for it.
|
|
42
|
+
|
|
41
43
|
By default nothing is blocked. Every request gets an answer and your own code decides what that means — which is usually what you want, because whether a VPN visitor is a problem depends entirely on what they are doing.
|
|
42
44
|
|
|
43
45
|
## Blocking
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|