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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for timestream-query-1.0.2.tar.gz
Algorithm Hash digest
SHA256 aadd7aaf5b772d4d3f6325de0b4d589e10706028c5958b1b869d8c6cdc6275e3
MD5 c0f7570274501b6cdb449ffa95112b90
BLAKE2b-256 0f5c04a0156e884f44ebd07d6422ff94c0ba580caf4b490468769109f0d82fef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for timestream_query-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c0d7d623854a909df7138473b6040f4d2085ec528f6e46c9871d8a8c609bbb04
MD5 febe7748a416620f92ab19f1578f03bc
BLAKE2b-256 a30b03517491d0708aa7365973faf4d12e67a8954124be4274a8e5d56c36e810

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