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

Uploaded Python 3

File details

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

File metadata

  • Download URL: timestream-query-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 52810a928c0e517ddd8ba618b294373870d66934472aaec463dfc454148ac16b
MD5 25457fe9d84539fd0e1c4c3a4157af4c
BLAKE2b-256 810d122a2f4918eacbe5116bb567d952b87e8fb9bfc844697001184af30eab62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for timestream_query-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 754264fbb13a28ee5ed71140879ede8b5ace1b9babca98fd62b6f017f60106cc
MD5 a0f351980d1b595e44527bdc67694b76
BLAKE2b-256 dd8946cde54516f537429fa0ce70ce7af13c48cb9ed86ac7350bd8ecbd1bbc5c

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