Skip to main content

no-proxy

Standalone no_proxy/NO_PROXY parser and evaluator.

Usage

from no_proxy import bypass # More specific functions and types available
from urllib.parse import urlparse

bypass(no_proxy="*", host="example.com") # True
bypass("127.0.0.0/8,::1", "127.0.0.1") # True

my_host = urlparse("//example.com:5000/path?x=y").hostname # example.com
bypass("www.example.com,example.org", my_host) # False

Specification

A no-proxy string is either * or a comma-separated list of no-proxy entries. An IP-address or hostname matches a no-proxy string if the string is * or if any of its entries matches.

A no-proxy entry is either

  • an IP-address, which matches itself,
  • an IP-range, which matches included IP-addresses,
  • a domain with leading ., which matches all of its subdomains, or
  • a hostname, which matches itself.

Hostnames are not validated and there is no special handling of whitespace, trailing dots, ports, etc.

Metadata

Release files for no-proxy 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 no-proxy 0.1.0
File Size Uploaded Provenance
no_proxy-0.1.0.tar.gz 3.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for no-proxy 0.1.0
File Interpreter ABI Platform
no_proxy-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / no_proxy-0.1.0.tar.gz

Download URL no_proxy-0.1.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d94942fa1ee1f34b8aca5154881c501b9c9a811de19ba828856b7a752410aaef
BLAKE2b-256 checksum
How to use checksums
ae7d998ec7f0a9aee9d3290edcb586c0173328f80e789f1e797161db68f1b0d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Jun 9, 2025.

Transparency log

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

Download URL no_proxy-0.1.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88ed5800661b117f27f7d728be0e66fc9066b01a9a0126d088a58f54c86aaa9a
BLAKE2b-256 checksum
How to use checksums
5781fb1df3c72fcb7924044232651a628ba994cc7aee7350f65c5a631b0d4bb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Jun 9, 2025.

Transparency log

Security for no-proxy 0.1.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for no_proxy-0.1.0.tar.gz

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 Jun 9, 2025.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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