涡旋服务客户端
tourbillon-client的Python项目详细描述
#tourbillon客户端
>pip-install-u-pip-pbr-setuptools
>pip-install-tourbillon客户端
实例>;[:<;Tourbillon端口>;]/')
```
### Create a table
```python
client.create('ham')
```
### Delete a table
```python
client.delete('ham')
```
### Write data to a table
```python
client.create('ham')
sample_data = [
('2016-11-03 01:00', 10),
('2016-11-03 02:00', 20),
('2016-11-03-04-03 04:00,40年,
('2016-11-03-05:00,50年,
]
client.write('ham',sam样本数据)
```
result=client.read('ham','2016-11-01','2016-11-05')
prin(res打印结果)
指数
2016-11-03 01:00:00 10
2016-11-03 02:00:0020
2016-11-03 04:00:00 40
2016-11-03 05:00:00 50
````
>pip-install-u-pip-pbr-setuptools
>pip-install-tourbillon客户端
实例>;[:<;Tourbillon端口>;]/')
```
### Create a table
```python
client.create('ham')
```
### Delete a table
```python
client.delete('ham')
```
### Write data to a table
```python
client.create('ham')
sample_data = [
('2016-11-03 01:00', 10),
('2016-11-03 02:00', 20),
('2016-11-03-04-03 04:00,40年,
('2016-11-03-05:00,50年,
]
client.write('ham',sam样本数据)
```
result=client.read('ham','2016-11-01','2016-11-05')
prin(res打印结果)
指数
2016-11-03 01:00:00 10
2016-11-03 02:00:0020
2016-11-03 04:00:00 40
2016-11-03 05:00:00 50
````