Skip to main content

Common Utilities

Project description

lib_vikas_test

This package runs 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, activate tmux, type my password, and sometimes I need multiple terminals going. So this is a way to make it much faster.

Package Description

This 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.

Usage

In a Script - purely for development

You 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.

from lib_vikas_test import Work_Login

# default conf path is "~/.work_login.conf and does not need changing
work_login_instance = Work_Login(conf_path="/my_conf_path")
work_login_instance.configure()  # configures script, not neseccary
work_login_instance.login()  # logs you in 

From the Command Line

NOTE: Even better, configure a custom keyboard shortcut! I use control alt l.

run in a terminal: login

If you need to reconfigure (run in a terminal) configure

Installation

Install the package with: pip3 install lib_vikas_test

To install from source and develop:

git clone https://github.com/jfuruness/lib_vikas_test.git
cd lib_vikas_test
pip3 install wheel --upgrade
pip3 install -r requirements.txt --upgrade
python3 setup.py sdist bdist_wheel
python3 setup.py develop

System Requirements

Must have linux. You can prob change easily to support other OSes, but not currently supported

Testing

Run tests on installation by doing: pip3 install lib_off_campus_housing_parser --force --install-option test This 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 this

You can test the package if in development by moving/cd into the directory where setup.py is located and running: python3 setup.py test

To test a specific submodule, cd into that submodule and run: pytest

Note: 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/Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request
  6. Email me at jfuruness@gmail.com because I do not check those messages often

History

  • lib_vikas_test
    • 0.1.1 - Forgot to recreate egg stuff, pushing to pypi again
    • 0.1.0 - Initial commit

Credits

https://stackoverflow.com/a/38493278/8903959

License

BSD License

TODO/Possible Future Improvements

FAQ

Q: Did you just write this to procrastinate logging into work?

A: Yes

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

testutilsvikas-0.0.3.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

TestUtilsVikas-0.0.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file testutilsvikas-0.0.3.tar.gz.

File metadata

  • Download URL: testutilsvikas-0.0.3.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for testutilsvikas-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3d623289af10e3e6c09a517ba27132d60a2fc6eed8972954847e47d1da8314e4
MD5 79e1d2c6d02bb2f441edffe7fe5af099
BLAKE2b-256 4396a65d4235f4fa5e7222cc206bfe8f78e0cc8a57a1a4c9fa0d05c3d9ebf9f5

See more details on using hashes here.

File details

Details for the file TestUtilsVikas-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: TestUtilsVikas-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for TestUtilsVikas-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bc1079a1ee17c0e15a3b28662705f8490025b514aca8f9752e122e159f7bcd18
MD5 c9c052a7de6f41cfabc540ea96503e5a
BLAKE2b-256 6a76722055cad524824dc82690889cb026513aeede4d6b3b389b77df8da994da

See more details on using hashes here.

Supported by

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