semvec/pypi-packages huggingface dataset:
opentsdbdriver 0.0.2
For OpenTSDB
Requires Python: >=3.6

## OpenTSDB Utils
封装 OpenTSDB 的访问层

- Timestamps
对于Opentsdb能否接受的数据，数据能够以秒或者毫秒写入数据
- 秒是10位数，```1616048202```。举例，print(int(time.time()))
- 毫秒是13位数，```1616048202000```。举例，print((int(time.time() * 1000)))



#### 使用参考Demo
```python
import time
import random
from opentsdbdriver import opentsdbdriver


def get_round():
    return round(50 * random.random(), 2)


now = int(time.time() * 1000)
conn = opentsdbdriver.connect("localhost", "4242")
conn.put_data("temp_FM", get_round(), now, {"eno": "AE123"})
q_r = conn.get_data("temp_FM", now - 1000000, "sum")
print(q_r)
data = conn.get_latest_data("temp_FM", {"eno": "AE123"})
print(data)
```