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
Release history Release notifications | RSS feed
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.2.0.tar.gz
(15.4 kB
view hashes)
Built Distribution
geoengine-0.2.0-py3-none-any.whl
(21.8 kB
view hashes)
Close
Hashes for geoengine-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb50e0d3d8c1275b95516418fee999315cfb2835e73df75bb1f12c95172ba54e |
|
MD5 | 839e70e5205b29339e20052c6b6982e8 |
|
BLAKE2b-256 | ee758ab06270161c84b39ad92d21129c8cb4ddc1e4d85986bb8bb4b17cbe9e7d |