Skip to main content

illustration generated using perchance.org

sjoa

PyPI Python

sjoa is a powerful command-line tool designed to read metadata from torrent files or magnet URIs. It provides a simple and efficient way to extract information about torrents without the need to download the actual content.

The Sjoa is a river in Innlandet county, Norway and is one of the best whitewater rafting rivers in Europe renowned for its fast-moving, turbulent waters with Class II-V rapids depending on the water level.

Source: Wikipedia and OARS

The word sjoa was chosen as a play on words: the term "torrent" is often used to describe a fast-flowing stream or river, typically characterized by strong currents and rapid water movement.

Installation

sjoa is implemented in Python and can be installed using pip, the Python package manager. To install sjoa, simply run:

$ pip install sjoa

Usage

Once installed, you can use sjoa from the command line.

$ sjoa -t examples/debian-12.2.0-amd64-DVD-1.iso.torrent
 Name            debian-12.2.0-amd64-DVD-1.iso
 Hash            267d63ffd31770e467f8d985a86633f05502c10d
 Size            3.72 GiB
 Pieces          15237 of length 256 KiB (last piece 64.00 KiB)
 Creation        2023-10-07 12:03:00 by mktorrent 1.1
 Comment         "Debian CD from cdimage.debian.org"
 Private         False
 Tracker URL(s)  • http://bttracker.debian.org:6969/announce
 Webseed URL(s)  • https://cdimage.debian.org/cdimage/release/12.2.0/amd64/iso-dvd/debian-12.2.0-amd64-DVD-1.iso
                 • https://cdimage.debian.org/cdimage/archive/12.2.0/amd64/iso-dvd/debian-12.2.0-amd64-DVD-1.iso
 Files           ┌───────────────────────────────────────────────────────────────────────┬─────────────────────┐
                 │ • debian-12.2.0-amd64-DVD-1.iso                                       │ 3.72 GiB            │
                 └───────────────────────────────────────────────────────────────────────┴─────────────────────┘
$ sjoa -m "magnet:?xt=urn:btih:2c6b6858d61da9543d4231a71db4b1c9264b0685&dn=ubuntu-22.04-desktop-amd64.iso&tr=https%3A%2F%2Ftorrent.ubuntu.com%2Fannounce&tr=https%3A%2F%2Fipv6.torrent.ubuntu.com%2Fannounce"
 Name            ubuntu-22.04-desktop-amd64.iso
 Hash            2c6b6858d61da9543d4231a71db4b1c9264b0685
 Tracker URL(s)  • https://torrent.ubuntu.com/announce
                 • https://ipv6.torrent.ubuntu.com/announce

Use -j to output metadata as JSON (useful for scripting):

$ sjoa -t examples/debian-12.2.0-amd64-DVD-1.iso.torrent -j | jq '.hash'
"267d63ffd31770e467f8d985a86633f05502c10d"

Read from stdin with -:

$ cat examples/debian-12.2.0-amd64-DVD-1.iso.torrent | sjoa -t -

License

Copyright 2023-2026 Martin Simon

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Buy me a coffee?

If you feel like buying me a coffee (or a beer?), donations are welcome:

BTC : bc1qq04jnuqqavpccfptmddqjkg7cuspy3new4sxq9
DOGE: DRBkryyau5CMxpBzVmrBAjK6dVdMZSBsuS
ETH : 0x2238A11856428b72E80D70Be8666729497059d95
LTC : MQwXsBrArLRHQzwQZAjJPNrxGS1uNDDKX6

Metadata

Release files for sjoa 1.4.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 sjoa 1.4.0
File Size Uploaded Provenance
sjoa-1.4.0.tar.gz 16.5 kB With provenance Details

Built distribution (wheel)

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

Total release size: 29.2 kB

Release files / sjoa-1.4.0.tar.gz

Download URL sjoa-1.4.0.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f55bb5ccdd9875f2431ed98952eb8a532bae99500f58f951ee7738d5d70bdedb
BLAKE2b-256 checksum
How to use checksums
f4edaf779e8a0ce7e21e1bfdd426d1efd006ea69a5e4aa4952c3bc08a9c36060
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Apr 5, 2026.

Transparency log

Release files / sjoa-1.4.0-py3-none-any.whl

Download URL sjoa-1.4.0-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44e33217974ede9ce4a3667a29af59ef64d0b64b6dd783937a2ad47eca4c7fa1
BLAKE2b-256 checksum
How to use checksums
d2143f7f07daca3e3c81e0ad18ff775e885da54805e1300c4987e56f23766b84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Apr 5, 2026.

Transparency log

Security for sjoa 1.4.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 sjoa-1.4.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 Apr 5, 2026.

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.

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