{"id":24954264,"url":"https://github.com/crafterkolyan/localhost-throttle","last_synced_at":"2026-03-07T12:02:28.223Z","repository":{"id":274100788,"uuid":"921914845","full_name":"CrafterKolyan/localhost-throttle","owner":"CrafterKolyan","description":"Tool to throttle or redirect your network connections","archived":false,"fork":false,"pushed_at":"2025-03-09T11:31:29.000Z","size":99,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T20:13:32.993Z","etag":null,"topics":["linux","localhost","macos","macosx","network","python","redirect","redirection","throttle","throttling","unix","windows"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CrafterKolyan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-24T21:28:06.000Z","updated_at":"2025-03-09T11:31:32.000Z","dependencies_parsed_at":"2025-02-15T15:22:01.243Z","dependency_job_id":"7ab34729-e020-46a0-a239-6fa77a7e78f9","html_url":"https://github.com/CrafterKolyan/localhost-throttle","commit_stats":null,"previous_names":["crafterkolyan/localhost-throttle"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrafterKolyan%2Flocalhost-throttle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrafterKolyan%2Flocalhost-throttle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrafterKolyan%2Flocalhost-throttle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrafterKolyan%2Flocalhost-throttle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CrafterKolyan","download_url":"https://codeload.github.com/CrafterKolyan/localhost-throttle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246093187,"owners_count":20722402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["linux","localhost","macos","macosx","network","python","redirect","redirection","throttle","throttling","unix","windows"],"created_at":"2025-02-03T04:49:37.087Z","updated_at":"2026-03-07T12:02:28.179Z","avatar_url":"https://github.com/CrafterKolyan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Tests](https://github.com/CrafterKolyan/localhost-throttle/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/CrafterKolyan/localhost-throttle/actions/workflows/tests.yml)\n\n# localhost-throttle\nTool to throttle or redirect your network connections\n\n## Usage\n```\nlocalhost-throttle --server \u003cserver-address\u003e --new-server \u003cnew-server-address\u003e --protocols tcp,udp --bandwidth \u003cbandwidth\u003e\n```\n\nYou should think about `localhost-throttle` as a wrapper around your server.\u003cbr\u003e\n`server-address` means the original address on which the original server listens. Example: `localhost:8000`\u003cbr\u003e\n`new-server-address` means the address to which `localhost-throttle` server will be binded. Example: `0.0.0.0:8001`\u003cbr\u003e\n\n## Example:\n```\nlocalhost-throttle --server localhost:8000 --new-server 0.0.0.0:8001 --protocols tcp --bandwidth 100000\n```\n\n## Current features\n- Redirection of TCP/UDP traffic from one port to another\n- Basic TCP/UDP traffic bandwidth limitting (will be improved in the future)\n\n## Installing package\n```\npip install .\n```\n\n### Requirements\n- Python 3.10+\n- `setuptools\u003e=42`\n- `pip\u003e=19`\n- OS that supports threads\n\n## Development\n### Setting up environment\n```\npython -m venv .venv\n.venv\\Scripts\\activate.bat  (for Windows)\n.venv/Scripts/activate      (for Unix)\npip install -U setuptools\npython -m pip install -U pip\npip install -r requirements-dev.txt\n```\n\n### Enabling environment\n```\n.venv\\Scripts\\activate.bat  (for Windows)\n.venv/Scripts/activate      (for Unix)\n```\n\n\n### Running tests\n```\npytest test -n auto --capture=no\n```\nor\u003cbr\u003e\nIn VS Code: `Command Pallete` (Ctrl+Shift+P) -\u003e `Tasks: Run Task` -\u003e `Run tests`\n\n### Deactivating environment\n```\n.venv\\Scripts\\deactivate.bat\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrafterkolyan%2Flocalhost-throttle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrafterkolyan%2Flocalhost-throttle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrafterkolyan%2Flocalhost-throttle/lists"}