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.0.tar.gz (7.8 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.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: geo_calcite-0.2.0.tar.gz
  • Upload date:
  • Size: 7.8 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.0.tar.gz
Algorithm Hash digest
SHA256 a6abd53aaee8358cab0663c0c987546231c76cefb001e29521372ef9198696dd
MD5 68630ded7cd0be95056021969d4d37e8
BLAKE2b-256 66924f4b314d045ca585ebbb98ce86157009ab8b2e3fed281955c2beb2435c4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: geo_calcite-0.2.0-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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cebecfb6ed2e46da0eced068b53ece112ac3dc08240c4c0607a26f52b58ef316
MD5 456b493e67286d1a59e667f70971b996
BLAKE2b-256 3a61571ced4e5245fea171f2791e1bd2f1be14d8a5ef0bcd973ce33813f27e1c

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