Skip to main content

Minimal InfluxDB v2 quantities-of-interest writer client.

Reason this release was yanked:

This version is yanked.

Project description

deteqt

Python package for writing quantities of interest (QOI) to InfluxDB v2.

Install from TestPyPI

python -m pip install --upgrade pip
python -m pip install \
  --index-url https://test.pypi.org/simple/ \
  --extra-index-url https://pypi.org/simple/ \
  deteqt

User configuration

Recommended (one-time):

from deteqt import create_settings_file

create_settings_file()  # creates ./settings.toml

Then edit only token in ./settings.toml.

Required keys:

  • url
  • org
  • bucket
  • token

Optional keys:

  • defaults.measurement
  • defaults.tags

Your admin provides url, org, bucket, and a write token.

Package default template is prefilled for this deployment:

  • url = "https://mahmut-oqs.duckdns.org"
  • org = "deteqt"
  • bucket = "test-bucket-1"
  • you only fill token

Python API

Public write API:

  • write_qoi(...)

Minimal usage:

from deteqt import write_qoi

write_qoi(
    qoi="frequency",
    nominal_value=1.01,
    uncertainty=0.01,
    run_ID="20260211-000001-abc123-demo",
    cycle_ID="20260211",
    condition="analysis_CosineAnalysis",
    settings_path="settings.toml",
)

Fixed QOI Schema

Measurement key:

  • qoi

Tag keys:

  • element
  • label
  • unit
  • element_label
  • device_ID
  • run_ID
  • cycle_ID
  • condition

Field keys:

  • nominal_value
  • uncertainty
  • tuid

For additional metadata:

  • use extra_tags for custom tags
  • use extra_fields for custom fields

Logging

Package logs use Python logging only.

Infrastructure and deployment are admin-managed.

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

deteqt-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

deteqt-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: deteqt-0.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for deteqt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 75b09fe104d40dba0e555d49fe396b04bda55d29abcb56d9b6569876f1bb9cc3
MD5 ab4aaf8cc647d88a1f349af65a3ca1e1
BLAKE2b-256 70d6132fa56d178ef93b4d8f58a8afcbe0467850c3096ee97218aeaecde66e4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: deteqt-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for deteqt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 241b46aa67c2688698ff50c620a969d9b76f9ce9842875abc2263f5c1c9a9cd7
MD5 699efd0e525a67fcccca324a10f3032d
BLAKE2b-256 158ce54a934aa2ad24fe302e5dac600ace417ce701e3c99040bb925452ddb586

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