Metadata-Version: 2.4
Name: jonepace
Version: 2.1.0
Summary: Download the full One Pace library and official Jellyfin metadata set
Project-URL: Repository, https://github.com/PierreLapolla/onepace
Author-email: PierreLapolla <pro@pierrelapolla.com>
License: MIT License
        
        Copyright (c) [2025] [Pierre LAPOLLA]
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: anime,jellyfin,media-server,metadata,one-pace,torrent
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Multimedia :: Video
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Requires-Python: >=3.13
Requires-Dist: libtorrent>=2.0.11
Requires-Dist: pedros>=0.12.3
Requires-Dist: polars>=1.30.0
Requires-Dist: requests>=2.33.1
Requires-Dist: rich>=15.0.0
Description-Content-Type: text/markdown

# Jonepace

Jonepace downloads the full [One Pace](https://onepace.net/en) library for use in Jellyfin.

## Warning

`jonepace` downloads the full One Pace library.

Before running it, make sure you have at least **300 GB** of free disk space available.

## Requirements

Make sure `uv` is installed and available in your terminal, see [Installing uv](https://docs.astral.sh/uv/getting-started/installation/)

## Run

Use the following command to start the download:

```bash
uvx jonepace
```

When running from a local checkout during development, use:

```bash
uv run jonepace
```

## Arguments

`jonepace` supports the following CLI arguments:

| Argument | Description |
| --- | --- |
| `--destination PATH` | Directory where torrents will be downloaded. Default: current working directory. |
| `--download-rate-limit RATE` | Cap aggregate download bandwidth. Accepts `B`, `KB`, `MB`, or `GB` suffixes such as `500KB`, `20MB`, or `1.5GB`. Use `0` for unlimited. Default: `0`. |
| `--maintainance` | Run CSV maintenance tasks instead of downloading the library. |

## Examples

Download into a specific media folder:

```bash
uvx jonepace --destination "/srv/media/One Pace"
```

Limit total download bandwidth to 20 MB/s:

```bash
uvx jonepace --download-rate-limit 20MB
```

Use both options together:

```bash
uvx jonepace --destination "/srv/media/One Pace" --download-rate-limit 8MB
```

## Contributing

Contributions are welcome, especially updates to the torrent list.

If you want to add or fix releases:

1. Fork the repository.
2. Update [releases.csv](releases.csv).
3. Leave the `size` and `file_hashes` columns empty for new or changed rows.
4. Run:

```bash
uv run -m jonepace --maintainance
```

This validates the magnet links and fills the missing `size` and `file_hashes` values.

5. Commit the updated `releases.csv` and open a pull request.
