An open API service indexing awesome lists of open source software.

https://github.com/sublee/etc

An etcd Python client library
https://github.com/sublee/etc

Last synced: 6 months ago
JSON representation

An etcd Python client library

Awesome Lists containing this project

README

          

# etc

An etcd Python client library.

[![Build Status](https://img.shields.io/travis/sublee/etc.svg)
](https://travis-ci.org/sublee/etc)
[![Coverage Status](https://img.shields.io/coveralls/sublee/etc.svg)
](https://coveralls.io/r/sublee/etc)

```python
>>> import etc
>>> etcd = etc.etcd('http://127.0.0.1:4001')

>>> etcd.set('/etc/foo', u'1')
...>
>>> etcd.set('/etc/bar', u'2', ttl=3)
...>

>>> etcd.get('/etc/foo')
...>
>>> etcd.get('/etc')
...>

>>> etcd.append('/etc', u'etc')
...>

>>> etcd.wait('/etc', recursive=True)
...>
```