Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/speakeasy-sdks/smartcar-py

A python SDK for accessing the smartcar-py API.
https://github.com/speakeasy-sdks/smartcar-py

api python sdk smart-car

Last synced: 2 days ago
JSON representation

A python SDK for accessing the smartcar-py API.

Awesome Lists containing this project

README

        



Python SDK


Build and scale your mobility business






## SDK Installation

```bash
pip install SmartCar
```

## SDK Example Usage

```python
import smartcar
from smartcar.models import operations, shared

s = smartcar.Smartcar(
security=shared.Security(
bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE",
),
vehicle_id="36ab27d0-fd9d-4455-823a-ce30af709ffc",
)

req = operations.GetLocationRequest()

res = s.vehicles.get_location(req)

if res.location is not None:
# handle response
```

## Available Resources and Operations

### compatibility

* `list_compatibility` - Compatibility

### evs

* `get_battery_capacity` - EV Battery Capacity
* `get_battery_level` - EV Battery Level
* `get_charging_status` - EV Charging Status

### vehicles

* `disconnect` - Revoke Access
* `get` - Vehicle Info
* `get_engine_oil` - Engine Oil Life
* `get_fuel_tank` - Fuel Tank (US Only)
* `get_location` - Location
* `get_odometer` - Odometer
* `get_permissions` - Application Permissions
* `get_tire_pressure` - Tire pressure
* `list_vehicles` - All Vehicles
* `lock_unlock` - Unlock Vehicle

### Maturity

This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage
to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally
looking for the latest version.

### Contributions

While we value open-source contributions to this SDK, this library is generated programmatically.
Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release !

### SDK Created by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)