Skip to main content

Python client for etcd v3

Project description

python3-etcd3

A Python client library for etcd version 3, modernized for Python 3.8+.

About This Project

This project is a Python 3 modernization of kragniz/python-etcd3.

The original project has not been actively maintained and had compatibility issues with newer Python versions and gRPC. This fork provides:

  • Python 3.8+ compatibility (removed Python 2 support)
  • Modern Python syntax with type annotations
  • Updated gRPC compatibility for newer versions
  • Modern packaging with pyproject.toml
  • Code quality improvements with ruff formatting

Credit: All core functionality and original implementation credit goes to Louis Taylor and the original contributors of python-etcd3.

Features

  • Full etcd3 API support via gRPC
  • Asynchronous operations
  • Distributed locking
  • Key watching capabilities
  • Lease management
  • Transaction support
  • Cluster management

Installation

pip install python3-etcd3

Quick Start

import etcd3

etcd = etcd3.client()

# Put a key
etcd.put('key', 'value')

# Get a key
value, metadata = etcd.get('key')
print(value)

# Watch for changes
watch_iterator, cancel = etcd.watch('key')
for event in watch_iterator:
    print(event)

Requirements

  • Python 3.8+
  • grpcio
  • protobuf

Contributing

This project focuses on maintaining Python 3 compatibility and modern Python practices. For major feature additions, please consider contributing to the original project first.

License

Apache License 2.0 (same as original project)

Project details


Download files

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

Source Distribution

python3_etcd3-0.13.0.tar.gz (38.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python3_etcd3-0.13.0-py3-none-any.whl (41.8 kB view details)

Uploaded Python 3

File details

Details for the file python3_etcd3-0.13.0.tar.gz.

File metadata

  • Download URL: python3_etcd3-0.13.0.tar.gz
  • Upload date:
  • Size: 38.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for python3_etcd3-0.13.0.tar.gz
Algorithm Hash digest
SHA256 c7e3a07dd43aa7d2a82c2a491e0fc9d432da185cb6720858cfb4031418704ce3
MD5 0a56d4d44f72b426a0a1b0b2e74d3f22
BLAKE2b-256 1d37918773deb8e7e64787a2e955777520f524e98fe00363c96a5d7238cb2871

See more details on using hashes here.

File details

Details for the file python3_etcd3-0.13.0-py3-none-any.whl.

File metadata

  • Download URL: python3_etcd3-0.13.0-py3-none-any.whl
  • Upload date:
  • Size: 41.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for python3_etcd3-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d94a1c1b311e0752f0c3eee020e7c4c0e1fd5163f27fb3198a211c4ffafc944
MD5 6dcff84e644e49c00674885484bf90ab
BLAKE2b-256 8851dd39aef742bfa909ed6d174d776da3e8cfa57eb4349b91dcc0d2b4b8bc42

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page