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

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.2.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.2-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: earthos-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 5cb4e8b63984cc77c450dfe656148670859257c9e1c58532b51b0cf261d3b3d0
MD5 ae794da966c039cab560b20be41d92d3
BLAKE2b-256 7794f8cad988230fecd6b31fb35500c2d303f0d61be327cf521183d719d98028

See more details on using hashes here.

File details

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

File metadata

  • Download URL: earthos-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2aa0423818f2fbd3e8cb4c8804bde3f7c54de92b65b038c8b1ecb2622adb4ee3
MD5 80a618cc23f5e6394a1b05e0f605b7c3
BLAKE2b-256 644bbaff5b27165f3ec5e328088e4a11e059b79e7e8d0240a33ec5eb0b109f06

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