qb-ptmap
Automatic port mapper for qBittorrent with ProtonVPN
Documentation work in progress
Prerequisites
- qBittorrent/qBittorrent-nox;
- Enabled qBittorrent webui;
- natpmpc (debian, arch);
- Wireguard or protonvpn installed.
Wireguard configuration
If you are using the proton vpn GUI you can skip this step.
Generate a Wireguard configuration for Linux and be sure to enable "NAT-PMP (Port Forwarding)".
Not mandatory but recommended
Install uv from the official source.
Installation
Install tool (recommended)
uv tool install qb-ptmap
From source
Clone the repository:
git clone https://github.com/SimoneFelici/qb-ptmap.git
Generate the environment:
cd qb-ptmap && uv sync
source .venv/bin/activate
Usage
Wireguard
Move your wireguard configuration in /etc/wireguard/
Start wireguard with your proton config:
sudo wg-quick up proton
If you installed the recommended way:
qb-ptmap
Else:
Enter the environment and run the script:
source .venv/bin/activate
uv run src/qb_ptmap/qb_ptmap.py
ProtonVPN GUI
Connect to a server with port forwarding.
If you installed the recommended way:
qb-ptmap
Else:
Enter the environment and run the script:
source .venv/bin/activate
Configuration
At the first run the tool will generate the configuration file at ~/.local/share/qb-ptmap/config.toml
You can then edit:
- Webui url;
- User;
- Password.
Metadata
Release files for qb-ptmap 1.0.2
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 |
|---|---|---|---|---|
| qb_ptmap-1.0.2.tar.gz | 2.8 kB | With provenance | Details for qb_ptmap-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qb_ptmap-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for qb_ptmap-1.0.2-py3-none-any.whl |
Total release size: 6.9 kB
Release files / qb_ptmap-1.0.2.tar.gz
| Download URL | qb_ptmap-1.0.2.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
442fe25e900196fd0abfae1f389708381bdca52ceabe40cc58b82f51c1749923
|
|
BLAKE2b-256 checksum How to use checksums |
bdc76ec228b329a155ab972f6889f2cf5025c3eb32e8c51bb163186e169fee30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 13, 2026.
Transparency logRelease files / qb_ptmap-1.0.2-py3-none-any.whl
| Download URL | qb_ptmap-1.0.2-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2783a94520f04ddfc2c84d124497dbea9db5cdf84fa4e96f8cb9a4bc456c3094
|
|
BLAKE2b-256 checksum How to use checksums |
02399aee6e26fa7ae535cb477a764453a8ae1fa2b4ca699c1c293ba9dbb1de99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 13, 2026.
Transparency logSecurity for qb-ptmap 1.0.2
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 qb_ptmap-1.0.2.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 Aug 13, 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.