skillfed

python-etcd

A python client for etcd

python-etcd v0.4.5 257.1K downloads/30d#8,450 on PyPI532
Permissive license MIT DORMANT released

What it is and what it does

python-etcd is a client library that lets Python code interact with etcd, a distributed key-value store commonly used for configuration management and service discovery in clustered systems. It provides methods to create, read, update, and delete keys, as well as watch for changes and implement distributed locks. The library also supports atomic compare-and-swap operations, TTL-based key expiration, and cluster introspection.

The package has no external runtime dependencies, making installation straightforward, but it is in dormant maintenance: the last release was 2017-03-02, and the codebase has not been updated since then. This means compatibility with modern etcd server versions and recent Python releases is uncertain, and any bugs or security issues discovered after that date are unlikely to be fixed.

Use it for:

  • Read and write configuration values to etcd from Python applications in a distributed system.
  • Implement distributed locks using etcd's atomic operations to coordinate work across multiple services.
  • Watch etcd keys for changes and react to updates in real-time within a Python service.
  • Query etcd cluster membership and leader information for cluster health monitoring.
  • Store and retrieve application state in etcd with automatic expiration using TTL.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A Python client library for etcd, a distributed key-value store, enabling read, write, delete, and watch operations on etcd servers.

No. The package is dormant (last updated 2017-03-02) and has not been maintained for years. While it has no known vulnerabilities and carries a permissive MIT license, the lack of updates means compatibility with modern etcd servers and Python versions is highly uncertain. For new projects, seek a maintained etcd client; for legacy systems still running etcd 2.0.x with Python 2.7 or early Python 3, it may work but carries significant technical debt risk.

Install

python-etcd on PyPI

pip

pip install python-etcd

uv

uv add python-etcd

poetry

poetry add python-etcd

Installing python-etcd

Before you install

High install friction: the package has no runtime dependencies but has not been updated since 2017-03-02. Maintenance status is dormant, though the repository remains active with 532 stars. Compatibility is stated for Python 2.7 and Python 3.3 or above, but support for modern versions is uncertain.

License in practice

MIT license (permissive) means you can use, modify, and distribute this package freely with minimal restrictions, provided you include the license notice.

Quickstart

pip install python-etcd

import etcd

client = etcd.Client(host='127.0.0.1', port=4001)
client.write('/mykey', 'myvalue')
result = client.read('/mykey')
print(result.value)

Requires a running etcd server version 2.0.x or later. The package was last released 2017-03-02 and may not work reliably with recent etcd versions or modern Python releases.

Verify before relying

  • Whether this package works correctly with etcd server versions released after 2017.
  • Whether this package is compatible with Python versions beyond 3.3.
  • Current maintenance status and whether critical bugs or security issues are being addressed.

Package facts

License MIT (permissive)
Python support not specified
Install friction high — source build required
Runtime dependencies none
Maintenance dormant — 3,452 days since the last release
Last repo commit
First released
Downloads 257,107/month — #8,450 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: python-etcd-0.4.5.tar.gz

Keywords: etcd, raft, distributed, log, api, client

License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 2Programming Language :: Python :: 3Topic :: Database :: Front-EndsTopic :: Software Development :: LibrariesTopic :: System :: Distributed Computing

Tags

etcd python clientdistributed key-value store clientetcd key-value operationspython etcd apietcd cluster managementdistributed configuration managementetcd watch and lock
distributed-systemskey-value-storedormant-maintenance

More Libraries packages