Package: votekit
VoteKitVoteKitia a Swiss army knife for computational social choice research.Helpful links:Source Repository|Documentation|Issues|MGGG.orgInstallationVotekit can be installed through any standard package management tool:pip install votekitorpoetry add votekitExampleA simple example of how to use VoteKit to load, clean, and run an election using realdatataken from the 2013 Minneapolis Mayoral election. For a more comprehensive walkthrough, see thedocumentation.fromvotekitimportload_csv,remove_noncandsfromvotekit.electionsimportSTV,fractional_transferminneapolis_profile=load_csv("mn_2013_cast_vote_record.csv")# clean downloaded file to remove edited aspects of the cast vote recordminneapolis_profile=remove_noncands(minneapolis_profile,["undervote","overvote","UWI"])minn_election=STV(profile=minneapolis_profile,transfer=fractional_transfer,seats=1)minn_election.run_election()Candidate     Status  Round
                BETSY HODGES    Elected     35
                 MARK ANDREW Eliminated     34
                 DON SAMUELS Eliminated     33
                  CAM WINTON Eliminated     32
          JACKIE CHERRYHOMES Eliminated     31
                    BOB FINE Eliminated     30
                   DAN COHEN Eliminated     29
          STEPHANIE WOODRUFF Eliminated     28
             MARK V ANDERSON Eliminated     27
                   DOUG MANN Eliminated     26
                  OLE SAVIOR Eliminated     25
               JAMES EVERETT Eliminated     24
           ALICIA K. BENNETT Eliminated     23
  ABDUL M RAHAMAN "THE ROCK" Eliminated     22
        CAPTAIN JACK SPARROW Eliminated     21
           CHRISTOPHER CLARK Eliminated     20
                   TONY LANE Eliminated     19
                JAYMIE KELLY Eliminated     18
                  MIKE GOULD Eliminated     17
             KURTIS W. HANNA Eliminated     16
 CHRISTOPHER ROBIN ZIMMERMAN Eliminated     15
         JEFFREY ALAN WAGNER Eliminated     14
                 NEAL BAXTER Eliminated     13
            TROY BENJEGERDES Eliminated     12
            GREGG A. IVERSON Eliminated     11
            MERRILL ANDERSON Eliminated     10
                  JOSHUA REA Eliminated      9
                   BILL KAHN Eliminated      8
         JOHN LESLIE HARTWIG Eliminated      7
      EDMUND BERNARD BRUYERE Eliminated      6
JAMES "JIMMY" L. STROUD, JR. Eliminated      5
            RAHN V. WORKCUFF Eliminated      4
       BOB "AGAIN" CARNEY JR Eliminated      3
                  CYD GORMAN Eliminated      2
         JOHN CHARLES WILSON Eliminated      1DevelopmentThis project is in active developmentin themggg/VoteKitGitHub repository, where bug reports and feature requests, as well as contributions, are welcome.VoteKit project requirespoetry, and Python >= 3.9. (This version chosen somewhat arbitrarily.)To get up and running, runpoetry installfrom within the project directory to install all dependencies. This will create a.venvdirectory that will contain dependencies. You can interact with this virtualenv by running your commands prefixed withpoetry run, or usepoetry shellto activate the virtualenv.Once you've runpoetry install, if you runpoetry run pre-commit installit will install code linting hooks that will run on every commit. This helps ensure code quality.To run tests runpoetry run pytestor./run_tests.sh(the latter will generate a coverage report).To release, runpoetry publish --build.