Package: lib-work-login
lib_work_login_This package is a very simple one I wrote in a half hour, so lower your expectations.All this package does is run a set of commands to log you into work through a terminal.This is because I have to go through several ssh gateways, move dirs, activiate tmux, type my password, and sometimes I need multiple terminals going. So this is a way to make it much faster.lib_work_loginDescriptionUsagePossible Future ImprovementsInstallationTestingDevelopment/ContributingHistoryCreditsLicenceTodo and Possible Future ImprovementsFAQPackage Descriptionlib_work_loginThis package is a really simple one I wrote, it just runs a set of commands to log you into work through a terminal. If you have not configured it yet, it will write to a config file for you the set of commands you typically run to log into work. Then it will type this config file, and log you into work.Usagelib_work_loginIn a Script - purely for developmentYou really shouldn't ever need this, but whatevs.Also note that you don't ever need to run the configure function.
Login will run that function for you.fromlib_work_loginimportWork_Login# default conf path is "~/.work_login.conf and does not need changingwork_login_instance=Work_Login(conf_path="/my_conf_path")work_login_instance.configure()# configures script, not neseccarywork_login_instance.login()# logs you inFrom the Command LineNOTE: Even better, configure a custom keyboard shortcut! I use control alt l.run in a terminal:loginIf you need to reconfigure (run in a terminal)configureInstallationlib_work_loginInstall the package with:pip3 install lib_work_loginTo install from source and develop:git clone https://github.com/jfuruness/lib_work_login.git
cd lib_work_login
pip3 install wheel --upgrade
pip3 install -r requirements.txt --upgrade
python3 setup.py sdist bdist_wheel
python3 setup.py developSystem Requirementslib_work_loginMust have linux. You can prob change easily to support other OSes, but not currently supportedTestinglib_work_loginRun tests on install by doing:pip3 install lib_off_campus_housing_parser --force --install-option testThis will install the package, force the command line arguments to be installed, and run the tests
NOTE: You might need sudo to install command line arguments when doing thisYou can test the package if in development by moving/cd into the directory where setup.py is located and running:python3 setup.py testTo test a specific submodule, cd into that submodule and run:pytestNote: I currently have not written any tests, since I have tried the program and checked it's output by hand so I know that it works. I know that this is not sufficient, but no one is going to use this thing but me so whatevs.Development/Contributinglib_work_loginFork it!Create your feature branch:git checkout -b my-new-featureCommit your changes:git commit -am 'Add some feature'Push to the branch:git push origin my-new-featureSubmit a pull requestEmail me atjfuruness@gmail.combecause I do not check those messages oftenHistorylib_work_login0.1.4 - New code0.1.3 - Changes for video0.1.1 - Forgot to recreate egg stuff, pushing to pypi again0.1.0 - Initial commitCreditslib_work_loginhttps://stackoverflow.com/a/38493278/8903959Licenselib_work_loginBSD LicenseTODO/Possible Future Improvementslib_work_loginActual testingCross platform compatibilityFAQlib_work_loginQ: Did you just write this to procrastinate logging into work?A: Yes