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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file geoengine-0.2.1.tar.gz.
File metadata
- Download URL: geoengine-0.2.1.tar.gz
- Upload date:
- Size: 15.5 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.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4ac2250dddd152c980c9e3f4f3330a2802c3e4fd2f43237343ac2fa3443b5c6
|
|
| MD5 |
1e470127d18653b70f33363e878aae13
|
|
| BLAKE2b-256 |
2f777c154d8942f84a560b9dd929a6ba2aee02761401493e9b24d7d657e7b104
|
File details
Details for the file geoengine-0.2.1-py3-none-any.whl.
File metadata
- Download URL: geoengine-0.2.1-py3-none-any.whl
- Upload date:
- Size: 21.9 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.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86445e26ec0ff59f333ab0bd21a7493b8ee251650c5c8b0100ec650dac4d8bcf
|
|
| MD5 |
0748f5e46ad0a1b1e1b989aac462fa96
|
|
| BLAKE2b-256 |
f39f83e8d69cc3a2cf8d5763eaeb80f20981df7b19e0ee8b0d24919f3de2b95f
|