{"id":20020883,"url":"https://github.com/evensxia/localproxy","last_synced_at":"2026-05-09T12:34:58.989Z","repository":{"id":251190738,"uuid":"836670430","full_name":"EvensXia/localproxy","owner":"EvensXia","description":"a simple proxy init tool in python code running","archived":false,"fork":false,"pushed_at":"2024-08-09T06:20:48.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-29T09:10:46.792Z","etag":null,"topics":["proxy","tool"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EvensXia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-08-01T10:09:32.000Z","updated_at":"2024-08-16T09:21:12.000Z","dependencies_parsed_at":"2024-08-08T13:29:57.937Z","dependency_job_id":"6361ee16-3af6-44dc-9546-b054537b8510","html_url":"https://github.com/EvensXia/localproxy","commit_stats":null,"previous_names":["evensxia/localproxy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EvensXia/localproxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvensXia%2Flocalproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvensXia%2Flocalproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvensXia%2Flocalproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvensXia%2Flocalproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EvensXia","download_url":"https://codeload.github.com/EvensXia/localproxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvensXia%2Flocalproxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32819553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["proxy","tool"],"created_at":"2024-11-13T08:34:37.301Z","updated_at":"2026-05-09T12:34:58.964Z","avatar_url":"https://github.com/EvensXia.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LocalProxy\n\n![Pipeline Status](https://gitlab.evensxia.com/EvensXia/localproxy/badges/main/pipeline.svg)\n\nLocalProxy is a Python command-line tool for managing and applying proxy configurations. It allows you to set, list, and clear proxy settings, which are stored in a configuration file and can be easily applied to your environment.\n\n## Features\n\n- Set HTTP and HTTPS proxy configurations\n- List existing proxy configurations\n- Clear all proxy configurations\n- Apply proxy settings to the environment in other projects\n\n## Installation\n\n### from pypi\n```bash\npip3 install pylocalproxy\n```\n\n### Prerequisites\n\n- Python 3.8 or higher\n- Poetry for package management\n\n### Steps\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/EvensXia/localproxy.git\ncd localproxy\n```\n\n2. Install the project using Poetry:\n\n\n```bash\npoetry install\n```\n\n3. Build the project:\n\n```bash\npoetry build\n```\n\n4. Install the built wheel file:\n\n\n```bash\npip install dist/localproxy-0.1.0-py3-none-any.whl\n```\n\n## Usage\n### Command-Line Interface\n\n- List existing proxy configurations:\n```bash\nlocalproxy list\n```\n\n- Set a proxy configuration:\n```bash\nlocalproxy set \u003cprotocol\u003e \u003caddress\u003e\n```\nExample:\n```bash\nlocalproxy set http http://localhost:8080\n```\n\n\n- Clear all proxy configurations:\n```bash\nlocalproxy clear\n```\n\n- Run scripts/code/modules:\n```bash\nlocalproxy /path/to/your/script.py\nlocalproxy -c \"import requests;print(requests.get('https://www.google.com'))\"\nlocalproxy -m your.module\n```\n\n\n- Print CLI help:\n```bash\nlocalproxy -h\n```\n\n### Using the Proxy in Other Projects\n\n\nIn your other Python projects, you can import and apply the proxy settings as follows:\n\n```python\nfrom localproxy import proxy\n\nproxy.init()\n\n```\nThis will apply the proxy settings stored in ~/.localproxy/proxy.toml to your environment variables.\n\n### Configuration\nProxy configurations are stored in a TOML file located at ~/.localproxy/proxy.toml. This file is managed automatically by the CLI commands.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevensxia%2Flocalproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevensxia%2Flocalproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevensxia%2Flocalproxy/lists"}