{"id":37080577,"url":"https://github.com/jvicentem/citram-python-api","last_synced_at":"2026-01-14T09:46:56.015Z","repository":{"id":62562317,"uuid":"231220376","full_name":"jvicentem/citram-python-api","owner":"jvicentem","description":"Python wrapper of Consorcio de Transportes de Madrid API","archived":false,"fork":false,"pushed_at":"2023-05-22T22:37:03.000Z","size":38,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-05T08:38:38.783Z","etag":null,"topics":["ctrm","madrid","open-data","public-transport","transporte-publico"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/citram-python-api","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jvicentem.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":"2020-01-01T13:32:13.000Z","updated_at":"2025-12-13T12:59:43.000Z","dependencies_parsed_at":"2022-11-03T15:30:47.916Z","dependency_job_id":null,"html_url":"https://github.com/jvicentem/citram-python-api","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jvicentem/citram-python-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jvicentem%2Fcitram-python-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jvicentem%2Fcitram-python-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jvicentem%2Fcitram-python-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jvicentem%2Fcitram-python-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jvicentem","download_url":"https://codeload.github.com/jvicentem/citram-python-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jvicentem%2Fcitram-python-api/sbom","scorecard":{"id":544808,"data":{"date":"2025-08-11","repo":{"name":"github.com/jvicentem/citram-python-api","commit":"e43e8340cfee3d1f8814620d51053056fbf05abd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"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":"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.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":"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":"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"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T09:12:33.827Z","repository_id":62562317,"created_at":"2025-08-20T09:12:33.827Z","updated_at":"2025-08-20T09:12:33.827Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28416120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["ctrm","madrid","open-data","public-transport","transporte-publico"],"created_at":"2026-01-14T09:46:55.348Z","updated_at":"2026-01-14T09:46:56.002Z","avatar_url":"https://github.com/jvicentem.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# citram-python-api\nPython wrapper of Consorcio de Transportes de Madrid (CTRM) API.\n\nThis module seeks to comprise all the CTRM endpoints, using different CTRM APIs.\n\nWith this API you can request static and live (not as a streaming) for the different public transport the CTRM manages:\nMadrid Metro, MetroSur Metro, Cercanías Renfe, Madrid EMT buses, intercity buses, multi-transport stations (intercambiadores),\nand Metro Ligero. You can request information of CTRM offices and parkings.\n\nAny kind of transport fits in the paradigm of stops and lines.\n\nPlease visit [https://citram-python-api.readthedocs.io/en/latest/](https://citram-python-api.readthedocs.io/en/latest/) to read the documentation.\n\n## Modules description:\n- lines: Requests relative to transport lines.\n- offices: Requests relative to CTRM offices.\n- stops: Requests relative to transport stops.\n- others: Other relevant requests that don't fit in any of the other categories.\n- constants: Useful constants to use when making requests.\n- utils: Useful functions to use when making requests.\n\nSome tips:\n\n- When writing line names, they're usually in upper case and have no whitespaces nor other characters like dashes or\nunderscores. The functions in utils.utils can help you to create stop and line codes. \n\n- With the constants module you can make requests about municipalities, transport modes and office types easily.\n\n- In case your mother tongue is English and you're having trouble understanding the different transports, \nyou might find this link helpful: [https://www.crtm.es/widgets/language.json](https://www.crtm.es/widgets/language.json)\n\n- Sometimes you'll see kmz links. kmz files are used by Google Maps or Google Earth to display a set of points\nor geometric figures in a map. \n\n- When the field access is greater than 0, it means the stop is adapted to people with special conditions.\n\n- When the field park is greater than 0, it means that stop has a parking.\n\n- When the field nightService or nightLinesService is greater than 0, it means that line has night service (sometimes\nthis is called Búho, specially on bus lines).\n\nExample of use\n\n    from citram_api.constants.constants import TransportModes\n    from citram_api.api.lines.lines import get_line_info\n    from citram_api.utils.utils import create_line_cod\n    \n    line_info = get_line_info(create_line_cod(TransportModes.METRO.value, 10))\n    ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjvicentem%2Fcitram-python-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjvicentem%2Fcitram-python-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjvicentem%2Fcitram-python-api/lists"}