Skip to main content

Tool to monitor and restart Mac VPN.

Project description

Copyright (c) 2018 Ryan SHea

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Description: INSTALLATION
------------
1) Homebrew
a) Install Homebrew (if you don't have it)
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
b) Update Homebrew
brew update && brew upgrade
2) Install python3
brew install python
3) Install package
pip install macvpnhelper

Now you can just type "macvpnhelper" in the terminal.

Alternatively, you can run the script located in this package directly. It is located in the bin/ folder.
./macvpnhelper


USAGE
-----
macvpnhelper [-h] [--duration DURATION] [--clickspeed CLICKSPEED]
[--fillpassword FILLPASSWORD] [--simulate] [--reset]
[--vpn VPN]

optional arguments:
-h, --help show this help message and exit
--duration DURATION, -d DURATION
(time in hours|'wd'|'fd') E.g., 8h, the amount of time
(in hours) to keep the VPN active. Use 'wd' to do 9-12
and 1-6 (default), or 'fd' to do 9-6.
--clickspeed CLICKSPEED, -cs CLICKSPEED
(superfast|fast|normal|slow|superslow) adjust based on
responsiveness of your GUI
--fillpassword FILLPASSWORD, -fp FILLPASSWORD
(yes|no|andReturn) type in password and optionally hit
return in the dialogs. CAUTION: since this password is
provided to the GUI, it is possible that intermediate
clicks will result in your password being typed to,
e.g., chat dialogs. Prevent this by using 'yes'
instead of 'andReturn', or making sure the clickspeed
matches your GUI responsiveness.
--simulate, -s When set, script which would be executed is instead
printed to the terminal.
--reset Use to reset your login information.
--vpn VPN, -n VPN Name of VPN to connect to. Must match your configured
connection.

Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Topic :: Utilities
Classifier: Topic :: System :: Networking
Classifier: Natural Language :: English
Classifier: Development Status :: 4 - BetaIntended Audience :: End Users/Desktop
Classifier: Environment :: Console
Classifier: Environment :: MacOS X
Description-Content-Type: text/markdown

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

macvpnhelper-0.0.5.tar.gz (21.6 kB view hashes)

Uploaded Source

Built Distribution

macvpnhelper-0.0.5-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page