Skip to main content

Access data from the Evo Car Share api

Project description

Evocarshare-py

https://github.com/jazzz/evocarshare-py/actions/workflows/main-build.yml/badge.svg Status

Evocarshare is a module for accessing the data api of the Evo CarShare service which streamlines token management, and queries.

Installing

pip install evocarshare

Supported Versions

  • Python 3.11+

Usage

Fetch all vehicles with range of a location

import aiohttp
import os

from evocarshare import CredentialBundle, EvoApi

API_KEY = os.environ.get("EVOAPI_KEY")
CLIENT_ID = os.environ.get("EVOAPI_CLIENTID")
CLIENT_SECRET = os.environ.get("EVOAPI_CLIENTSECRET")

async with aiohttp.ClientSession() as client_session:
    # Initialize Api
    creds = CredentialBundle(API_KEY, CLIENT_ID, CLIENT_SECRET)
    api = EvoApi(client_session, creds)

    # Query Vehicles
    steam_clock = GpsCoord(latitude=49.284407, longitude=-123.108876)
    vehicles = await api.get_vehicles_within(meters=500, of=steam_clock)

    for v in vehicles:
        print(v)

Quick Start (Dev Containers)

This project supports containerized development via devcontainers. From Visual Studio Code select Devcontainers: Reopen in Container from the command palette

Quick Start (Poetry)

Install dependencies via poetry

poetry install --with dev

Install precommit hooks

poetry run pre-commit install --install-hooks

Run tests

 .venv/bin/pytest

Thanks

This project makes heavy use of the reverse engineering work by @jeremy21212121 and @jack-madison.

evofinder.ca - Unoffical web interface for Evo

EvoAppScrape - Script to extract vehicle data to csv

Contributing

Contributions via PR are welcome.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

evocarshare-0.0.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

evocarshare-0.0.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file evocarshare-0.0.2.tar.gz.

File metadata

  • Download URL: evocarshare-0.0.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for evocarshare-0.0.2.tar.gz
Algorithm Hash digest
SHA256 816a0385fbce40ed8b37786e4d8903656949a7b714d4f2eac7ec31aa5fb92ae8
MD5 4089c7ba5656128dbc4120986e8dcca8
BLAKE2b-256 fade4d3ff7b53cb8dcd32a2414faa2adef25635a02c0c07e88e58b2a85c46e51

See more details on using hashes here.

Provenance

The following attestation bundles were made for evocarshare-0.0.2.tar.gz:

Publisher: publish_to_pypi.yml on jazzz/evocarshare-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file evocarshare-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: evocarshare-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for evocarshare-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 200964cde57b6a19f8094cb103432fb1f055313a284e34848379a7c2a25b0e4f
MD5 d91a0179503dc092c1f45dfd9e633f98
BLAKE2b-256 22d5451a375eab4339f055f426574f5b651526fd5c72050f8a02e9a6a5c6441b

See more details on using hashes here.

Provenance

The following attestation bundles were made for evocarshare-0.0.2-py3-none-any.whl:

Publisher: publish_to_pypi.yml on jazzz/evocarshare-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page