Giter Club home page Giter Club logo

pyconfigwinproxy's Introduction

Description

A small program that enables and disables system wide Windows 10 proxy settings.
Gets a list of proxies using Free-proxy python module and then modifies the Windows registry:

HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings
ProxyEnable=1
ProxyServer=*server:port* that it got from Free-proxy module

Currently, set to US Elite proxy
Press Enter to switch proxy states when the program is running, typr q, press ctrl+c or close the program to stop it.

Run as exe

Just use .\dist\main.exe to run a 'compiled' version that does not require python installation.
Or download .exe from the latest release section: https://github.com/equillibrium/pyConfigWinProxy/releases/latest

Build exe

Use pyinstaller python module to build the .exe:

pyinstaller --onefile .\main.py -n SwitchProxy --icon=.\SwitchProxy.ico

Setup

If you want to run main.py: run powershell as admin and execute setup.ps1
It installs chocolatey repository, the latest python, lxml for Windows, Free-proxy pip module

Libxml for Win: https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

To Do

  • Automate lxml lib download based on python version
  • Create Timer for Proxy
  • Change Desktop Icon based on Proxy Status
  • (Needs more testing) Error catching setup.ps1 and main.py
  • Create basic UI: on, off, country select
  • Create country checklist
  • Compile as 1 exe file

pyconfigwinproxy's People

Contributors

equillibrium avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.