A simple proxy decorator for Python functions
Project description
proxy decorator
usage
-
create a
inifile or add to existinifile -
put this in your
inifile[http] http = http://your_proxy_server:your_proxy_port https = https://your_proxy_server:your_proxy_port username = your_username password = your_password
-
use it in your program
from proxy_decorator.proxy_decorator import proxy_http config_file = "path/to/proxy_config.ini" @proxy_http(config_file) def your_function(): # 您的函数实现 pass
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
proxy-decorator-0.1.2.tar.gz
(2.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file proxy-decorator-0.1.2.tar.gz.
File metadata
- Download URL: proxy-decorator-0.1.2.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47a515d05b51a183035a8798cdd33711040d0788a0ebfa081e4dcfa3665a8181
|
|
| MD5 |
0dcca44608d9ffcf8810f8c6721242a3
|
|
| BLAKE2b-256 |
60ea98da3664a18a78c02cf4beffda9f7ddc155c8182cb5f53e09481caaceaae
|
File details
Details for the file proxy_decorator-0.1.2-py3-none-any.whl.
File metadata
- Download URL: proxy_decorator-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b21379128b4a72dfbec77eac94fb9785fa0dbfc7d664fae4a30b9026145fd06
|
|
| MD5 |
2b7ca6bb9fa8db1681f7f842366342b4
|
|
| BLAKE2b-256 |
d3153f5e0fe070f220ca5a8b6f87d846a25002b2bda445e47ba14032bf3768f1
|