Library for interacting with WMATA SmarTrip data
Project description
pysmartrip
pysmartrip is a Python library that provides a simple API for fetching your WMATA SmarTrip data.
Usage
from pysmartrip import SmarTrip
st = SmarTrip("username", "password")
card = st.cards[0]
for trip in card.get_trips_between("09/29/2025", "10/03/2025"):
if trip.bus_route:
print(f"{trip.time} -- {trip.balance}")
for trip in card.get_trips_by_month(8, 2025):
if trip.operator == "Metrorail":
if trip.exit_location:
print(f"{trip.time} -- {trip.exit_location}")
Used in this blogpost
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pysmartrip-0.0.1.tar.gz
(4.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pysmartrip-0.0.1.tar.gz.
File metadata
- Download URL: pysmartrip-0.0.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1145a7d04233b1d0eb625848604ae2814d32976fe8f01063196f839d9d8415b4
|
|
| MD5 |
c245fb683375afa4646b114601b2214e
|
|
| BLAKE2b-256 |
0b89f77152108966a22cd0e333fb205ff5ee515286360f031c2dded87f0b44ba
|
File details
Details for the file pysmartrip-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pysmartrip-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0204e1da62c62d30b27063d913ace0b47ba7c435e75f2492975a15e3a57a6638
|
|
| MD5 |
db5a505507029c809bda98e764d6a4f2
|
|
| BLAKE2b-256 |
e4a3d94eafa3fbca33dbfe9e97ad7d8d92c86c4104b9b39aa49b1c0f46980247
|