{"id":16168051,"url":"https://github.com/tervay/scripts","last_synced_at":"2025-07-08T23:41:01.536Z","repository":{"id":88671438,"uuid":"370852091","full_name":"tervay/scripts","owner":"tervay","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-11T16:16:42.000Z","size":16203,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-13T10:24:28.579Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tervay.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-25T23:24:14.000Z","updated_at":"2023-04-26T11:35:48.000Z","dependencies_parsed_at":"2024-04-11T17:44:11.011Z","dependency_job_id":null,"html_url":"https://github.com/tervay/scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tervay%2Fscripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tervay%2Fscripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tervay%2Fscripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tervay%2Fscripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tervay","download_url":"https://codeload.github.com/tervay/scripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601447,"owners_count":20964866,"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-10-10T03:10:24.079Z","updated_at":"2025-04-07T06:18:18.520Z","avatar_url":"https://github.com/tervay.png","language":"Python","readme":"### Setup\n\n```bash\n$ sudo apt-get install python3-dev graphviz libgraphviz-dev pkg-config\n$ pip install -r requirements.txt\n$ echo \"key = 'MyTBAkey'\" \u003e key.py\n$ python main.py tpa\n$ python main.py module fn args\n```\n\n`python main.py tpa` will run the cache layer / protobuf proxy.\n\n### Protos\n\n```bash\n$ python -m grpc_tools.protoc --python_betterproto_out=protos/ -I=protos/ protos/*.proto\n```\n\n### Event Sims\n\n```bash\n$ python main.py event_gen district_from_states \"NY,MA\" 2018\n$ python main.py event_gen fair_divisions out/districts/NY-MA-VT-CT-RI-NH-ME-PA-NJ-DE_2018_pts.txt 4\n$ python main.py event_gen create in.txt\n$ python main.py sim sim out/fake_events/2019nycmp/2019nycmp_fe.pb\n$ python main.py sim save_draft out/fake_events/2019nycmp/2019nycmp_fe.pb\n$ python main.py event_gen tba out/fake_events/2019nycmp/2019nycmp_fe.pb\n```\nor\n```bash\n$ python main.py event_gen district_from_all 2019\n$ python main.py event_gen create_and_sim_district out/districts/all_2019_pts.txt 8\n```\n\n\n### Formatting\n\n```bash\n$ isort --skip venv/ .; black --exclude venv .\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftervay%2Fscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftervay%2Fscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftervay%2Fscripts/lists"}