ipidea-proxy
Python library for ipidea proxy service API
使用客户端
1. 获取UID和APPKEY
登录用户Profile
https://www.ipidea.net/ucenter/
然后访问API文档链接,从页面上获取UID和APPKEY
https://www.ipidea.net/ipidea-api.html#001
2. 设置环境变量
通过上面获取的UID和APPKEY,设置到以下的环境变量。客户端会自动从该环境变量读取。
export IPIDEA_UID=xxx
export IPIDEA_APPKEY=xxx
3. 初始化客户端
from ipidea_proxy import IpideaProxy
# 通过环境变量设置UID和APPKEY
# 如果UID和APPKEY已经通过环境变量设置,可以这样初始化客户端
ipp = IpideaProxy()
# 通过参数设置UID和APPKEY
ipp = IpideaProxy(uid='xxxx', appkey='xxxxxx')
4. 使用客户端
4.1 设置IP到白名单
# 添加本机公网IP到白名单
ipp.add_whitelist()
# 添加2.3.4.5到白名单
ipp.add_whitelist('2.3.4.5')
4.2 从白名单中删除IP
# 从白名单中删除指定IP
ipp.delete_whitelist('2.3.4.5')
# 从白名单中删除本机对应公网IP
ipp.delete_whitelist()
API Reference
Metadata
Release files for ipidea-proxy 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ipidea_proxy-0.5.0.tar.gz | 7.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ipidea_proxy-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.4 kB
Release files / ipidea_proxy-0.5.0.tar.gz
| Download URL | ipidea_proxy-0.5.0.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8eac45d2f691de23146868cc49c1e93395adc4b81f9ea9ada73302664a03fe30
|
|
BLAKE2b-256 checksum How to use checksums |
42a8cf8e8931a4f68131a9f0833c3709a2d04715400a54f78bd9fe09993ad926
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / ipidea_proxy-0.5.0-py3-none-any.whl
| Download URL | ipidea_proxy-0.5.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
08a88ead8eb1a550478da498fd1dbfcfcefd778b87602795df7509be104ee7b6
|
|
BLAKE2b-256 checksum How to use checksums |
3a65b537feb63f22ce9453600cd49fbf1a230df6914c1ba133ed91efb1fa9a53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for ipidea-proxy 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.