{"id":27389095,"url":"https://github.com/an-empty-string/car","last_synced_at":"2026-04-01T20:31:37.139Z","repository":{"id":185993485,"uuid":"673574231","full_name":"an-empty-string/car","owner":"an-empty-string","description":"car (canvassing action resource). bep bep (be engaged politically)","archived":false,"fork":false,"pushed_at":"2026-03-27T06:01:43.000Z","size":190,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-03-27T15:58:33.620Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/an-empty-string.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-08-02T00:25:31.000Z","updated_at":"2026-03-27T06:01:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4bb6e57-a9bc-4065-ba00-8865812f164e","html_url":"https://github.com/an-empty-string/car","commit_stats":null,"previous_names":["an-empty-string/canvass","an-empty-string/car"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/an-empty-string/car","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/an-empty-string%2Fcar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/an-empty-string%2Fcar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/an-empty-string%2Fcar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/an-empty-string%2Fcar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/an-empty-string","download_url":"https://codeload.github.com/an-empty-string/car/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/an-empty-string%2Fcar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31291665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-04-13T19:12:00.098Z","updated_at":"2026-04-01T20:31:37.135Z","avatar_url":"https://github.com/an-empty-string.png","language":"Python","readme":"# Importing voters\n\n* Update the VOTER_FILE and DATABASE_OUT parameters in import_voters.py (DATABASE_OUT should be a temporary file that you inspect before moving it to database.json).\n* Run the `python3 -m car.script.import_voters` script.\n  * Expects an Alabama Secretary of State-format voter file export.\n  * Writes a single turf containing all voters (other future scripts will create other turfs).\n* Restart the app service to pick up the new database.\n\nSome todos:\n* Title case voter and street names for display (not all caps)\n* Display age, not birthdate (we only get age from SOS)\n* Allow merging (not just overwriting) databases; this may be a separate script.\n\n# Geocoding doors\n\nOnce you have imported voters you will probably want to geocode their doors so you can cut turf.\n\nYou can use the `car.script.geocode_voters` script for this. It references the [geocode](https://github.com/an-empty-string/geocode) repository. Getting data sources for geocoding and defining a correct `CompositeGeocoder` is unfortunately left as an exercise for the reader.\n\n# Cutting turf\n\nUse the `car.script.export_geocoded_voters` script to create `geocoded_doors.geojson`. Open this file as a vector layer in QGIS.\n\nCreate a SpatiaLite layer called \"turfs\" with two fields: `name` (string) and `car_id` (int), with Polygon geometry. Draw turfs as you like.\n\nWhen you are done cutting turf, run `TURF_DATA_PATH=/path/to/your/layer_db.sqlite python3 -m car.script.update_voter_turfs` to match doors to turfs, and move the doors/voters into those turfs. You will need to restart the web app to see the results. Note that you don't have to cover _all_ voters with a turf; voters not in a turf will remain in the default \"All Voters\" turf.\n\nThe `update_voter_turfs` script also reorders doors in turfs. If you are in a grid city and are cutting griddy turfs, it will work basically perfectly. If you are not in a grid city, the lazy-TSP algorithm will try its best but probably fail quite miserably. Good luck! :3\n\n# Getting Started\n\n## Virtualenv\n```sh\npython -m venv .venv\nsource .venv/bin/activate\npip install .\npython3 app.py\n```\n\n## uv\n```sh\nuv run app.py\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fan-empty-string%2Fcar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fan-empty-string%2Fcar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fan-empty-string%2Fcar/lists"}