Skip to main content

Ecosophy EarthOS API bindings

Project description

Ecosophy EarthOS API Python bindings

These are open API bindings for Ecosophy's EarthOS API. You must have an EarthOS account in order to use the bindings.

Prerequisites

Before you can use these API bindings, ensure you have:

  • Python 3.9 or later.
  • An active EarthOS account with API access.

Installation

Try:

pip install earthos-python

Or, if you have cloned this from a git repository, you can also:

python setup.py install

(Note that this method is deprecated, but it will work for now.)

Getting started

First, log in to EarthOS and generate an API key in your organization settings dialog.

Then, in Python:

from earthos import EarthOS
APIKEY = 'your api key here'
eo = EarthOS(APIKEY)

With this in place, you can start fetching and working with the data, for example:

myformula = EOVar('gfs.relative_humidity')/100.0
data = eo.get_region(north=90.0, south=-90.0, east=180.0, west=-180.0, formula=myformula)
data.show()

Examples and testing

You can use pytest to run tests to see if your setup is accurate. Beware that these tests will count against your API credits. See code in the tests and examples directories for further examples.

API Reference

Refer to the Ecosophy EarthOS API documentation for full API documentation.

License

This library is copyright © Ecosophy ehf 2024. It is released under the terms of the Apache License 2.0.

Use of the EarthOS API is subject to end user license conditions, which can be seen at https://earthos.ai/api-license

Contact

For support or any questions, please contact us at info@ecosophy.is or through your EarthOS account.

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

earthos-0.1.1.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

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

earthos-0.1.1-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file earthos-0.1.1.tar.gz.

File metadata

  • Download URL: earthos-0.1.1.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.6

File hashes

Hashes for earthos-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e21ac5de110c92ae6c4869d9e5821d8d237d170ad6555a02bb5408a4c7e24755
MD5 70971b830697e07020da5c44fc241702
BLAKE2b-256 e830b554547414fc985b20d2c2ea0abeaeee0233a52947e560da48100769e1d5

See more details on using hashes here.

File details

Details for the file earthos-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: earthos-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.6

File hashes

Hashes for earthos-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5bfe76e9b04e9ee0b981086c19c9a06ae430b2c713914df1f7132e875401f229
MD5 a50531eef2d9661e92b15908895cf64b
BLAKE2b-256 4a126f866985956e57ac9d0949561f7153dcf295f359051bc54cef04b938302b

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