
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
A modern, asynchronous Python wrapper for the Madrid EMT (Empresa Municipal de Transportes) API, providing easy access to real-time public transportation data in Madrid, Spain.
aiohttp
Install the package from PyPI:
pip install emt-madrid
Clone the repository:
git clone https://github.com/fermartv/EMTMadrid.git
cd EMTMadrid
Set up the development environment:
make local-setup
source .venv/bin/activate
This will:
To use the EMT MobilityLabs API, you need to register on their official website. After registration:
import asyncio
from aiohttp import ClientSession
from emt_madrid import EMTClient
async def main():
# Replace these with your actual credentials
EMAIL = "your-email@example.com"
PASSWORD = "your-password"
STOP_ID = "72" # Example stop ID
async with ClientSession() as session:
# Create EMT client
emt_client = EMTClient(
email=EMAIL,
password=PASSWORD,
stop_id=STOP_ID,
session=session,
)
# Fetch stop information and arrivals
arrivals = await emt_client.get_arrivals()
# Get and display the data
print("Stop Information:", arrivals)
if __name__ == "__main__":
asyncio.run(main())
More examples can be found in the example directory. Run them with:
make run-example
get_arrivals()
: Fetches and updates stop informationget_stop_info()
: Returns the stop informationEMTMadrid/
├── emt_madrid/ # Main package source code
├── tests/ # Test files
├── example/ # Example scripts
├── pyproject.toml # Project configuration
└── Makefile # Development commands
make install
: Install all dependenciesmake update
: Update dependenciesmake test
: Run testsmake test-coverage
: Run tests with coverage reportmake check-typing
: Run static type checkingmake check-lint
: Check code stylemake check-format
: Check code formattingmake lint
: Fix code style issuesmake format
: Format codemake pre-commit
: Run all checks and tests (used in CI)make run-example
: Run the basic exampleFor development dependencies:
make add-dev-package package=package-name
For production dependencies:
make add-package package=package-name
Contributions are welcome! Please follow these steps:
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Before submitting your PR, please make sure to:
make test
make lint
and make format
This project is licensed under the GPLv3 - see the LICENSE file for details.
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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.