CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-influxdb-client

Comprehensive Python client library for InfluxDB 2.x with sync/async APIs for writing, querying, and managing time series data.

82

1.18x
Overview
Eval results
Files

rubric.jsonevals/scenario-6/

{
  "context": "This evaluation assesses how effectively the engineer uses the influxdb-client-python library's batching capabilities for time-series data ingestion. The focus is on proper use of WriteOptions for configuring batch size and flush intervals, correct Point construction with tags and fields, and proper resource cleanup with context managers.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "WriteOptions Configuration",
      "description": "Uses the WriteOptions class to configure batching behavior with batch_size parameter set to 500 and flush_interval parameter set to 5000 milliseconds",
      "max_score": 25
    },
    {
      "name": "Write API Creation",
      "description": "Correctly creates a write_api instance by calling client.write_api() with the configured WriteOptions passed as the write_options parameter",
      "max_score": 15
    },
    {
      "name": "Point Construction",
      "description": "Uses the Point class to construct data points with measurement name, properly adds tags using the tag() method for sensor_id and location, adds fields using the field() method for temperature value, and includes timestamps using the time() method",
      "max_score": 25
    },
    {
      "name": "Batch Writing",
      "description": "Calls write_api.write() method with bucket parameter and Point objects to write data, allowing the library to handle automatic batching based on configured triggers",
      "max_score": 15
    },
    {
      "name": "Resource Cleanup",
      "description": "Uses context managers (with statement) for InfluxDBClient or explicitly calls client.close() to ensure all buffered data is flushed and connections are properly closed",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-influxdb-client

tile.json