Git Product home page Git Product logo

packet's Introduction

CSH Web Packet

Python 3.6 Build Status

Web Packet is used by CSH to facilitate the evaluations of our members and keep track of packet signatures on the web

Authorization

Authentication happens via pyOIDC with CSH SSO, authenticating as the user who is viewing the page. We have two different realms, and the site changes depending which realm is in use.

The server uses heavy caching via lru_cache to speed up the results as much as possible

Setup

For local development setup follow these steps:

  1. pip install -r requirements.txt
  2. Create config.py or set environment variables
    • Several of these variables require keys and information, please reach out to an RTP for testing information
  3. Run wsgi.py

Commands

The flask CLI provides all the methods needed to setup a packet and a packet season

  create-packets  Creates a new packet season for each of the freshmen in the given CSV.
  create-secret   Generates a securely random token.
  db              Perform database migrations.
  ldap-sync       Updates the upper and misc sigs in the DB to match ldap.
  sync-freshmen   Updates the freshmen entries in the DB to match the given CSV.
  fetch-results   Fetches and prints the results from a given packet season.

Code Standards

Use Pylint to ensure your code follows standards. Commits will be pylinted by Travis CI, if your build fails you must fix whatever it tells you is wrong before it will be merged.

To check locally, run pylint packet

packet's People

Contributors

devinmatte avatar zedoax avatar joeleager avatar mbillow avatar liam-middlebrook avatar mxmeinhold avatar squablyscientist avatar henrylb avatar stevenmirabito avatar willnilges avatar

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.