Markdown
Pid-Net-Limiter is a lightweight Windows GUI tool designed to throttle network bandwidth for specific applications using their Process ID (PID), or apply a global bandwidth limitation to the entire system.
If you regularly download, scrape, or generate image packs or archive files (such as .cbz manga/comic files) from the web, you may often encounter corrupted files or missing pages.
When an application downloads too many files simultaneously at max speed, it can saturate connection pools or trigger anti-scraping rate limits on target web servers, causing dropped packets and incomplete archives.
Pid-Net-Limiter solves this by letting you throttle the transfer rate of specific background tools (an ideal solution for software like HakuNeko or image scrapers) to ensure smooth, error-free, and complete downloads without overloading web servers.
This application MUST be run as Administrator!
Pid-Net-Limiter usespydivert(backed by the kernel driverWinDivert.sys) to capture and throttle network packets at the OS level. Without elevated privileges, packet interception will fail.
- Open Task Manager (
Ctrl + Shift + Esc). - Click More details at the bottom left if prompted.
- Switch to the Details tab.
- Locate your process (e.g.,
chrome.exe,steam.exe,hakuneko.exe). - Read the number listed in the PID column.
Ensure Python 3.8+ is installed. Install required dependencies: powershell pip install pydivert psutil 2. Running the app Open your terminal (PowerShell or Command Prompt) as Administrator and run:
PowerShell python pid-net-limiter.pyw 3. GUI Guide Row 1 (ALL): Set to NO LIMIT by default. Define a global bandwidth limit in KB/s for all network traffic, or click No Limit to bypass global throttling.
Rows 2 to 10: Enter target PID and maximum speed Limit in KB/s (e.g., 5000 for 5 MB/s).
Click Clear on any row to wipe its inputs.
Click Start Throttling to activate restrictions.
📜 License Distributed under the GNU General Public License v3.0 (GPLv3).
Pid-Net-Limiter est un outil léger sous Windows doté d'une interface graphique (GUI) permettant de limiter la vitesse de téléchargement et d'envoi d'applications spécifiques à partir de leur identifiant de processus (PID), ou d'appliquer une restriction globale au système.
💡 Pourquoi cette application a été créée ? (Cas d'usage) Si vous téléchargez, récupérez ou générez régulièrement des packs d'images ou des archives (comme des fichiers .cbz pour les mangas/BDs) sur Internet, vous avez probablement déjà rencontré des fichiers corrompus ou des pages manquantes.
Lorsqu'une application télécharge à pleine vitesse avec de trop nombreuses connexions simultanées, elle risque de saturer les accès au serveur web cible ou de déclencher ses protections anti-scraping, ce qui entraîne des pertes de paquets et des archives incomplètes.
Pid-Net-Limiter apporte une solution idéale en vous permettant de brider le débit d'une application spécifique (parfait pour des logiciels comme HakuNeko ou des téléchargeurs d'images) afin de garantir des téléchargements stables, complets et sans erreur, tout en respectant les serveurs hôtes.
Pid-Net-Limiter utilise la bibliothèque pydivert (basée sur le pilote noyau WinDivert.sys) pour intercepter et lisser les paquets réseau au niveau de Windows. Sans privilèges administrateur, l'application ne pourra pas intercepter le réseau.
🔍 Comment trouver le PID d'une application sous Windows ? Ouvrez le Gestionnaire des tâches (Ctrl + Maj + Échap).
Si besoin, cliquez sur Plus de détails en bas à gauche.
Allez dans l'onglet Détails.
Cherchez votre application (ex: chrome.exe, steam.exe, hakuneko.exe).
Relevez le chiffre présent dans la colonne PID.
🚀 Installation et Utilisation
- Prérequis Python Assurez-vous d'avoir Python 3.8+ installé. Installez ensuite les dépendances :
PowerShell pip install pydivert psutil 2. Lancement Ouvrez votre terminal (PowerShell ou Invite de commandes) en tant qu'Administrateur et lancez :
PowerShell python pid-net-limiter.pyw 3. Utilisation de l'interface Ligne 1 (ALL) : Par défaut réglée sur NO LIMIT. Vous pouvez y définir une limite globale en Ko/s pour l'ensemble de la carte réseau, ou utiliser le bouton No Limit pour ne pas brider le système.
Lignes 2 à 10 : Entrez le PID cible et la limite en Ko/s (ex: 5000 pour 5 Mo/s).
Utilisez le bouton Clear à côté d'une ligne pour effacer sa saisie.
Cliquez sur Start Throttling pour activer le bridage.
📜 Licence Ce projet est sous licence GNU General Public License v3.0 (GPLv3).