Skip to main content

litportnet-free-proxy-sdk

Dependency-free, typed Python 3.9+ client and CLI to discover and filter Litport's verified HTTP, SOCKS4, and SOCKS5 proxy records by freshness, latency, and uptime.

Install

pip install litportnet-free-proxy-sdk

Use from Python

from litportnet_free_proxy_sdk import pick_best, to_proxy_url

proxies = pick_best(5, {
    "protocol": "socks5",
    "country": "us",
    "max_latency_ms": 500,
    "min_uptime_7d": 90,
    "min_checks_7d": 50,
    "checked_within_min": 30,
})

print([to_proxy_url(proxy) for proxy in proxies])

get_proxies, pick_best, and rotate return normalized Proxy records. to_proxy_url(proxy) formats a record as protocol://ip:port; to_requests_proxies(proxy) and to_httpx_proxy(proxy) return configuration values for those caller-installed libraries.

CLI

litportnet-free-proxies \
  --protocol socks5 --country us --max-latency-ms 500 \
  --min-uptime7d 90 --min-checks7d 50 --limit 20 --format json

Filters are --source api|github, --protocol http|socks4|socks5, --country, --anonymity, --https true|false, --max-latency-ms, --min-uptime7d, --min-checks7d, --checked-within-min, and --limit. Choose --format txt for one protocol://ip:port value per line, json for normalized records, or csv for records with a header row.

The command exits with 0 when it writes matching records, 2 when no records match, and 1 for invalid options, validation failures, or snapshot request errors. Errors go to stderr.

Sources and freshness

The default source is the Litport API snapshot:

https://litport.net/api/free-proxy/snapshot?checkedWithinMin=1440

Pass source="github" to Client(...), or --source github to the CLI, to read the optional free-proxy-list dataset instead. The API source validates that its generatedAt timestamp is no more than two minutes old and no more than five seconds in the future. Both sources apply a local last_checked freshness filter on every call; it defaults to 30 minutes and accepts 1 through 1,440 minutes. Records with fewer than 50 checks in seven days report no seven-day uptime value.

Responses are cached in memory, revalidated with ETags, and retained for at most 60 seconds. The client does not retry failed snapshot requests or return stale data after a failure.

See the API documentation, data repository, and source repository.

Metadata

Release files for litportnet-free-proxy-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for litportnet-free-proxy-sdk 0.1.0
File Size Uploaded
litportnet_free_proxy_sdk-0.1.0.tar.gz 9.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for litportnet-free-proxy-sdk 0.1.0
File Interpreter ABI Platform
litportnet_free_proxy_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.2 kB

Release files / litportnet_free_proxy_sdk-0.1.0.tar.gz

Download URL litportnet_free_proxy_sdk-0.1.0.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
11ffd313dc7346dac181d271e11b7ffde045ffebdda06d08e260cbb11fe0981a
BLAKE2b-256 checksum
How to use checksums
6aa37b242b039cecc7ee3c43a38af0a4e6b8f8d4cd28bd5741e5d3eaa29bd78a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.

Transparency log

Release files / litportnet_free_proxy_sdk-0.1.0-py3-none-any.whl

Download URL litportnet_free_proxy_sdk-0.1.0-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38da0cca6c3423328f56d0ee68c3d2026e68bfdaed2bc197ffc6f9e301c126d5
BLAKE2b-256 checksum
How to use checksums
77f200895955170fa93ee4b29c6cca671b70a4ab18e6d89fb84e1ae9b0985956
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.2

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page