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.1.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.1.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: geo_calcite-0.1.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.1.1.tar.gz
Algorithm Hash digest
SHA256 04742cd5972703bb4b33a9ccc90af09f3bdc4231517f628d9fc85fd3e63cdde9
MD5 d29c92ee58ac2a152331a2137dfa944e
BLAKE2b-256 721211577c5db9efe522fedbc9941324fb260f8ed02a4a7281cebee689cc6a42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: geo_calcite-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.5 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 199d6269711d38d06ef51c9b8118926c6e1fa55c26e1d161aab168ce13cc5326
MD5 89f75fdaeb90c891b777b85cac312a2e
BLAKE2b-256 68345b76a397746fe8481486d383ddc34e829f0bfdf94ccd83081721f13516c6

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