Skip to main content

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)

Metadata

Release files for python3-etcd3 0.13.0

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

Source distribution (sdist)

Source distribution for python3-etcd3 0.13.0
File Size Uploaded
python3_etcd3-0.13.0.tar.gz 38.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python3-etcd3 0.13.0
File Interpreter ABI Platform
python3_etcd3-0.13.0-py3-none-any.whl Python 3 none any Details

Total release size: 80.5 kB

Release files / python3_etcd3-0.13.0.tar.gz

Download URL python3_etcd3-0.13.0.tar.gz
Size 38.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c7e3a07dd43aa7d2a82c2a491e0fc9d432da185cb6720858cfb4031418704ce3
BLAKE2b-256 checksum
How to use checksums
1d37918773deb8e7e64787a2e955777520f524e98fe00363c96a5d7238cb2871
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / python3_etcd3-0.13.0-py3-none-any.whl

Download URL python3_etcd3-0.13.0-py3-none-any.whl
Size 41.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d94a1c1b311e0752f0c3eee020e7c4c0e1fd5163f27fb3198a211c4ffafc944
BLAKE2b-256 checksum
How to use checksums
8851dd39aef742bfa909ed6d174d776da3e8cfa57eb4349b91dcc0d2b4b8bc42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.13.0 This release

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