Skip to main content

Python client for Geo-Calcite data service

Project description

Geo-Calcite Python Client

PyPI version License

A lightweight Python client for interacting with the Geo-Calcite API.
Provides helpers for connecting to, refreshing, querying, and disconnecting from Geo-Calcite data sources over HTTP, and returns results as native Python objects or pandas DataFrames.


Features

  • Connect to one or more Geo-Calcite data sources by DID (data identifier)
  • Refresh existing connections
  • Disconnect from data sources
  • Query connected sources via SQL and return results as a pandas DataFrame

Table of Contents


Installation

Install via pip:

pip install geo_calcite

Quickstart

# Import and create a GeoCalcite client, ignore if already created.
from geo_calcite import GeoCalciteClient
client = GeoCalciteClient()

# Connect to datasource, like "pbdb" with its DID "1"
dids = [1]
client.connect(dids)

# SQL query for data entity, remove "LIMIT 5" to get full data. 
sql = "SELECT * FROM pbdb.gx_8260001_pbdb LIMIT 5"
df = client.query(sql)
print(df)

# Disconnect from datasource after use.
client.disconnect(dids)

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/foo
  3. Commit your changes: git commit -am 'Add foo feature'
  4. Push to the branch: git push origin feature/foo
  5. Open a Pull Request

License

This project is licensed under the Apache License, Version 2.0. See the LICENSE file for details.

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

geo_calcite-0.2.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

geo_calcite-0.2.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file geo_calcite-0.2.1.tar.gz.

File metadata

  • Download URL: geo_calcite-0.2.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for geo_calcite-0.2.1.tar.gz
Algorithm Hash digest
SHA256 9852aade07362c4a46013edcc70738b77695305c8b0d864da79b58878885596d
MD5 396b958dd501a32fea81876f65cc55fd
BLAKE2b-256 ebc8f31a84a9165bd6f7a6dd7eaf4ab814d0e6857b4a0f891d54d4851314aaf1

See more details on using hashes here.

File details

Details for the file geo_calcite-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: geo_calcite-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for geo_calcite-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 efd628517bc223357057ac9698c9ee97f37a9097c3b40307d5269989a47c146c
MD5 28f27f9724de680335e3e1b3c0fc38f9
BLAKE2b-256 ad8637ed01c06bcc679c73bc32816142de78ba836fe4961fb369c0f75a191de3

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