macOS
brew install onion-locationlocal Homebrew formula metadata
brew
Discover advertised Onion-Location for given URLs. Version 0.1.0 via Homebrew; verified 2026-04-22.
install
brew install onion-locationlocal Homebrew formula metadata
overview
Discover advertised Onion-Location for given URLs
history
onion-location is a small Python utility/library for discovering Onion-Location HTTP headers, the non-standard Tor Browser mechanism that lets a clearnet HTTPS site advertise its corresponding .onion service. Its package-nerd interest is less about a large standalone ecosystem and more about turning a Tor Browser convention into a scriptable CLI/library primitive.
The package appeared on PyPI as onion-location 0.1.0 on August 2, 2024, authored by Frederik "Freso" S. Olesen and licensed AGPL-3.0-or-later. PyPI describes the project as a Python library for discovering Onion-Location HTTP headers and shows a minimal API that resolves torproject.org to its advertised onion URL.
Its adoption evidence is modest: PyPI hosts the Python package and Homebrew packages it as onion-location. The project sits downstream of Tor's Onion-Location deployment guidance rather than defining the browser feature itself.
Developers and operators can use onion-location to check whether a URL advertises an onion counterpart without manually inspecting response headers. That makes it useful for audits of onion-service discoverability, small monitoring scripts, or package-index style metadata enrichment.
For package nerds, onion-location is a good example of a tiny package wrapping one operational convention: one HTTP response header, one Tor-specific validation model, and a CLI/package-manager surface that makes the convention easy to probe from automation.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
onion-location | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://codeberg.org/Freso/python-onion-location
install metadata
| Package key | brew:onion-location |
|---|---|
| Version | 0.1.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/onion-location |
| Homepage | https://codeberg.org/Freso/python-onion-location |
| Repository | https://codeberg.org/Freso/python-onion-location |
| Upstream docs | https://codeberg.org/Freso/python-onion-location |
| License | AGPL-3.0-or-later |
| Source archive | https://files.pythonhosted.org/packages/72/0d/e2656bdb8c66dc590da40622ca843f0513cd6f4b78bb1f9b6ed4592d283e/onion_location-0.1.0.tar.gz |
| Last updated | 2026-04-22T11:40:33Z |
| Pulse | updated |
| Dependencies | python@3.14 |
| Uses from macOS | libxml2, libxslt |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | onion-location |
| Version Scheme | 0 |
| Revision | 2 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.