{"id":13857060,"url":"https://github.com/sharedstreets/sharedstreets-python","last_synced_at":"2025-04-10T00:21:54.735Z","repository":{"id":29920774,"uuid":"117002085","full_name":"sharedstreets/sharedstreets-python","owner":"sharedstreets","description":"SharedStreets (Python)","archived":false,"fork":false,"pushed_at":"2024-08-02T18:35:39.000Z","size":1966,"stargazers_count":63,"open_issues_count":6,"forks_count":16,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-24T02:06:00.933Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://sharedstreets.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sharedstreets.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}},"created_at":"2018-01-10T19:35:38.000Z","updated_at":"2024-11-10T22:09:49.000Z","dependencies_parsed_at":"2022-08-07T14:31:06.584Z","dependency_job_id":null,"html_url":"https://github.com/sharedstreets/sharedstreets-python","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/sharedstreets%2Fsharedstreets-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharedstreets%2Fsharedstreets-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharedstreets%2Fsharedstreets-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharedstreets%2Fsharedstreets-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharedstreets","download_url":"https://codeload.github.com/sharedstreets/sharedstreets-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248132126,"owners_count":21052978,"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-08-05T03:01:24.509Z","updated_at":"2025-04-10T00:21:54.690Z","avatar_url":"https://github.com/sharedstreets.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# SharedStreets (Python)\n\nPython implementation of [SharedStreets Reference System](https://github.com/sharedstreets/sharedstreets-ref-system).\n\n## Install\n\n1.  Install [from PyPI with Pip](https://packaging.python.org/tutorials/installing-packages/#installing-from-pypi).\n    \n        pip install sharedstreets\n\n2.  Try downloading a single tile to GeoJSON.\n\n        sharedstreets-get-tile 16 10509 25324 \u003e 16-10509-25324.geojson\n\n## Use\n\n-   Retrieve a tile and convert to GeoJSON in Python.\n\n        import sharedstreets.tile\n        tile = sharedstreets.tile.get_tile(16, 10508, 25324)\n        geojson = sharedstreets.tile.make_geojson(tile)\n\n-   Install optional webserver to serve GeoJSON tiles.\n\n        pip install 'sharedstreets[webserver]'\n\n-   Run a debug webserver and request a tile at [`/tile/16/10508/25324.geojson`](http://127.0.0.1:5000/tile/16/10508/25324.geojson).\n\n        sharedstreets-debug-webapp\n\n-   Run a production webserver under [Gunicorn](http://gunicorn.org/).\n\n        gunicorn sharedstreets.webapp:app\n\n-   Install optional Geopandas to use read tabular excerpts of SharedStreets data.\n\n        pip install 'sharedstreets[dataframe]'\n\n-   Read a small area of SharedStreets data into a pair of Geopandas dataframes.\n\n        import sharedstreets.dataframe\n        frames = sharedstreets.dataframe.get_bbox(-122.2820, 37.7946, -122.2480, 37.8133)\n        geometries, intersections = frames.geometries, frames.intersections\n\n## Develop\n\nInstall for local development.\n\n1.  Clone the SharedStreets-Python git repository and prepare a\n    [Python virtual environment](http://docs.python-guide.org/en/latest/dev/virtualenvs/#virtualenv) running Python 3.\n\n2.  Install the `sharedstreets` module, keeping it editable, and run test suite.\n    \n        pip install --editable .\n        python setup.py test\n\n## Protobufs\n\nCurrent `.proto` files can can be found at\n[sharedstreets/sharedstreets-ref-system](https://github.com/sharedstreets/sharedstreets-ref-system/tree/master/proto).\n\n[Install `protoc`](https://github.com/google/protobuf) and\n[follow Python directions](https://developers.google.com/protocol-buffers/docs/reference/python-generated#invocation)\nto regenerate `sharedstreets/sharedstreets_pb2.py` if necessary:\n\n    protoc -I=sharedstreets-ref-system/proto/ \\\n        --python_out=sharedstreets/ \\\n        sharedstreets-ref-system/proto/sharedstreets.proto\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharedstreets%2Fsharedstreets-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharedstreets%2Fsharedstreets-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharedstreets%2Fsharedstreets-python/lists"}