Skip to main content

Python library for manipulating proxies

Project description

pyproxychains

... потому что иногда нужно, чтобы запросы просто начали проходить.

Интерфейс

from python_proxychains import RoutingProxyAdapter

adapter = RoutingProxyAdapter.from_json("config.json")

# Decorator API
from python_proxychains.requests import proxied

import requests

@proxied(adapter)
def make_request():
    return requests.get("https://example.com")

make_request()

Больше примеров в examples.

Конфигурация

{
    "log": {
        "loglevel": "info"
    },
    "routing": [
        {
            "domain": [
                ".*\\.ru"
            ],
            "outbound": "direct"
        }
    ],
    "proxies": [
        {
            "tag": "proxy1",
            "protocol": "socks5",
            "url": "socks5://localhost:10808"
        },
        {
            "tag": "direct",
            "protocol": "freedom"
        }
    ],
    "pools": [
        {
            "tag": "pool1",
            "proxies": [
                "proxy1",
            ],
            "strategy": "RoundRobin"
        }
    ]
}

Разработка и тестирование

# Сборка библиотеки
uv build

# Запуск форматтеров
uv run black
uv run isort

# Тестирование
uv run pytest

# Проверка покрытия
uv run coverage run -m pytest
uv run coverage report

Участники

Проект выполняется Лагутиным Георгием и Заборовым Егором.

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

python_proxychains-0.1.3.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

python_proxychains-0.1.3-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file python_proxychains-0.1.3.tar.gz.

File metadata

  • Download URL: python_proxychains-0.1.3.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for python_proxychains-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3788e0649d8b929fb04b8e818a8f48ab0d90363d07ca8092c8b4facaf7ac7c1c
MD5 c62aa1365f5d4fd841c6e10f7b9496c7
BLAKE2b-256 9bce8382f7fd045e03b2a3bd2f73846e0aa5eac9d3199ad43d0cddd786cf72b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_proxychains-0.1.3.tar.gz:

Publisher: publish.yml on jtr1k/python-proxychains

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file python_proxychains-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for python_proxychains-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4617251acb16d4356b147a5a44933b80fa1b74941ee637560c5d9499e108757a
MD5 e6a0c466828ca0db9ff2634d914fe3fd
BLAKE2b-256 5737fb0cb06a088584d54e763ea72054011b67f8ea67a91801a2752eea57d804

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_proxychains-0.1.3-py3-none-any.whl:

Publisher: publish.yml on jtr1k/python-proxychains

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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