Coder Social home page Coder Social logo

hknlib's Introduction

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

hknlib's People

Contributors

augie-eriksson avatar bri25yu avatar chevin-ken avatar dinganthony avatar hicatherine avatar jameslzhu avatar ochan1 avatar sidijju avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hknlib's Issues

Groups not cleared prior to add_users

Currently, the scripts have functionality to add users to their preferred groups, but we don't remove them from any previous groups. This causes some problems: let's say a current Act officer is elected for Prodev next semester. We currently have the functionality to automatically add them to the current-act@ group, but we don't automatically remove them from the current-prodev@ group.

Indrel email automation

Making "email" Python module within hknlib for use by Indrel and other committees.
Priority: automating Indrel's recruiting emails using the Gmail API (a lot of core functionality is already in the election scripts)

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.