Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Python wrapper of Consorcio de Transportes de Madrid (CTRM) API.
This module seeks to comprise all the CTRM endpoints, using different CTRM APIs.
With this API you can request static and live (not as a streaming) for the different public transport the CTRM manages: Madrid Metro, MetroSur Metro, Cercanías Renfe, Madrid EMT buses, intercity buses, multi-transport stations (intercambiadores), and Metro Ligero. You can request information of CTRM offices and parkings.
Any kind of transport fits in the paradigm of stops and lines.
Please visit https://citram-python-api.readthedocs.io/en/latest/ to read the documentation.
Some tips:
When writing line names, they're usually in upper case and have no whitespaces nor other characters like dashes or underscores. The functions in utils.utils can help you to create stop and line codes.
With the constants module you can make requests about municipalities, transport modes and office types easily.
In case your mother tongue is English and you're having trouble understanding the different transports, you might find this link helpful: https://www.crtm.es/widgets/language.json
Sometimes you'll see kmz links. kmz files are used by Google Maps or Google Earth to display a set of points or geometric figures in a map.
When the field access is greater than 0, it means the stop is adapted to people with special conditions.
When the field park is greater than 0, it means that stop has a parking.
When the field nightService or nightLinesService is greater than 0, it means that line has night service (sometimes this is called Búho, specially on bus lines).
Example of use
from citram_api.constants.constants import TransportModes
from citram_api.api.lines.lines import get_line_info
from citram_api.utils.utils import create_line_cod
line_info = get_line_info(create_line_cod(TransportModes.METRO.value, 10))
FAQs
Regional Consortium of Transportation for Madrid API wrapper
We found that citram-python-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.