Skip to main content

A package for easy access to Geo Engine instances

Project description

Geo Engine Python Package

This package allows easy access to Geo Engine functionality from Python environments.

Test

Create a virtual environment (e.g., python3 -m venv env). Then, install the dependencies with:

python3 -m pip install -r requirements.txt
python3 -m pip install -e .

Run tests with:

pytest

Dependencies

Since we use cartopy, you need to have the following system dependencies installed.

  • GEOS
  • PROJ

For Ubuntu, you can use this command:

sudo apt-get install libgeos-dev libproj-dev

Build

You can build the package with:

python3 -m pip install --upgrade build
python3 -m build

Distribute to PyPI

Test-PyPI

python3 -m build
python3 -m twine upload --repository testpypi dist/*

PyPI

python3 -m build
python3 -m twine upload --repository pypi dist/*

Try it out

Start a python terminal and try it out:

import geoengine as ge
from datetime import datetime

ge.initialize("http://peter.geoengine.io:6060")

time = datetime.strptime('2014-04-01T12:00:00.000Z', "%Y-%m-%dT%H:%M:%S.%f%z")

workflow = ge.workflow_by_id('4cdf1ffe-cb67-5de2-a1f3-3357ae0112bd')

print(workflow.get_result_descriptor())

workflow.get_dataframe(ge.Bbox([-60.0, 5.0, 61.0, 6.0], [time, time]))

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

geoengine-0.1.0.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

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

geoengine-0.1.0-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file geoengine-0.1.0.tar.gz.

File metadata

  • Download URL: geoengine-0.1.0.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

File hashes

Hashes for geoengine-0.1.0.tar.gz
Algorithm Hash digest
SHA256 341c4550d89c64d2e3ec7d3e3134b58a425a88d5e2c7ef4b33d94ebc101ca7b9
MD5 cf4329e92871978ea62847b66cbcd49f
BLAKE2b-256 3a99835a994697d902a1631fab079bbfc5380aeb71ca53df5074ea68f29b726f

See more details on using hashes here.

File details

Details for the file geoengine-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: geoengine-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

File hashes

Hashes for geoengine-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f9e4dde0a288eb63d41776c14988a87eb0f882067d2ab18c27e8aff4a6bd222d
MD5 3103f492dad60d2abb6ceda670b956cd
BLAKE2b-256 46c23c723c724462596f3bd668b45620136753b2288eed922264b0b38768d70f

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