{"id":19526089,"url":"https://github.com/ericoc/indego-py-lib","last_synced_at":"2025-04-26T10:31:06.632Z","repository":{"id":62570883,"uuid":"136220499","full_name":"ericoc/indego-py-lib","owner":"ericoc","description":"Python3 library for working with the Philadelphia Indego Bike Share API","archived":false,"fork":false,"pushed_at":"2023-03-08T22:52:04.000Z","size":170,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T18:05:26.409Z","etag":null,"topics":["api-client","bicycle","bicycle-share","bicycle-sharing","bike","bike-share","bike-share-data","bike-sharing","bikeshare","bikesharing","indego","indego-api","philadelphia","philadelphias-bike-share","philly","pypi","python","python-3","python-library","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/indego/","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/ericoc.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}},"created_at":"2018-06-05T18:46:59.000Z","updated_at":"2023-09-08T01:25:53.000Z","dependencies_parsed_at":"2022-11-03T17:15:42.211Z","dependency_job_id":null,"html_url":"https://github.com/ericoc/indego-py-lib","commit_stats":{"total_commits":35,"total_committers":2,"mean_commits":17.5,"dds":0.4571428571428572,"last_synced_commit":"fd373fbd618bbe844534f34418d28ebf21f670f8"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericoc%2Findego-py-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericoc%2Findego-py-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericoc%2Findego-py-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericoc%2Findego-py-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericoc","download_url":"https://codeload.github.com/ericoc/indego-py-lib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250972675,"owners_count":21516400,"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":["api-client","bicycle","bicycle-share","bicycle-sharing","bike","bike-share","bike-share-data","bike-sharing","bikeshare","bikesharing","indego","indego-api","philadelphia","philadelphias-bike-share","philly","pypi","python","python-3","python-library","python3"],"created_at":"2024-11-11T01:08:13.141Z","updated_at":"2025-04-26T10:31:06.360Z","avatar_url":"https://github.com/ericoc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Indego Bike Share Python Library\n================================\n\n\nAbout\n-----\n\nI have tried to make a re-usable Python library for the Philadelphia Indego Bike Share API!\n\nI wrote this similarly to [my existing Indego PHP library](https://github.com/ericoc/indego-php-lib).\n\nCheck out [the City of Philadelphia GitHub](https://github.com/CityOfPhiladelphia) if you think this library is interesting!\n\nI created [indego.ericoc.com](https://indego.ericoc.com/) ([source code](https://github.com/ericoc/indego.ericoc.com)) using this library as well\n\nInstallation\n------------\n\nInstallation of this library should be as simple as running:\n\n    pip install indego\n\n\nCompatibility\n-------------\n\nPlease note that this library is only compatible with Python 3+. Python 2 is not supported.\n\n\nExample\n-------\n\nWhen combined with the provided `Indego` class, the following code will generate the example output:\n\n    from indego import Indego\n\n    # Instantiate the Indego class\n    indego = Indego()\n\n    # Retrieve and print \"university\" stations\n    uni_stations = indego.get_stations('university')\n    print(uni_stations)\n\n    # Show how many stations were returned above\n    uni_count = len(uni_stations)\n    print(uni_count, 'stations returned')\n\nOutput:\n\n    $ python3 university_example.py\n    {3008: {'addressStreet': '1076 Berks Street', 'addressCity': 'Philadelphia', 'addressState': 'PA', 'addressZipCode': '19122', 'bikesAvailable': 3, 'closeTime': '03:55:00', 'docksAvailable': 16, 'eventEnd': None, 'eventStart': None, 'isEventBased': False, 'isVirtual': False, 'isVisible': False, 'kioskId': 3008, 'kioskPublicStatus': 'Active', 'kioskStatus': 'FullService', 'name': 'Temple University Station', 'notes': None, 'openTime': '04:00:00', 'publicText': '', 'timeZone': 'Eastern Standard Time', 'totalDocks': 19, 'trikesAvailable': 0, 'kioskConnectionStatus': 'Active', 'kioskType': 1, 'latitude': 39.98078, 'longitude': -75.15055, 'hasGeofence': False, 'classicBikesAvailable': 3, 'smartBikesAvailable': 0, 'electricBikesAvailable': 0, 'isArchived': False}, 3020: {'addressStreet': '3051 South St.', 'addressCity': 'Philadelphia', 'addressState': 'PA', 'addressZipCode': '19147', 'bikesAvailable': 11, 'closeTime': '03:55:00', 'docksAvailable': 24, 'eventEnd': None, 'eventStart': None, 'isEventBased': False, 'isVirtual': False, 'isVisible': False, 'kioskId': 3020, 'kioskPublicStatus': 'Active', 'kioskStatus': 'FullService', 'name': 'University City Station', 'notes': None, 'openTime': '04:00:00', 'publicText': '', 'timeZone': 'Eastern Standard Time', 'totalDocks': 35, 'trikesAvailable': 0, 'kioskConnectionStatus': 'Active', 'kioskType': 1, 'latitude': 39.94922, 'longitude': -75.19036, 'hasGeofence': False, 'classicBikesAvailable': 11, 'smartBikesAvailable': 0, 'electricBikesAvailable': 0, 'isArchived': False}}\n    2 stations returned\n\n\nProviding an argument/filter to `get_stations()` to limit the selection of stations only limits the results within the `Indego` class. The API end-point itself always returns all stations.\n\nUnfortunately, there does not appear to be a signifcant amount of documentation for the API being used nor does there seem to be any parameters available to limit the stations being retrieved from the API.\n\nCalling `get_stations()` without any arguments will return a list of all (*currently*, 132) stations.\n\n\nMore Information\n----------------\n* [The actual Philadelphia Indego Bike Share API, a GeoJSON file](https://www.rideindego.com/stations/json/)\n* [OpenDataPhilly description of the API](https://www.opendataphilly.org/dataset/bike-share-stations)\n* [Interesting article visualizing Indego usage](http://www.randalolson.com/2015/09/05/visualizing-indego-bike-share-usage-patterns-in-philadelphia-part-2/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericoc%2Findego-py-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericoc%2Findego-py-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericoc%2Findego-py-lib/lists"}