Skip to main content

Common utilities for MoveEV projects

Project description

MoveEV Common Models

This package contains the common models used for Electric Vehicle (EV) Charging Data across the MoveEV ecosystem.

Overview

The moveev_common package provides a set of standardized data models that represent various aspects of EV charging sessions, vehicle information, and location data. These models ensure consistency and interoperability between different components of the MoveEV platform.

Models

The package includes the following main models:

  1. ChargingEvent: Represents individual charging events with detailed metrics including:

    • Charging duration and timestamps
    • Energy consumed (kWh)
    • Voltage and current measurements (milli-volts, milli-amps)
    • Location data (lat/long)
    • Provider-specific information
    • Start/end energy measurements (micro-watt-hours)
    • Charging power (kilowatts)
  2. ChargingStat: Tracks real-time charging statistics including:

    • State of charge (milli-percent)
    • Charging voltage and current
    • Energy consumption
    • Location data
    • Odometer readings (meters)
    • Vehicle telemetry
  3. Vehicle: Contains vehicle information including:

    • VIN number
    • Telematics device details (ID, hardware ID, name)
    • Credential associations
    • Creation and update timestamps
    • Additional metadata (JSONB)
  4. Credential: Manages authentication and access credentials for:

    • Various charging providers
    • Telematics systems
    • API integrations
    • Username/password pairs
    • Database connections
  5. Client: Manages client application information including:

    • Client name
    • Authentication token
    • Service associations
  6. ClientService: Manages client service configurations including:

    • Client associations
    • Service endpoints
    • Event logging relationships
  7. Service: Defines available services including:

    • Service name
    • Service URL
    • Integration endpoints
  8. EventLog: Tracks event notifications including:

    • Charging event references
    • Client service associations
    • Timestamp information
    • Delivery status
  9. LastRunTime: Tracks service execution times including:

    • Credential associations
    • Job name
    • Last execution timestamp
  10. Location: Represents geographical location data including:

    • Latitude and longitude
    • Resolved address information
    • Associated charging events

Usage

These models can be imported and used in various MoveEV projects to ensure consistent data structures when working with EV charging data. They provide a common language for different components of the system to communicate and share information effectively.

Contributing

When adding new fields or modifying existing models, please ensure that changes are reflected across all relevant components of the MoveEV ecosystem to maintain consistency.

For more detailed information about each model and its fields, please refer to the source code and inline documentation.

Database Migrations

To run database migrations against different environments, use the following Alembic commands:

Local Development

alembic -x environment=local upgrade head

Production

alembic -x environment=production upgrade head

Make sure your .env file contains both sets of database credentials:

  • POSTGRES_USER
  • POSTGRES_PASSWORD
  • POSTGRES_HOST
  • POSTGRES_PORT
  • POSTGRES_DB

AND

  • POSTGRES_USER_PRODUCTION
  • POSTGRES_PASSWORD_PRODUCTION
  • POSTGRES_HOST_PRODUCTION
  • POSTGRES_PORT_PRODUCTION
  • POSTGRES_DB_PRODUCTION

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

moveev_common-0.1.8.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

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

moveev_common-0.1.8-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file moveev_common-0.1.8.tar.gz.

File metadata

  • Download URL: moveev_common-0.1.8.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for moveev_common-0.1.8.tar.gz
Algorithm Hash digest
SHA256 9fe547547096a1c8d1b9490e3f706002d930d2df7aff98dbd3acd89cc58485e4
MD5 5e54821f57f6b4463e56ff249e54371f
BLAKE2b-256 1ac8fa7cf821fd3f9d5918bca01a2b197370c26beb5a6a7b26cd24eab1b47165

See more details on using hashes here.

File details

Details for the file moveev_common-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: moveev_common-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for moveev_common-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c4f05e698d408f80cb60543e147e9004623b5a866de4e25f25d571e03ae7997f
MD5 5a908b38f1626246c248e05ea44f6d74
BLAKE2b-256 44a14175206405e7401f70d29cee845a4f9330c957b4dd704b0e76875156e6f2

See more details on using hashes here.

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