Skip to main content

etcd3_wrapper

A thin wrapper around Python module etcd3 to make it a little easier to deal with etcd.

Warning: The API isn't fully stable and can changed significantly in future.

For Example, you want to get an entry from etcd. You would write something like this

from etcd3_wrapper import Etcd3Wrapper

client = Etcd3Wrapper()
entry = client.get("/planet/earth")

if entry:
    # It would print key and value of entry
    # in bytes format b'....'
    print(entry.key, entry.value)

Output

b'/planet/earth' b'{"population": "7.53 Billion"}'
# If you know that the value in etcd is in JSON
# format. You can do the following

json_entry = client.get("/planet/earth", value_in_json=True)

if json_entry:
    # Now, entry.value is of type dict
    print(entry.key, entry.value)

    # So, you can do this too
    print(f"Earth population is {entry.value['population']}")

Output

/planet/earth {"population": "7.53 Billion"}
Earth population is 7.53 Billion

Release files for etcd3-wrapper 0.5.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for etcd3-wrapper 0.5.4
File Size Uploaded
etcd3_wrapper-0.5.4.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for etcd3-wrapper 0.5.4
File Interpreter ABI Platform
etcd3_wrapper-0.5.4-py3-none-any.whl Python 3 none any Details

Total release size: 18.6 kB

Release files / etcd3_wrapper-0.5.4.tar.gz

Download URL etcd3_wrapper-0.5.4.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ac7a69e448b6870c58eeb74ae11263cac0323f75d404619df0064ef239e9fa1b
BLAKE2b-256 checksum
How to use checksums
a44fe9fa96300614fb9436e9e89c3ed582ca433dac74b92d3331a88a2e95d5fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Release files / etcd3_wrapper-0.5.4-py3-none-any.whl

Download URL etcd3_wrapper-0.5.4-py3-none-any.whl
Size 16.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d73d74a34a2e27297dc01b214539a7a735e41e9492814c9050d97b5bc337d41b
BLAKE2b-256 checksum
How to use checksums
d9897ee73e5c8fde3385afa0c57cdfdcb9c6b832d3cd11579c9e74abe58ec37f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.5.4 This release

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page