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
Locationvalues - Default return is the final URL that served the page
full=True/--fullreturns every URL in the chainstatus=True/--statusreturns 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/.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d58a9321b94721fbf25c2af0bc45a45abb157db5c0e245bcb97997ebd26be4d
|
|
| MD5 |
564f74d79a36f97e74e2a86572a56766
|
|
| BLAKE2b-256 |
535e380f0000421cde32e6c05f3a8455e72ecfd48e0aa0f021d3bfb3121c4d45
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lupaxa_real_url-0.1.0.tar.gz -
Subject digest:
8d58a9321b94721fbf25c2af0bc45a45abb157db5c0e245bcb97997ebd26be4d - Sigstore transparency entry: 2598853510
- Sigstore integration time:
-
Permalink:
lupaxa-developers-toolbox/real-url@84bed80685d89de35586823d7473921262e1b1d0 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/lupaxa-developers-toolbox
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
generate-release.yml@84bed80685d89de35586823d7473921262e1b1d0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file lupaxa_real_url-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lupaxa_real_url-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d6f244c436e51a5c0d7fd6ef9489f24a426df7f71ff516f0b1ed381b38e020e
|
|
| MD5 |
73bb654caafaf1abe9e83a91cfdeddf3
|
|
| BLAKE2b-256 |
d15d7db1132545426fc9d8fa50d2bbc227fc257ca7e25f9138e8bcc89f86b561
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lupaxa_real_url-0.1.0-py3-none-any.whl -
Subject digest:
0d6f244c436e51a5c0d7fd6ef9489f24a426df7f71ff516f0b1ed381b38e020e - Sigstore transparency entry: 2598853602
- Sigstore integration time:
-
Permalink:
lupaxa-developers-toolbox/real-url@84bed80685d89de35586823d7473921262e1b1d0 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/lupaxa-developers-toolbox
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
generate-release.yml@84bed80685d89de35586823d7473921262e1b1d0 -
Trigger Event:
push
-
Statement type: