{"id":16722186,"url":"https://github.com/tkluck/pac4cli","last_synced_at":"2026-03-15T04:01:58.433Z","repository":{"id":69552603,"uuid":"91055874","full_name":"tkluck/pac4cli","owner":"tkluck","description":"Proxy-auto-discovery for command-line applications","archived":false,"fork":false,"pushed_at":"2020-08-08T02:32:38.000Z","size":237,"stargazers_count":25,"open_issues_count":13,"forks_count":9,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-01T10:02:25.560Z","etag":null,"topics":["commandline","networking","proxy"],"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/tkluck.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":"2017-05-12T05:48:36.000Z","updated_at":"2024-07-22T15:55:23.000Z","dependencies_parsed_at":"2023-04-14T01:30:56.147Z","dependency_job_id":null,"html_url":"https://github.com/tkluck/pac4cli","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkluck%2Fpac4cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkluck%2Fpac4cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkluck%2Fpac4cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkluck%2Fpac4cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkluck","download_url":"https://codeload.github.com/tkluck/pac4cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244160019,"owners_count":20408019,"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":["commandline","networking","proxy"],"created_at":"2024-10-12T22:33:57.530Z","updated_at":"2026-03-15T04:01:53.386Z","avatar_url":"https://github.com/tkluck.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Proxy-auto-discovery for command line applications (pac4cli)\n\n![CircleCI](https://img.shields.io/circleci/project/github/tkluck/pac4cli.svg)\n\n### Introduction\n\nOn many corporate networks, applications need\n[proxy-auto-discovery](https://en.wikipedia.org/wiki/Web_Proxy_Auto-Discovery_Protocol)\nto know whether a certain URL is accessed either directly or through a web\nproxy. Browsers can typically handle this, but many command line applications\n(git, npm, apt, curl) rely on environment variable to hard-code a proxy\nregardless of the destination URL.\n\nThis little daemon enables these applications for auto-discovery by:\n\n- setting the `http_proxy` variable (and friends) to http://localhost:3128\n- providing a simple proxy at that port that does proxy-auto-discovery and\n  connects accordingly.\n\nSystem dependencies:\n- systemd\n- NetworkManager\n\nPython library dependencies from PyPI can be installed through:\n\n    sudo pip3 install -r requirements.txt\n\n### Installation instructions\n\n#### Ubuntu\n\nThe latest builds are available through a PPA:\n\n    sudo add-apt-repository ppa:tkluck/pac4cli\n    sudo apt update\n    sudo apt install pac4cli\n\nYou'll need to restart your shell for the new environment variables to take effect.\n\nThis will install `pac4cli` for most of your command line tools. However, we\ndon't ship configuration for Apt. If you want to use `pac4cli` for software\nupdates, you'll need to run the following:\n\n    sudo tee /etc/apt/apt.conf.d/99pac4cli \u003c\u003cCONFIG\n    Acquire::http::proxy \"http://localhost:3128/\";\n    Acquire::https::proxy \"http://localhost:3128/\";\n    # The following are needed to work around limitations\n    # in pac4cli's support of http features:\n    Acquire::http::No-Cache true;\n    Acquire::http::Pipeline-Depth 0;\n    CONFIG\n\nThe reason why this is not included in the Ubuntu package is that if pac4cli ever\nbreaks, we could not ship an update to unbreak it.\n\n#### Archlinux\n\nThis package is available in AUR.\n\n#### Other (Mac, other linuxes)\n\nThe dependencies can be installed through\n\n    pip3 install -r requirements.txt\n\nThen, use\n\n    make install\n\n**Just `python setup.py install` is not sufficient.** That will only install\nthe pac4cli module, but not the binary or the configuration files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkluck%2Fpac4cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkluck%2Fpac4cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkluck%2Fpac4cli/lists"}