vpndetection-fastapi 2.1.24__tar.gz → 2.1.25__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.1.24 → vpndetection_fastapi-2.1.25}/CHANGELOG.md +6 -0
- {vpndetection_fastapi-2.1.24 → vpndetection_fastapi-2.1.25}/PKG-INFO +2 -2
- {vpndetection_fastapi-2.1.24 → vpndetection_fastapi-2.1.25}/pyproject.toml +1 -1
- {vpndetection_fastapi-2.1.24 → vpndetection_fastapi-2.1.25}/src/vpndetection_fastapi/__init__.py +1 -1
- {vpndetection_fastapi-2.1.24 → vpndetection_fastapi-2.1.25}/testdata/testdata.json +257 -0
- {vpndetection_fastapi-2.1.24 → vpndetection_fastapi-2.1.25}/.github/workflows/ci.yml +0 -0
- {vpndetection_fastapi-2.1.24 → vpndetection_fastapi-2.1.25}/.github/workflows/release.yml +0 -0
- {vpndetection_fastapi-2.1.24 → vpndetection_fastapi-2.1.25}/.gitignore +0 -0
- {vpndetection_fastapi-2.1.24 → vpndetection_fastapi-2.1.25}/LICENSE +0 -0
- {vpndetection_fastapi-2.1.24 → vpndetection_fastapi-2.1.25}/README.md +0 -0
- {vpndetection_fastapi-2.1.24 → vpndetection_fastapi-2.1.25}/SECURITY.md +0 -0
- {vpndetection_fastapi-2.1.24 → vpndetection_fastapi-2.1.25}/src/vpndetection_fastapi/py.typed +0 -0
- {vpndetection_fastapi-2.1.24 → vpndetection_fastapi-2.1.25}/testdata/bogons.json +0 -0
- {vpndetection_fastapi-2.1.24 → vpndetection_fastapi-2.1.25}/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.1.25 - 2026-11-17
|
|
6
|
+
|
|
7
|
+
### Fixes
|
|
8
|
+
|
|
9
|
+
- Require vpndetection 5.17.0: a vocabulary value it was not built with comes back as served, and the plan's name ([`2ff2529`](https://github.com/vpndetection-io/sdk-python-fastapi/commit/2ff25290b808f244558e63abb21367f0320d6a56))
|
|
10
|
+
|
|
5
11
|
## 2.1.24 - 2026-11-14
|
|
6
12
|
|
|
7
13
|
### Fixes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: vpndetection-fastapi
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.25
|
|
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.
|
|
23
|
+
Requires-Dist: vpndetection<6,>=5.17.0
|
|
24
24
|
Provides-Extra: dev
|
|
25
25
|
Requires-Dist: fastapi>=0.115; extra == 'dev'
|
|
26
26
|
Requires-Dist: mypy>=1.11; extra == 'dev'
|
|
@@ -5712,6 +5712,48 @@
|
|
|
5712
5712
|
]
|
|
5713
5713
|
}
|
|
5714
5714
|
},
|
|
5715
|
+
{
|
|
5716
|
+
"name": "numeric-upper-bound-on-absent-member",
|
|
5717
|
+
"why": "lt on a member this plan does not serve matches nothing and is reported. A binding that reads the missing member as zero matches lt: 5 and blocks a visitor on data it never saw, which the gte case above cannot show.",
|
|
5718
|
+
"body": {
|
|
5719
|
+
"ip": "45.83.91.1",
|
|
5720
|
+
"is_vpn": true
|
|
5721
|
+
},
|
|
5722
|
+
"condition": {
|
|
5723
|
+
"resproxy": {
|
|
5724
|
+
"hits": {
|
|
5725
|
+
"lt": 5
|
|
5726
|
+
}
|
|
5727
|
+
}
|
|
5728
|
+
},
|
|
5729
|
+
"expect": {
|
|
5730
|
+
"blocked": false,
|
|
5731
|
+
"missing": [
|
|
5732
|
+
"resproxy"
|
|
5733
|
+
]
|
|
5734
|
+
}
|
|
5735
|
+
},
|
|
5736
|
+
{
|
|
5737
|
+
"name": "numeric-inclusive-upper-bound-on-absent-member",
|
|
5738
|
+
"why": "lte, the mirror of the case above: zero is inside lte: 5 too.",
|
|
5739
|
+
"body": {
|
|
5740
|
+
"ip": "45.83.91.1",
|
|
5741
|
+
"is_vpn": true
|
|
5742
|
+
},
|
|
5743
|
+
"condition": {
|
|
5744
|
+
"resproxy": {
|
|
5745
|
+
"hits": {
|
|
5746
|
+
"lte": 5
|
|
5747
|
+
}
|
|
5748
|
+
}
|
|
5749
|
+
},
|
|
5750
|
+
"expect": {
|
|
5751
|
+
"blocked": false,
|
|
5752
|
+
"missing": [
|
|
5753
|
+
"resproxy"
|
|
5754
|
+
]
|
|
5755
|
+
}
|
|
5756
|
+
},
|
|
5715
5757
|
{
|
|
5716
5758
|
"name": "false-entry-is-ignored",
|
|
5717
5759
|
"why": "A false entry states nothing, so the remaining term decides. There is deliberately no way to write block-when-false, which would read as blocking everybody.",
|
|
@@ -7955,6 +7997,221 @@
|
|
|
7955
7997
|
]
|
|
7956
7998
|
}
|
|
7957
7999
|
},
|
|
8000
|
+
"vocabulary": {
|
|
8001
|
+
"why": "A closed vocabulary in an ANSWER (a plan's tier, a database's standing and license type, a format, a download's outcome) is the API's to extend. Each case serves a well-formed answer carrying a value no published list holds, and the call must hand that value back as served, a raw string or an unknown case that carries it, and never fail: a binding that refuses it breaks every installed copy of itself the day the API adds a value, and a release cannot reach the copies already installed. A wrong TYPE (a number, a null where the member is required) is still refused, and refusing an unpublished value in a REQUEST before the network is unchanged. Each `expect` key is a path through the answer's wire names, a number indexing a list; each suite reads it through its own typed result.",
|
|
8002
|
+
"cases": [
|
|
8003
|
+
{
|
|
8004
|
+
"name": "entitlement-plan-name",
|
|
8005
|
+
"why": "The plan's name is what a client shows, and key is what it compares: the free plan's key is free and its name Unlimited. A binding that drops name leaves a client building one from the key, which a renamed plan then gets wrong.",
|
|
8006
|
+
"call": "myEntitlement",
|
|
8007
|
+
"answer": {
|
|
8008
|
+
"org_id": "85bb51e4-2eb6-4a31-8e4d-02ba8b98fe61",
|
|
8009
|
+
"apikey": {
|
|
8010
|
+
"id": "0ab424cc-7619-4dad-b027-afacdc2cedb0",
|
|
8011
|
+
"expires": null,
|
|
8012
|
+
"allowed_cidrs": []
|
|
8013
|
+
},
|
|
8014
|
+
"plan": {
|
|
8015
|
+
"key": "free",
|
|
8016
|
+
"name": "Unlimited",
|
|
8017
|
+
"tier": "free"
|
|
8018
|
+
},
|
|
8019
|
+
"usage": {
|
|
8020
|
+
"requests": 580,
|
|
8021
|
+
"quota": 5000000,
|
|
8022
|
+
"hard_limit": null,
|
|
8023
|
+
"window_start": "2026-11-01T00:00:00Z",
|
|
8024
|
+
"window_end": "2026-12-01T00:00:00Z"
|
|
8025
|
+
}
|
|
8026
|
+
},
|
|
8027
|
+
"expect": {
|
|
8028
|
+
"plan.key": "free",
|
|
8029
|
+
"plan.name": "Unlimited",
|
|
8030
|
+
"plan.tier": "free"
|
|
8031
|
+
}
|
|
8032
|
+
},
|
|
8033
|
+
{
|
|
8034
|
+
"name": "entitlement-tier-unknown",
|
|
8035
|
+
"why": "A plan whose tier no published list holds: the answer reads, and the tier comes back as served.",
|
|
8036
|
+
"call": "myEntitlement",
|
|
8037
|
+
"answer": {
|
|
8038
|
+
"org_id": "85bb51e4-2eb6-4a31-8e4d-02ba8b98fe61",
|
|
8039
|
+
"apikey": {
|
|
8040
|
+
"id": "0ab424cc-7619-4dad-b027-afacdc2cedb0",
|
|
8041
|
+
"expires": null,
|
|
8042
|
+
"allowed_cidrs": []
|
|
8043
|
+
},
|
|
8044
|
+
"plan": {
|
|
8045
|
+
"key": "data",
|
|
8046
|
+
"name": "Data",
|
|
8047
|
+
"tier": "data"
|
|
8048
|
+
},
|
|
8049
|
+
"usage": {
|
|
8050
|
+
"requests": 580,
|
|
8051
|
+
"quota": 5000000,
|
|
8052
|
+
"hard_limit": null,
|
|
8053
|
+
"window_start": "2026-11-01T00:00:00Z",
|
|
8054
|
+
"window_end": "2026-12-01T00:00:00Z"
|
|
8055
|
+
}
|
|
8056
|
+
},
|
|
8057
|
+
"expect": {
|
|
8058
|
+
"plan.key": "data",
|
|
8059
|
+
"plan.name": "Data",
|
|
8060
|
+
"plan.tier": "data"
|
|
8061
|
+
}
|
|
8062
|
+
},
|
|
8063
|
+
{
|
|
8064
|
+
"name": "database-standing-unknown",
|
|
8065
|
+
"why": "A database whose standing no published list holds: the catalog reads, and the standing comes back as served.",
|
|
8066
|
+
"call": "listDatabases",
|
|
8067
|
+
"answer": {
|
|
8068
|
+
"databases": [
|
|
8069
|
+
{
|
|
8070
|
+
"base": "vpn_ip_extended",
|
|
8071
|
+
"name": "VPN IP Extended",
|
|
8072
|
+
"summary": "Every VPN exit address, with its provider.",
|
|
8073
|
+
"license_type": "standard",
|
|
8074
|
+
"starts": "2026-01-01T00:00:00Z",
|
|
8075
|
+
"expires": null,
|
|
8076
|
+
"renews_at": null,
|
|
8077
|
+
"notice_due_at": null,
|
|
8078
|
+
"in_term": true,
|
|
8079
|
+
"standing": "suspended",
|
|
8080
|
+
"open": false,
|
|
8081
|
+
"versions": [
|
|
8082
|
+
{
|
|
8083
|
+
"id": "vpn_ip_extended_v1",
|
|
8084
|
+
"version": 1,
|
|
8085
|
+
"formats": [
|
|
8086
|
+
{
|
|
8087
|
+
"format": "csvgz",
|
|
8088
|
+
"bytes": 1024
|
|
8089
|
+
}
|
|
8090
|
+
],
|
|
8091
|
+
"sample_formats": [
|
|
8092
|
+
"csvgz"
|
|
8093
|
+
]
|
|
8094
|
+
}
|
|
8095
|
+
]
|
|
8096
|
+
}
|
|
8097
|
+
]
|
|
8098
|
+
},
|
|
8099
|
+
"expect": {
|
|
8100
|
+
"databases.0.base": "vpn_ip_extended",
|
|
8101
|
+
"databases.0.standing": "suspended"
|
|
8102
|
+
}
|
|
8103
|
+
},
|
|
8104
|
+
{
|
|
8105
|
+
"name": "database-license-type-unknown",
|
|
8106
|
+
"why": "A license type no published list holds: the catalog reads, and the license type comes back as served, never as no license at all.",
|
|
8107
|
+
"call": "listDatabases",
|
|
8108
|
+
"answer": {
|
|
8109
|
+
"databases": [
|
|
8110
|
+
{
|
|
8111
|
+
"base": "vpn_ip_extended",
|
|
8112
|
+
"name": "VPN IP Extended",
|
|
8113
|
+
"summary": "Every VPN exit address, with its provider.",
|
|
8114
|
+
"license_type": "oem",
|
|
8115
|
+
"starts": "2026-01-01T00:00:00Z",
|
|
8116
|
+
"expires": null,
|
|
8117
|
+
"renews_at": null,
|
|
8118
|
+
"notice_due_at": null,
|
|
8119
|
+
"in_term": true,
|
|
8120
|
+
"standing": "licensed",
|
|
8121
|
+
"open": false,
|
|
8122
|
+
"versions": [
|
|
8123
|
+
{
|
|
8124
|
+
"id": "vpn_ip_extended_v1",
|
|
8125
|
+
"version": 1,
|
|
8126
|
+
"formats": [
|
|
8127
|
+
{
|
|
8128
|
+
"format": "csvgz",
|
|
8129
|
+
"bytes": 1024
|
|
8130
|
+
}
|
|
8131
|
+
],
|
|
8132
|
+
"sample_formats": [
|
|
8133
|
+
"csvgz"
|
|
8134
|
+
]
|
|
8135
|
+
}
|
|
8136
|
+
]
|
|
8137
|
+
}
|
|
8138
|
+
]
|
|
8139
|
+
},
|
|
8140
|
+
"expect": {
|
|
8141
|
+
"databases.0.base": "vpn_ip_extended",
|
|
8142
|
+
"databases.0.license_type": "oem"
|
|
8143
|
+
}
|
|
8144
|
+
},
|
|
8145
|
+
{
|
|
8146
|
+
"name": "database-format-unknown",
|
|
8147
|
+
"why": "A format no published list holds, in a version's formats and its sample formats: the catalog reads, and each comes back as served. Refusing it in a download REQUEST before the network stays as it is.",
|
|
8148
|
+
"call": "listDatabases",
|
|
8149
|
+
"answer": {
|
|
8150
|
+
"databases": [
|
|
8151
|
+
{
|
|
8152
|
+
"base": "vpn_ip_extended",
|
|
8153
|
+
"name": "VPN IP Extended",
|
|
8154
|
+
"summary": "Every VPN exit address, with its provider.",
|
|
8155
|
+
"license_type": "standard",
|
|
8156
|
+
"starts": "2026-01-01T00:00:00Z",
|
|
8157
|
+
"expires": null,
|
|
8158
|
+
"renews_at": null,
|
|
8159
|
+
"notice_due_at": null,
|
|
8160
|
+
"in_term": true,
|
|
8161
|
+
"standing": "licensed",
|
|
8162
|
+
"open": false,
|
|
8163
|
+
"versions": [
|
|
8164
|
+
{
|
|
8165
|
+
"id": "vpn_ip_extended_v1",
|
|
8166
|
+
"version": 1,
|
|
8167
|
+
"formats": [
|
|
8168
|
+
{
|
|
8169
|
+
"format": "parquet",
|
|
8170
|
+
"bytes": 2048
|
|
8171
|
+
}
|
|
8172
|
+
],
|
|
8173
|
+
"sample_formats": [
|
|
8174
|
+
"parquet"
|
|
8175
|
+
]
|
|
8176
|
+
}
|
|
8177
|
+
]
|
|
8178
|
+
}
|
|
8179
|
+
]
|
|
8180
|
+
},
|
|
8181
|
+
"expect": {
|
|
8182
|
+
"databases.0.versions.0.formats.0.format": "parquet",
|
|
8183
|
+
"databases.0.versions.0.formats.0.bytes": 2048,
|
|
8184
|
+
"databases.0.versions.0.sample_formats.0": "parquet"
|
|
8185
|
+
}
|
|
8186
|
+
},
|
|
8187
|
+
{
|
|
8188
|
+
"name": "download-outcome-unknown",
|
|
8189
|
+
"why": "A download outcome no published list holds: the history reads, and the outcome comes back as served.",
|
|
8190
|
+
"call": "listDownloads",
|
|
8191
|
+
"answer": {
|
|
8192
|
+
"downloads": [
|
|
8193
|
+
{
|
|
8194
|
+
"dataset_id": "vpn_ip_extended_v1",
|
|
8195
|
+
"format": "csvgz",
|
|
8196
|
+
"outcome": "throttled",
|
|
8197
|
+
"sample": false,
|
|
8198
|
+
"open": false,
|
|
8199
|
+
"bytes": 1024,
|
|
8200
|
+
"http_status": 302,
|
|
8201
|
+
"apikey_id": "0ab424cc-7619-4dad-b027-afacdc2cedb0",
|
|
8202
|
+
"client_ip": "8.8.8.8",
|
|
8203
|
+
"user_agent": "curl/8.14.1",
|
|
8204
|
+
"created": "2026-11-15T07:00:00Z"
|
|
8205
|
+
}
|
|
8206
|
+
]
|
|
8207
|
+
},
|
|
8208
|
+
"expect": {
|
|
8209
|
+
"downloads.0.dataset_id": "vpn_ip_extended_v1",
|
|
8210
|
+
"downloads.0.outcome": "throttled"
|
|
8211
|
+
}
|
|
8212
|
+
}
|
|
8213
|
+
]
|
|
8214
|
+
},
|
|
7958
8215
|
"bogons": {
|
|
7959
8216
|
"v4": [
|
|
7960
8217
|
"0.0.0.0/8",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{vpndetection_fastapi-2.1.24 → vpndetection_fastapi-2.1.25}/src/vpndetection_fastapi/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|