Pyackett
A Python clean room implementation of a Torznab-compatible indexer proxy. Works as a standalone server (Sonarr/Radarr compatible) and as an importable Python library.
Loads Jackett's 550+ YAML indexer definitions directly. Includes browser-grade TLS fingerprinting and automatic Cloudflare Turnstile bypass.
Install
pip install pyackett
# With Cloudflare challenge support (adds Camoufox browser):
pip install pyackett[cloudflare]
Quick Start
As a server
# Download definitions from Jackett GitHub and start the server
pyackett --from-github jackett --port 9117
# With a SOCKS5 proxy
pyackett --from-github jackett --proxy socks5://user:pass@host:1080
# With local definitions
pyackett -d /path/to/definitions
Then point Sonarr/Radarr at http://localhost:9117/api/v2.0/indexers/{id}/results/torznab/ with the API key shown in the web UI.
As a Python library
import asyncio
from pyackett import Pyackett
async def main():
pk = Pyackett(proxy="socks5://user:pass@host:1080")
pk.load_definitions_from_github(source="jackett")
await pk.configure_indexer("1337x", {})
await pk.configure_indexer("therarbg", {})
results = await pk.search("breaking bad", categories=[5000])
for r in results:
print(f"{r.title} | S:{r.seeders} | {r.size}")
await pk.close()
asyncio.run(main())
# Per-indexer status and a latency cap: tell "nothing found" from
# "rate limited / blocked / timed out", and don't wait on the slowest site
report = await pk.search_detailed("breaking bad", categories=[5000], deadline=10)
for status in report.statuses.values():
print(status.indexer_id, status.status, status.summary()) # e.g. "therarbg rate_limited (HTTP 429)"
# status.retry_after holds seconds from a Retry-After header, if any
results = report.results
# Native API indexers (not expressible as YAML definitions), configured like any other:
# "knaben" — Knaben meta-search API (JSON POST; aggregates many public trackers)
# "eztv-api" — EZTV JSON API, TV by IMDb ID (TorznabQuery.imdb_id); free-text queries report "empty"
await pk.configure_indexer("knaben", {})
# Long-running processes: hot-reload definitions when upstream changes
# (call periodically; the GitHub check itself runs at most every 12h)
await pk.refresh_definitions()
# Synchronous wrapper for simple scripts
pk = Pyackett()
pk.load_definitions_from_github()
pk.configure_indexer("therarbg", {})
results = pk.search_sync("ubuntu")
Features
Torznab API
- Full Torznab XML API compatible with Sonarr, Radarr, Prowlarr, qBittorrent
- TorrentPotato JSON support
- Capabilities endpoint per indexer
- Multi-indexer search (
/indexers/all/results/torznab/)
Cardigann YAML Engine
- Loads all 550+ Jackett YAML indexer definitions
- Go-style template engine (
{{ if }},{{ range }},{{ eq }}, etc.) - CSS selector extraction (BeautifulSoup) and JSONPath
- 25+ filter functions (replace, dateparse, fuzzytime, regexp, etc.)
- 6 login methods (form, cookie, header/API key, GET, POST, captcha)
HTTP Client
- curl_cffi with Chrome/Firefox TLS fingerprint impersonation
- Built-in SOCKS5/SOCKS4/HTTP proxy support
- Request delay per indexer definition
- Automatic Cloudflare detection and bypass
Cloudflare Bypass (optional)
- Automatic detection of Cloudflare 403/503 challenges
- Camoufox (anti-detect Firefox) solves Turnstile challenges headlessly
- Local HTTP CONNECT proxy bridges SOCKS5 auth for browsers
- Firefox TLS fingerprint matching for cf_clearance cookie reuse
- Cookies cached per domain for the session
- Graceful fallback when Camoufox not installed (logs warning, skips CF sites)
Web UI
- Bootstrap 5 dashboard at
http://localhost:9117/ - Browse and filter all 550+ available indexers
- Dynamic configuration forms generated from YAML settings
- Manual search with results table
- Per-indexer Torznab URL copy, edit, test, delete
CLI Options
pyackett [OPTIONS]
--host HOST Bind address (default: 0.0.0.0)
-p, --port PORT Port (default: 9117)
--config-dir DIR Config/cache directory
-d, --definitions-dir DIR Local YAML definitions directory
--from-github {jackett,prowlarr}
Download definitions from GitHub
--branch BRANCH GitHub branch (default: master)
--update-definitions Force re-download definitions
--proxy URL Proxy (socks5://host:port, http://host:port)
--api-key KEY API key (auto-generated if not set)
--log-level {DEBUG,INFO,WARNING,ERROR}
Architecture
pyackett/
core/
models.py - ReleaseInfo, TorznabQuery, IndexerDefinition
manager.py - IndexerManager (load, configure, concurrent search)
http.py - curl_cffi client + Camoufox CF solver
cache.py - TTL result cache
categories.py - Torznab category mappings
definitions_fetcher.py - GitHub tarball downloader
engine/
cardigann.py - YAML definition interpreter
template.py - Go-style template engine
filters.py - 25+ data transformation filters
selectors.py - CSS + JSONPath extraction
api/
torznab.py - Torznab XML generation + query parsing
server/
app.py - FastAPI server + web UI
pyackett.py - Public library API
cli.py - CLI entry point
Development
git clone <repo>
cd pyackett
uv sync
uv run pytest tests/ -v
License
MIT
Metadata
Release files for pyackett 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyackett-0.5.0.tar.gz | 196.9 kB | With provenance | Details for pyackett-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyackett-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for pyackett-0.5.0-py3-none-any.whl |
Total release size: 270.2 kB
Release files / pyackett-0.5.0.tar.gz
| Download URL | pyackett-0.5.0.tar.gz |
|---|---|
| Size | 196.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d390d6bd5ee9efbba2c3f703e2b0ddbce881ed4cece72def957e82da38714c45
|
|
BLAKE2b-256 checksum How to use checksums |
09336a3161d3de089e0039a662758dea373b7c1a5369e8bd81030502668d0214
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 31, 2026.
Transparency logRelease files / pyackett-0.5.0-py3-none-any.whl
| Download URL | pyackett-0.5.0-py3-none-any.whl |
|---|---|
| Size | 73.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
60561fbd536a336be2afc353db64fd2f573b6398c2cef69a28c5926a1d5a9230
|
|
BLAKE2b-256 checksum How to use checksums |
4fa25ef9df5bef8d898eb632f367d2e5198af89c1107e9a9806ed2dc7ac6cfb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 31, 2026.
Transparency logSecurity for pyackett 0.5.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
Both files in this release have been uploaded with provenance metadata.
Attestation for pyackett-0.5.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 Oct 31, 2026.
Transparency logA 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.