Monta
A Python client library for the Monta EV charging API.
API Documentation
For complete API documentation, visit the official Monta API docs: https://docs.public-api.monta.com/reference/home
Requirements
- Python 3.11 or higher
- aiohttp
- async-timeout
Installation
This package is available on PyPI:
pip install monta
Alternatively, install from source with:
python -m pip install .
Usage
Here's a basic example of how to use the Monta API client:
import asyncio
import aiohttp
from monta import MontaApiClient
async def main():
async with aiohttp.ClientSession() as session:
# Initialize the client
client = MontaApiClient(
client_id="your_client_id",
client_secret="your_client_secret",
session=session,
)
# Get all charge points
charge_points = await client.async_get_charge_points()
for charge_point_id, charge_point in charge_points.items():
print(f"Charge Point {charge_point_id}: {charge_point.name}")
# Get a specific charge point with full details
if charge_points:
first_charge_point_id = next(iter(charge_points.keys()))
charge_point = await client.async_get_charge_point(first_charge_point_id)
# Access location information
if charge_point.location and charge_point.location.coordinates:
print(f"Location: {charge_point.location.coordinates.latitude}, "
f"{charge_point.location.coordinates.longitude}")
# Access connector information
print(f"Available connectors: {[c.name for c in charge_point.connectors]}")
# Get charges for this charge point
charges = await client.async_get_charges(first_charge_point_id)
print(f"Found {len(charges)} charges")
# Get wallet information
wallet = await client.async_get_personal_wallet()
print(f"Wallet balance: {wallet.balance.amount} {wallet.balance.currency.identifier}")
# Run the async function
asyncio.run(main())
Available Methods
async_get_charge_points(page, per_page)- Retrieve all available charge points with paginationasync_get_charge_point(charge_point_id)- Get a specific charge point by ID with full detailsasync_get_charges(charge_point_id, state, from_date, to_date, page, per_page)- Get charges for a specific charge pointasync_start_charge(charge_point_id)- Start a charging sessionasync_stop_charge(charge_id)- Stop a charging sessionasync_get_personal_wallet()- Get personal wallet informationasync_get_wallet_transactions(state, from_date, to_date, page, per_page)- Retrieve wallet transactions
License
See LICENSE file for details.
Metadata
Release files for monta 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| monta-1.2.0.tar.gz | 12.8 kB | Without provenance | Details for monta-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| monta-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for monta-1.2.0-py3-none-any.whl |
Total release size: 27.3 kB
Release files / monta-1.2.0.tar.gz
| Download URL | monta-1.2.0.tar.gz |
|---|---|
| Size | 12.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec2ca74642516b8c5f5911c1c0d9866b3027c35709925a5c7982991e3aae952f
|
|
BLAKE2b-256 checksum How to use checksums |
202d5a923e0cc4810aa066cfe26a77d768a79da934cbba875206a7871016a776
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / monta-1.2.0-py3-none-any.whl
| Download URL | monta-1.2.0-py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a4c4d47187da887e9a89c82ddbf66625d60db6e94f4b32f9e70a49acfba2e353
|
|
BLAKE2b-256 checksum How to use checksums |
22ac88f616baa0537fb51ae5231d49139841bb549e7d6297af07b0a6826ce735
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for monta 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.