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
- Host: GitHub
- URL: https://github.com/sublee/etc
- Owner: sublee
- License: bsd-3-clause
- Created: 2016-01-26T10:51:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-06-05T11:24:52.000Z (about 8 years ago)
- Last Synced: 2025-08-17T14:24:07.326Z (11 months ago)
- Language: Python
- Homepage: http://etc.readthedocs.org
- Size: 66.4 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# etc
An etcd Python client library.
[
](https://travis-ci.org/sublee/etc)
[
](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)
...>
```