{"id":22558418,"url":"https://github.com/redbrick/good_stv","last_synced_at":"2025-04-10T06:33:08.778Z","repository":{"id":27135789,"uuid":"109741159","full_name":"redbrick/good_stv","owner":"redbrick","description":"A good single transferable vote utility.","archived":false,"fork":false,"pushed_at":"2023-06-14T16:08:07.000Z","size":238,"stargazers_count":4,"open_issues_count":5,"forks_count":2,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-04-14T02:29:31.179Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redbrick.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE-OF-CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-06T19:39:24.000Z","updated_at":"2021-08-22T03:59:30.000Z","dependencies_parsed_at":"2024-12-07T20:14:44.746Z","dependency_job_id":"7e2993a3-76b7-450a-af86-2cb72371d543","html_url":"https://github.com/redbrick/good_stv","commit_stats":{"total_commits":38,"total_committers":8,"mean_commits":4.75,"dds":0.4473684210526315,"last_synced_commit":"78d96e995e700d1b7d6da32e2e6c865d779d5726"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redbrick%2Fgood_stv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redbrick%2Fgood_stv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redbrick%2Fgood_stv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redbrick%2Fgood_stv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redbrick","download_url":"https://codeload.github.com/redbrick/good_stv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248168621,"owners_count":21058873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-07T20:14:39.233Z","updated_at":"2025-04-10T06:33:08.731Z","avatar_url":"https://github.com/redbrick.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# good_stv\n\nA tool for evaluating elections using\n[Single Transferable Vote](https://en.wikipedia.org/wiki/Single_transferable_vote).\n\n[![Build Status](https://travis-ci.org/redbrick/good_stv.svg?branch=master)](https://travis-ci.org/redbrick/good_stv)\n\n## Usage\n\ngood_stv expects to receive CSV-formatted data, either on stdin or a file. The\nonly required argument is a positive integer representing the number of seats to\nfill in the election. Example invocations are:\n\n```sh\n$ good_stv -f test.csv 3\n```\n\n```sh\n$ good_stv 3 \u003c test.csv\n```\n\n### CSV format\n\nThe input data is expected to be in the following format:\n\nOne (1) header line, with a list of candidates to be elected, in any order. This\nis followed by any number of body lines, each containing a list of candidates,\nin order of preference from highest to lowest, left to right, representing a\nsingle vote. Any candidates listed in the body who are not also in the header\nwill be ignored. Each vote does not need to include every candidate, although\nvotes listing zero (0) candidates will be ignored.\n\n#### Example\n\n```csv\nalice,bob,charlie\nalice,bob\nbob,charlie,alice\nbob\n```\n\n### Web App\n\n**Still under development**\n\nTo run the web app you first need to build it with yarn.\n\n```shell\nyarn\nyarn build\n```\n\nThen run `cargo run -- --server` to start the server on `localhost:8000`\n\n## License\n\n```text\ngood_stv - a good single transferable vote utility.\nCopyright (C) 2017 Terry Bolt\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredbrick%2Fgood_stv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredbrick%2Fgood_stv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredbrick%2Fgood_stv/lists"}