Skip to main content

Mariner

PyPI version coverage Downloads licence

Mariner searches torrent trackers from your terminal. It queries several trackers at once and lists the results in one table. You can then download a .torrent file, copy a magnet link or open a torrent in your torrent client, all without the ads and pop-ups of tracker websites.

Run mariner to open the interactive TUI, or use mariner torrent … from scripts and the shell. Both use the same configuration and trackers. Trackers are described by Jackett YAML definitions, so adding one needs no code.

Searching, copying and downloading in the Mariner TUI

Features

  • TUI and CLI. A full-screen Textual interface for browsing, and scriptable subcommands for everything else. See usage.
  • Many trackers at once. Searches run concurrently, and the results are merged and sorted by seeders or by upload date.
  • Jackett-compatible trackers. Eleven trackers ship with Mariner, and mariner tracker add installs any other public Jackett definition. See managing trackers.
  • Act on results. Download .torrent files, copy magnet links to the clipboard, open torrents in your default client, or show the details of a result.
  • Cached results. Responses are cached, and result IDs from the last search stay valid between commands.

Shipped trackers: AniRena, Internet Archive, LimeTorrents, LinuxTracker, Magnet Cat, Nyaa.si, The Pirate Bay, TheRARBG, Tokyo Toshokan, Torrent Downloads and YTS.

Installation

Mariner requires Python 3.11.5 or newer and runs on Linux.

With uv.

uv tool install mariner

With pip.

pip install mariner

Usage

Quick start

TUI. Run mariner with no arguments (or mariner tui).

mariner
  • Type a query in the Search pane and press Enter.
  • Select a result and press d to download it, c to copy its magnet link, o to open it or s to show its details.
  • In the Trackers pane, press Space to choose which trackers to search, and a, u or d to add, update or delete one.
  • Press e in the Config pane to edit a setting, and q to quit.

CLI. Search, then act on results by their ID.

mariner torrent search debian -t linuxtracker -t internetarchive
mariner torrent show 1            # seeders, leechers, size, upload date, links
mariner torrent download 1 2      # saves .torrent files to ~/Downloads
mariner torrent copy 3            # copies the magnet link to the clipboard
mariner torrent open 3            # opens it in your torrent client
  • torrent search searches the configured trackers. -t picks trackers, -a searches all of them, -n sorts by newest and -l limits the number of results.
  • tracker list | show | add | update | remove manages trackers.
  • config show | get | set reads and changes settings.

Run mariner <command> --help for flags.

Configuration

Settings live in config.toml in your platform's config directory (~/.config/mariner/ on Linux). Set them from the CLI or the TUI:

mariner config set torrent.search.tracker linuxtracker,nyaasi
mariner config set torrent.download.path ~/torrents

See configuration for every key.

Disclaimer

I do not encourage anyone to act in conflict with their local laws and I do not endorse any illegal activity. Some content in the search results provided by Mariner might be illegal in your country and it is up to you to check your local laws before using it. Neither I, nor Mariner can be held liable for any action taken against you as the result of using it.

Development

See CONTRIBUTING.md for the workflow, commit style and merge request process.

Acknowledgements

Mariner is built on these open-source projects:

License

Mariner is licensed under the GNU General Public License v3.0.

Metadata

Release files for mariner 2.0.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 mariner 2.0.0
File Size Uploaded Provenance Actions
mariner-2.0.0.tar.gz 93.5 kB Without provenance Details for mariner-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mariner 2.0.0
File Interpreter ABI Platform Actions
mariner-2.0.0-py3-none-any.whl Python 3 none any Details for mariner-2.0.0-py3-none-any.whl

Total release size: 201.4 kB

Release files / mariner-2.0.0.tar.gz

Download URL mariner-2.0.0.tar.gz
Size 93.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b125540a00d3f5430f5d22281b3243e5a049f68595fd0640bdd7f8f60499149a
BLAKE2b-256 checksum
How to use checksums
f67f3bb6079ebbd9f53c73cb2df8ecb4bc1ea4579f22ea3152c2745e825499d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / mariner-2.0.0-py3-none-any.whl

Download URL mariner-2.0.0-py3-none-any.whl
Size 107.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f169118128852093a8a1901a0c2940934da23c68c38f026cd56a3d6e1f5a821
BLAKE2b-256 checksum
How to use checksums
a89f71c4e5b6924fde195516dfcc4647ccf776d9b697f0c05c7c62ff9695f9ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for mariner 2.0.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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