Skip to content

krishpop/VOTE

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

261 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VOTE

Translation of Professor Slade's VOTE system from Lisp to Python

Requirements

  • Python 2.7
  • pymongo >= 3.2
  • MongoDB 3.0.7 (for Mac, just run 'brew install mongodb' in Terminal)

Running the code

  1. Open the Python 2 interpreter from the top level directory
  2. Run "from src.scripts.database import load_data"
  3. Run "load_data.load_data()"
  4. Run "from src.vote import vote"
  5. Run "vote.vote_all()" to see the outcome of all of the members voting on all bills
  6. Run "vote.vote('JORDAN', 'HR-4264')" to see what a specific member would vote on a specific bill.
  • John Smith ("SMITH")
  • Jane Jordan ("JORDAN")
  • John Doe ("DOE")

List of sample bills:

  • AMD
  • HR-4800
  • HR-4264
  • HR-777

Screenshots (examples)

screenshot 1

screenshot 2

About

Translation of Professor Slade's VOTE system from Lisp to Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%