Skip to main content

client for the tourbillon service

Project description

# Tourbillon Client

## Installing

pip install -U pip pbr setuptools
pip install tourbillon-client


## Usage


### Connection
```python
from tourbillon_client import Client

client = Client('http[s]://<tourbillon instance>[:<tourbillon port>]/')

```

### 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:00', 40),
('2016-11-03 05:00', 50),
]
client.write('ham', sample_data)
```


### Read back data
```python
result = client.read('ham', '2016-11-01', '2016-11-05')
print(result)
# value
# index
# 2016-11-03 01:00:00 10
# 2016-11-03 02:00:00 20
# 2016-11-03 04:00:00 40
# 2016-11-03 05:00:00 50
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tourbillon-client, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size tourbillon-client-1.0.0.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page