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.1.tar.gz (5.8 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.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: evocarshare-0.0.1.tar.gz
  • Upload date:
  • Size: 5.8 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.1.tar.gz
Algorithm Hash digest
SHA256 41f52d068ef130e0deb7cd9e31c96c177cc4679c2fc8acf6fe502d1e13bc8fc1
MD5 8e05b8b2ee3ad73cf6450aa3e7ca4576
BLAKE2b-256 02417e4394fb2aa748d4ea3af244733736841784a227622a86831306e247e97b

See more details on using hashes here.

Provenance

The following attestation bundles were made for evocarshare-0.0.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: evocarshare-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1f995692d303a2d2e3021f175d9033c813d4c844985925776295336d20ba4aab
MD5 29c3f1d2d630788b73f12c9bd57e6703
BLAKE2b-256 ec0ef5985754b2674cf52e10c6b547018e63ec9e2553584e656b1439a0a95339

See more details on using hashes here.

Provenance

The following attestation bundles were made for evocarshare-0.0.1-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