Skip to main content

Community Python client for InfluxDB IOx (CLI)

Project description

About

This is a community repository of Python code for InfluxDB with IOx. While this code is built on officially supported APIs, the library and CLI here are not officially support by Influx Data.

When installed, you have access to 2 pieces of functionality:

  1. A CLI for reading and writing data to InfluxDB with IOx.
  2. A client library for reading and writing data to InfluxDB with IOx.

Add a Config

You can drop a config file called config.json in the directory where you are running the influx3 command:

{
{
    "my-config": {
        "namespace": "your-namespace",
        "host": "your-host",
        "token": "your-token",
        "org": "your-org-id",
        "active": true
    }
}
}

Or you can use the config command to create or modify a config:

% influx3 config --name="my-config" --namespace="<database or bucket name>" --host="us-east-1-1.aws.cloud2.influxdata.com" --token="<your token>" --org="<your org ID>"

If you are running against InfluxDB Cloud, then use the bucket name for the namespace in you configuration.

Run as a Command

% influx3 sql "select * from anomalies"
% influx3 write testmes f=7 

Query and Write Interactively

% influx3
Welcome to my IOx CLI.

(>) sql
(sql >) select * from anomalies
    check    id  observed                          time     type user_id  value
0       1  None       NaN 2023-02-03 20:56:57.513279776    error       1  400.0
1       1  None       NaN 2023-02-03 17:52:54.328785835  latency       1  900.0
(>) write 
testmes f=5 boring-observability

Client library

This project also includes a new client library that strives for utter simplicity. It includes 3 functions, a constuctor, write(), and read().

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

pyinflux3-cli-0.7.4.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

pyinflux3_cli-0.7.4-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file pyinflux3-cli-0.7.4.tar.gz.

File metadata

  • Download URL: pyinflux3-cli-0.7.4.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for pyinflux3-cli-0.7.4.tar.gz
Algorithm Hash digest
SHA256 01c376d99a84d71028ae41f3a7c78a14bf55bf5f7003eb3cfd2599c496b90208
MD5 6f4d43e79b5cb69c3a1fa49d93ed65f1
BLAKE2b-256 8d8a9c59eef1e6dbbe7bbb4a05dd4a024f07392d2d11a32492278d48904fdc84

See more details on using hashes here.

File details

Details for the file pyinflux3_cli-0.7.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pyinflux3_cli-0.7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 826a2e2cc7ac243172069ea9a827251050645608b2088369b420b4b1fcacadbf
MD5 f27ef2c8547e69d27c24105774daf76d
BLAKE2b-256 26d152bbfcaf98fbb1da3d7e6e495d9581a938bd8de0ee54c427b51bfd1f1f4b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page