{"id":33044383,"url":"https://github.com/afimb/gtfslib-python","last_synced_at":"2025-11-16T20:01:47.386Z","repository":{"id":57436272,"uuid":"48041341","full_name":"afimb/gtfslib-python","owner":"afimb","description":"An open source library in python for reading GTFS files and computing various stats and indicators about Public Transport networks","archived":true,"fork":false,"pushed_at":"2019-02-19T19:16:41.000Z","size":494,"stargazers_count":44,"open_issues_count":4,"forks_count":6,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-12-20T16:48:33.406Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/afimb.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":"2015-12-15T12:24:34.000Z","updated_at":"2024-07-16T12:50:17.000Z","dependencies_parsed_at":"2022-09-06T01:11:52.829Z","dependency_job_id":null,"html_url":"https://github.com/afimb/gtfslib-python","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/afimb/gtfslib-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afimb%2Fgtfslib-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afimb%2Fgtfslib-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afimb%2Fgtfslib-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afimb%2Fgtfslib-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afimb","download_url":"https://codeload.github.com/afimb/gtfslib-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afimb%2Fgtfslib-python/sbom","scorecard":{"id":169786,"data":{"date":"2025-08-11","repo":{"name":"github.com/afimb/gtfslib-python","commit":"c88fc98c3b63f22850176c58db89f72f247adce1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-16T16:06:35.255Z","repository_id":57436272,"created_at":"2025-08-16T16:06:35.255Z","updated_at":"2025-08-16T16:06:35.255Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284767947,"owners_count":27060132,"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","status":"online","status_checked_at":"2025-11-16T02:00:05.974Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-11-14T00:00:28.413Z","updated_at":"2025-11-16T20:01:47.381Z","avatar_url":"https://github.com/afimb.png","language":"Python","readme":"# gtfslib-python\nAn open source library in python for reading GTFS files and computing various stats and indicators about Public Transport networks\n\n[![Build Status](https://travis-ci.org/afimb/gtfslib-python.svg)](https://travis-ci.org/afimb/gtfslib-python)\n\nThis software is open source ([GPLv3](https://github.com/afimb/gtfslib-python/blob/master/LICENSE)); in particular, there is no warranty.\n\nA more complete documentation can be found [in the wiki](https://github.com/afimb/gtfslib-python/wiki)\n\n-\u003e Pour des explications **en français**, voir [la page FR du wiki](https://github.com/afimb/gtfslib-python/wiki)\n\n## Installation\n\n(Optional) You may want to setup a virtual environment before:\n(See https://virtualenv.readthedocs.org/ for more info.)\n\n\t$ virtualenv \u003cENV\u003e\n\t$ . \u003cENV\u003e/bin/activate\n\nDownload and install the lib:\n\n\t$ git clone git@github.com:afimb/gtfslib-python.git\n\t$ cd gtfslib-python\n\t$ pip install .\n\t$ gtfsdbloader --help\n\n## Usage\n\n### Command-line tool\n\n\t$ gtfsdbloader --help\n\n### API tutorial\n\n```python\nfrom gtfslib.dao import Dao\ndao = Dao(\"db.sqlite\")\ndao.load_gtfs(\"mygtfs.zip\")\nfor stop in dao.stops():\n\tprint(stop.stop_name)\nfor route in dao.routes(fltr=Route.route_type == Route.TYPE_BUS):\n\tprint(\"%s: %d trips\" % (route.route_long_name, len(route.trips)))\n```\n\nFor more information [see here](https://github.com/afimb/gtfslib-python/wiki/API-usage-tutorial).\n\n## Data model\n\nThe internal model used, GTFS', is close to GTFS but simplified / normalized / expanded for ease of use.\n\nThe main differences are:\n\n* A calendar is a simple list of calendar dates (there is no date range, day of the week and positive/negative exceptions anymore).\n* All optional fields with a default value are set (for example, pickup/dropoff types)\n* Missing stop times are correctly interpolated, and marked with a flag.\n* Shape distances are converted to meters and computed if missing.\n* All frequencies are expanded to normal trips, and marked with a flag (TODO).\n* ...\n\nFor the detail and more information [see here](https://github.com/afimb/gtfslib-python/wiki/Internal-model---GTFS').\n","funding_links":[],"categories":["Producing Data","Uncategorized"],"sub_categories":["GTFS","Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafimb%2Fgtfslib-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafimb%2Fgtfslib-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafimb%2Fgtfslib-python/lists"}