Skip to main content

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

Project description


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

Getting Started

To install

pip install ocmpy

To run

import ocmpy

ocmpyInstance = Ocmpy()
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


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

pip install -r requirements.txt

Running the tests

python3 -m unittest test/


pip install ocmpy


  • Jeremy Banker - Initial work - Loredous


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.

Files for ocmpy, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size ocmpy-0.1.4-py3-none-any.whl (33.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ocmpy-0.1.4.tar.gz (32.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page