How to Install#
There are 3 main ways to install eodms-api-client
If you’re using conda, download from conda-forge:
conda install -n <name-of-conda-env> eodms-api-client -c conda-forge
No access to conda or not a fan? It’s also on PyPI:
pip install eodms-api-client
If you like playing with potentially-unstable code, install the source from github:
pip install https://github.com/m9brady/eodms-api-client/archive/main.zip
Configuring .netrc#
In order to not be bugged to enter your username/password every time, you may wish to create an EODMS entry in .netrc
file (_netrc
on Windows) for your userprofile
For Linux/Mac users:
echo "machine data.eodms-sgdot.nrcan-rncan.gc.ca login <username> password <password>" >> ~/.netrc
# set permissions to user-readwrite-only
chmod 600 ~/.netrc
For Windows users:
cd %USERPROFILE%
type nul >> _netrc
notepad _netrc
# in notepad, paste the following and replace the chevroned text
machine data.eodms-sgdot.nrcan-rncan.gc.ca login <username> password <password>
# save and quit notepad