Skip to content

Account management and election scripts for HKN.

License

Notifications You must be signed in to change notification settings

compserv/hknlib

Repository files navigation

HKNlib

Scripts for running HKN automated account related operations.

Getting API credentials

The API key is available on lastpass as hknlib as a JSON file called hknlib.key. Place this file into secret/.

Recommended: Creating a Virtual Environment (venv)

If conda is not already available, install conda. If you're installing conda for the first time, we recommend Miniconda over Anaconda. If you want to keep your default version of python, run conda config --set auto_activate_base false.

conda create --name hknlib python=3.7
conda activate hknlib
pip install -r requirements.txt

Scripts

The two scripts new_members.py and new_officers.py should now work, using these credentials and the hknlib/election module. Use hknlib/config/settings.json to control which sheets they read off of.

There are various standalone scripts in the standalone_scripts folder that run by itself. See file comments for specific instructions. Currently, there is one for LastPass provisioning and one for the HKN Rails website automating the approval accounts process.

Relevant docs

About

Account management and election scripts for HKN.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages