Skip to main content

A package to query Parosbox InfluxDB data securely

Project description

paros_data_grabber

A Python package to securely query Parosbox InfluxDB data using encrypted credentials.


Features

  • Loads encrypted InfluxDB credentials bundled inside the package.
  • Prompts user for a password to decrypt credentials securely.
  • Queries InfluxDB using Flux queries.
  • Processes and exports data to CSV, MATLAB .mat, or pickle formats.
  • Easy to extend and customize.

Installation

Make sure you have Python 3.7+ installed.

pip install paros-data-grabber==0.1.1.

pip install influxdb-client pandas scipy cryptography pytz  # Install these if not already installed

Example Usage

import os
import numpy as np
from paros_data_grabber import query_influx_data, save_data

# Fetch sensor data
data = query_influx_data(
    start_time="2025-02-25T17:30:00",
    end_time="2025-02-25T18:15:00",
    box_id="parosD",
    sensor_id="142180",
)

# Convert to NumPy arrays if needed
data_arrays = {key: df.values for key, df in data.items()}

# Print shape and a preview of each result
for key, arr in data_arrays.items():
    print(f"Data for {key} has shape {arr.shape}")

for key, df in data.items():
    print(f"First 100 rows for {key}:")
    print(df.head(100))
    print("\n")

# Save to file
save_data(data,  "output.csv")

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

paros_data_grabber-0.1.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

paros_data_grabber-0.1.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file paros_data_grabber-0.1.1.tar.gz.

File metadata

  • Download URL: paros_data_grabber-0.1.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for paros_data_grabber-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dd8aadeb3eba2f225f7fea563f015f7882c6a95f3d71b9d4b978eab5044708d2
MD5 9505eb83460a06c8c452268a87062de3
BLAKE2b-256 09574fa6fb92c69f2c7b0a632ccc82fb118c26a4c412a12886b8182dbbea7650

See more details on using hashes here.

File details

Details for the file paros_data_grabber-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for paros_data_grabber-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 773c0d0a8a6eb98c6e57713eb1f926efdb6c4ffc1c990e495db073fda70668b0
MD5 bad03f9a514c08777829f6782db5b5da
BLAKE2b-256 a1de3dc0acc3fb5eb888d4339998ff9bc6ea385d015b852c271a72a9fabea20d

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