Skip to main content

Python API wrapper for the Open Charge Map for EV charging stations

Project description

OCMpy

OCMpy is a python wrapper for the Open Charge Map API for EV charging stations. Details on the API and project can be found at https://openchargemap.org/site/develop

Getting Started

To install

pip install ocmpy

To run

import ocmpy

ocmpyInstance = Ocmpy()
ocmpyInstance.open()
stations = ocmpyInstance.getstationsbylocation(40.027435, -105.251945)
[print(x) for x in stations]

Station ID: 102790, Title: COMM VITALITY
Station ID: 80295, Title: BOULDER
Station ID: 8333, Title: 2285 28TH St
Station ID: 72265, Title: NATURE CONSVNCY
Station ID: 71506, Title: UCAR & NCAR
Station ID: 80294, Title: 3223 ARAPAHOE
Station ID: 89605, Title: BVSD
Station ID: 28231, Title: City of Boulder - Municipal Service Center
Station ID: 89601, Title: Gold Run Health Club 1
Station ID: 89600, Title: UNIV. OF COL

Prerequisites

The only non-standard module required at this time is 'requests'

pip install -r requirements.txt

Running the tests

python3 -m unittest test/test_ocmpy.py

Deployment

pip install ocmpy

Authors

  • Jeremy Banker - Initial work - Loredous

License

This project is licensed under the GPLv3 - see the LICENSE file for details

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

ocmpy-0.1.3.tar.gz (32.4 kB view details)

Uploaded Source

Built Distribution

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

ocmpy-0.1.3-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

Details for the file ocmpy-0.1.3.tar.gz.

File metadata

  • Download URL: ocmpy-0.1.3.tar.gz
  • Upload date:
  • Size: 32.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ocmpy-0.1.3.tar.gz
Algorithm Hash digest
SHA256 264df3e1229a450b9d1652d6a372fc811030a9f2a60591e733e67903f623422d
MD5 9097871da63df353d1d7287391da8765
BLAKE2b-256 a5684987842e312373b1926380c8dc0f5355227d2dbd636bc39875e73cef30d4

See more details on using hashes here.

File details

Details for the file ocmpy-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ocmpy-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a02f165f79e49d50a545c49e615ac0cbe85875a4ebdc6224ae47ae42df252cc5
MD5 cba9b03cd860b051e43a24132c4b15aa
BLAKE2b-256 d079c536aa21fe15a929af1a8955bc09c9f9ed911edfa9b5f0e410387b6d9a99

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