ODM2 Python API
A Python-based application programmer's interface for the Observations Data Model 2 (ODM2).
For the latest documentation of the ODM2 Python API, see http://odm2.github.io/ODM2PythonAPI/
The easiest and most reliable way to install the ODM2 Python API (
odm2api) is using the
Conda package management system
To start using conda (if it's not your system default),
add conda to the PATH; on MacOSX and Linux,
it's something like
but the exact path may vary.
To activate a conda environment, say, "myenv":
activate myenv # On Windows source activate myenv # On MacOSX or Linux
odm2api currently is only tested on Python 2.7. Some changes have been made to support Python 3.x,
but they haven't been tested thoroughly.
Latest release, from conda-forge anaconda.org channel
conda install -c conda-forge odm2api
All dependencies are installed, including Pandas and its dependencies (numpy, etc).
To create a new environment "myenv" with the
conda create -n myenv -c conda-forge python=2.7 odm2api
Installing the development version from the
development branch on github
Note: We follow the Gitflow workflow for development.
wget https://raw.githubusercontent.com/ODM2/ODM2PythonAPI/master/requirements.txt wget https://raw.githubusercontent.com/ODM2/ODM2PythonAPI/master/requirements-dev.txt
Create conda environment
odm2api_devfrom the two
conda create -n odm2api_dev -c conda-forge python=2.7 --file requirements.txt --file requirements-dev.txt
Activate conda environment.
source activate odm2api_dev
Install the latest commit from the development branch
pip install git+https://github.com/ODM2/ODM2PythonAPI.git@development#egg=odm2api
This work was supported by National Science Foundation Grants EAR-1224638 and ACI-1339834. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.