Skip to main content

Python SDK for Geobox's APIs

Project description

Geobox logo

Geobox® is a cloud-based GIS platform that enables users (local governments, companies and individuals) to easily upload their geo-spatial data, publish them as geo-services, visualize and analyze their geo-content (geo-data or -services) and share them with others. Geobox is a modern, world-class and cloud-ready geo-spatial platform that provides standard, safe, efficient and easy to use GI-Services.

Geobox python SDK provides seamless integration with the Geobox API, enabling developers to work with geospatial data and services programmatically. This comprehensive toolkit empowers applications to leverage advanced geospatial capabilities including data management and analysis.

Here you can find the official documentation for Geobox Python SDK.

Installation

Enable Virtualenv and Install Dependencies:

pip install geobox

Install with Geometry Dependencies

pip install geobox[geometry]
from geobox import GeoboxClient

client = GeoboxClient()

layer = client.get_vectors(search='tehran')[0]
feature = layer.get_feature(feature_id=1)
geom = feature.geometry

Install with Progress Bar Support

pip install geobox[tqdm]
from geobox import GeoboxClient

client = GeoboxClient()

task = client.get_tasks()[0]
task.wait() # shows progress bar by default. use progress_bar=False to disable it.

Install with Async Support

pip install geobox[async]
from geobox.aio import AsyncGeoboxClient

async with AsyncGeoboxClient() as client:
    files = await client.get_files()
    downloads = [file.download() for file in files]
    await asyncio.gather(*downloads) # downloads multiple file asynchronously

Install with All Available Dependencies

pip install geobox[all]

Example

from geobox import GeoboxClient

client = GeoboxClient()

layer = client.get_vectors(search='tehran')[0]
features = layer.get_features(out_srid=4326, bbox_srid=4326)
fields = layer.get_fields()

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

geobox-2.5.2.tar.gz (288.1 kB view details)

Uploaded Source

Built Distribution

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

geobox-2.5.2-py3-none-any.whl (286.2 kB view details)

Uploaded Python 3

File details

Details for the file geobox-2.5.2.tar.gz.

File metadata

  • Download URL: geobox-2.5.2.tar.gz
  • Upload date:
  • Size: 288.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for geobox-2.5.2.tar.gz
Algorithm Hash digest
SHA256 ab8f48c2c1e18ac1e4a9a7a7a1ad5d587670267cf8cb43c009f39f6f9fcf0be7
MD5 9b096b7345d832c2bdeafb189162a7e8
BLAKE2b-256 e7d8f722d8bb8fb1318a0810ca45227da8eb6cfacaed290799ffbe1a9ff9481a

See more details on using hashes here.

File details

Details for the file geobox-2.5.2-py3-none-any.whl.

File metadata

  • Download URL: geobox-2.5.2-py3-none-any.whl
  • Upload date:
  • Size: 286.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for geobox-2.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 de32068cba1989334ad1290c23fa66667430d6770c23c5286260960939957d58
MD5 a8c7f1900abb062ed54cd8e9256ce430
BLAKE2b-256 3f4a61fb82752edf8541ccd19005d92d93ccd66d7526c07b03689a82fcd6830a

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