Skip to main content

A small utility class to query timestream to object array quickly

Project description

Timestream Query

This repository contains a Timestream Utility class to query data from Timestream to Object array easily.

Example Usage

region = "us-west-2"
session = boto3.Session()
database = "YOUR_DATABASE"
table = "YOUR_TABLE"
query_client = session.client("timestream-query", config=Config(region_name=region))
query_util = QueryUtil(query_client, database, table)
query_string = f"SELECT Id FROM {database}.{table} WHERE time >= ago(24h)"

# Run Query
id_list = query_util.run_query(query_string, True)

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

timestream-query-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

timestream_query-1.0.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file timestream-query-1.0.0.tar.gz.

File metadata

  • Download URL: timestream-query-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for timestream-query-1.0.0.tar.gz
Algorithm Hash digest
SHA256 893357271b82fd094a7d1f7cb806eb27300d52339c2fdd56804e53d0d428b762
MD5 333100228c966492c7f198ea7847bd9a
BLAKE2b-256 3f835b67f98f258787d4ce8a38da2ba0b097bb142ce9afb1930ad62fd5268276

See more details on using hashes here.

File details

Details for the file timestream_query-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for timestream_query-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff9c0c6256b1b1ac9c9ec84d6268bd5290eb1f7d5be3a2be8d836678bf64a9d4
MD5 242664123c1b2e7afe057930ac523b8b
BLAKE2b-256 3e3776cb0960b852ee0fd1a7ae495db46e3b1e5ce1c94a6c4ec156ea9ddd74c7

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