Skip to main content

A simple proxy decorator for Python functions

Project description

proxy decorator

usage

  1. create a ini file or add to exist ini file

  2. put this in your ini file

    [http]
    http = http://your_proxy_server:your_proxy_port
    https = https://your_proxy_server:your_proxy_port
    username = your_username
    password = your_password
    
  3. 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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

proxy_decorator-0.1.2-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

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

Hashes for proxy-decorator-0.1.2.tar.gz
Algorithm Hash digest
SHA256 47a515d05b51a183035a8798cdd33711040d0788a0ebfa081e4dcfa3665a8181
MD5 0dcca44608d9ffcf8810f8c6721242a3
BLAKE2b-256 60ea98da3664a18a78c02cf4beffda9f7ddc155c8182cb5f53e09481caaceaae

See more details on using hashes here.

File details

Details for the file proxy_decorator-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for proxy_decorator-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8b21379128b4a72dfbec77eac94fb9785fa0dbfc7d664fae4a30b9026145fd06
MD5 2b7ca6bb9fa8db1681f7f842366342b4
BLAKE2b-256 d3153f5e0fe070f220ca5a8b6f87d846a25002b2bda445e47ba14032bf3768f1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page