![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Python wrapper for the Madrid EMT (Empresa Municipal de Transportes) API, providing easy access to real-time transportation data in Madrid.
Install the package using pip:
pip install emt-madrid
To use the EMT Mobilitylabs API you need to register in their website. Once you are registered you will receive a confirmation email to activate your account. It will not work until you have completed all the steps.
import asyncio
from aiohttp import ClientSession
from emt_madrid import EMTAPIAuthenticator, EMTAPIBusStop
EMAIL = "email-from-EMT"
PASSWORD = "password-from-EMT"
STOP_ID = "stop-id-from-EMT" # For example: "72"
async def fetch_bus_info():
"""Fetches bus information from the EMT API."""
async with ClientSession() as session:
emt_api_authenticator = EMTAPIAuthenticator(session, EMAIL, PASSWORD)
await emt_api_authenticator.authenticate()
token = emt_api_authenticator.token
emt_api_bus_stop = EMTAPIBusStop(session, token, STOP_ID)
await emt_api_bus_stop.update_stop_info()
await emt_api_bus_stop.update_bus_arrivals()
return emt_api_bus_stop.get_stop_info()
async def main():
"""Main function to execute the code."""
bus_info = await fetch_bus_info()
print(bus_info)
asyncio.run(main())
Thanks to EMT Madrid MobilityLabs for providing the data and documentation.
FAQs
Python wrapper for the Madrid EMT (Empresa Municipal de Transportes) API
We found that emt-madrid 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.