Skip to content

Commit

Permalink
add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
oreh committed Feb 16, 2015
1 parent 4d4c853 commit 80dcedf
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# introduction

_simpletcd_ is a simple etcd client that aims to make recursive get/put operations easier.


# Install

```
pip install simpletcd
```

# Usage

## Put a value to a key
```python
from simpletcd.ectd import Etcd

etcd = Etcd()
etcd.put('mytestkey', 'test value')

```

## Put multiple keys recursively

```python
from simpletcd.ectd import Etcd

etcd = Etcd()
etcd.put('mytopkey', {'key_0': 'v0', 'key_1': {'key_1_0': 'v1_0', 'key_1_1': 'v1_1'}})

```

## Get a key
```python
from simpletcd.ectd import Etcd

etcd = Etcd()
etcd.get('mytestkey')

```

## Get multiple keys recursively
```python
from simpletcd.ectd import Etcd

etcd = Etcd()
etcd.put('mytopkey')

```

0 comments on commit 80dcedf

Please sign in to comment.