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

from geo_calcite import GeoCalciteClient

# Create a GeoCalcite client
client = GeoCalciteClient()

# Connect to datasource
dids = [1, 2, 3]
client.connect(dids)

# Query
sql = "SELECT * FROM heat_flow.Combined_05 LIMIT 10"
df = client.query(sql)
print(df)

# Disconnect from datasource
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.0.tar.gz (7.7 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.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for geo_calcite-0.1.0.tar.gz
Algorithm Hash digest
SHA256 58713b2727e18da4b22dba16e6b42b91401bd3715218b422a3ff67b5a9b97f84
MD5 4470c08c21f0127942ef7ec2a91fd6b9
BLAKE2b-256 44bc13d30b18f0599e5cec3d296552db5acd3f35ef468a45adc53966364430dd

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for geo_calcite-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4514ec19a9972e555ebb58e201e0b917843a4e02b785f93820988888f35a9bc2
MD5 0b343579c15cae7487f7af1d5b003962
BLAKE2b-256 b65202ba33dd790102d876756fa2208a1b3119a5aed9a93b4841050dcab91fa2

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