Skip to main content

Project Logo

The Lupaxa Developers Toolbox
Part of The Lupaxa Project


lupaxa-real-url

Follow HTTP redirects and report the URL that actually serves the page. The hop list is kept from the URL you started with through to the last response.

Built for scripts and tools used by The Lupaxa Project.

The PyPI name is lupaxa-real-url. The import path is lupaxa.real_url. The CLI is installed as real-url.

Features

  • Follows HTTP 3xx redirects, including relative Location values
  • Default return is the final URL that served the page
  • full=True / --full returns every URL in the chain
  • status=True / --status returns each hop with its HTTP status code
  • Detects redirect loops and stops after a hop limit
  • Fails with typed errors for bad URLs and network problems
  • Thin CLI plus a small library API

Installation

From PyPI

pip install lupaxa-real-url

From source (development mode)

pip install -e ".[dev]"

Requires Python 3.10+ and httpx. lupaxa is a namespace package — there is no lupaxa/__init__.py.

Usage

from lupaxa.real_url import resolve

resolve("https://example.com")
resolve("https://example.com", full=True)
resolve("https://example.com", status=True)
real-url https://example.com
real-url --full https://example.com
real-url --status https://example.com
real-url --full --status https://example.com
real-url --version
real-url --help

Default output is one final URL. --full prints one URL per hop. --status prints STATUS URL for each hop.

Development

make init
make python-install-dev
make python-check
make mkdocs-serve

Documentation lives in mkdocs/.

The Lupaxa Project Footer

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lupaxa_real_url-0.1.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

lupaxa_real_url-0.1.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file lupaxa_real_url-0.1.0.tar.gz.

File metadata

  • Download URL: lupaxa_real_url-0.1.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for lupaxa_real_url-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8d58a9321b94721fbf25c2af0bc45a45abb157db5c0e245bcb97997ebd26be4d
MD5 564f74d79a36f97e74e2a86572a56766
BLAKE2b-256 535e380f0000421cde32e6c05f3a8455e72ecfd48e0aa0f021d3bfb3121c4d45

See more details on using hashes here.

Provenance

The following attestation bundles were made for lupaxa_real_url-0.1.0.tar.gz:

Publisher: generate-release.yml on lupaxa-developers-toolbox/real-url

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

File details

Details for the file lupaxa_real_url-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lupaxa_real_url-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d6f244c436e51a5c0d7fd6ef9489f24a426df7f71ff516f0b1ed381b38e020e
MD5 73bb654caafaf1abe9e83a91cfdeddf3
BLAKE2b-256 d15d7db1132545426fc9d8fa50d2bbc227fc257ca7e25f9138e8bcc89f86b561

See more details on using hashes here.

Provenance

The following attestation bundles were made for lupaxa_real_url-0.1.0-py3-none-any.whl:

Publisher: generate-release.yml on lupaxa-developers-toolbox/real-url

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 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