python-consul2
Python client for Consul (http://www.consul.io/)
Decision gist · record as of 2026-08-14
No. The package is abandoned (last commit 2022-02-16, no updates for over 2 years) and unlikely to receive security patches or compatibility fixes. While it has low install friction and a permissive license, the lack of maintenance makes it risky for production use. Consider an actively maintained Consul client library instead.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a running Consul server accessible at the configured address; proxy environments may require http_proxy, https_proxy, and no_proxy environment variables to be set.
- Low install friction with only two runtime dependencies (requests and six).
- However, the package is abandoned as of 2022-02-16 with no active maintenance, so security updates and bug fixes are unlikely.
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing commercial and private use with minimal restrictions.
last release 2020-10-20 (2124 days) · last repo commit 2022-02-16 · 129 stars · archived
0 known vulnerabilities (OSV.dev, 2026-08-14) · 110,644 downloads/mo, #12,449 on PyPI
Alternatives
Verify before relying
pip install python-consul2
import consul
c = consul.Consul()
index, data = c.kv.get('foo', index=index)
print(data['Value'])
c.kv.put('foo', 'bar')- Whether the package works reliably with modern Consul versions beyond v1.6.1.
- Current compatibility with Python versions beyond 3.7 listed in classifiers.
- Whether all Consul HTTP API endpoints are fully implemented or if gaps remain.
What it is and what it does
python-consul2 is a Python client library that wraps Consul's HTTP API, enabling programmatic interaction with Consul for service discovery, configuration management, and health monitoring. It provides methods to read and write key-value pairs, query service catalogs, manage health checks, and handle ACL operations. The library uses requests for HTTP communication and six for Python 2/3 compatibility.
The package was forked from an earlier python-consul project to address maintenance gaps and add support for newer Consul features. It exposes Consul's API through a simple object-oriented interface, allowing developers to integrate service discovery and distributed configuration into Python applications without making raw HTTP calls.
Use it for
- Retrieve configuration values from Consul's key-value store in a Python application at runtime.
- Query Consul's service catalog to discover available service instances and their health status.
- Register or deregister services and health checks programmatically during application startup and shutdown.
- Implement distributed configuration management by polling Consul for key updates.
- Manage Consul ACL tokens and permissions from Python automation scripts.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last commit 2022-02-16, no updates for over 2 years) and unlikely to receive security patches or compatibility fixes. While it has low install friction and a permissive license, the lack of maintenance makes it risky for production use. Consider an actively maintained Consul client library instead.
Install
python-consul2 on PyPI
Before you install
Low install friction with only two runtime dependencies (requests and six). However, the package is abandoned as of 2022-02-16 with no active maintenance, so security updates and bug fixes are unlikely.
Requires a running Consul server accessible at the configured address; proxy environments may require http_proxy, https_proxy, and no_proxy environment variables to be set.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions.
Quickstart
pip install python-consul2
import consul
c = consul.Consul()
index, data = c.kv.get('foo', index=index)
print(data['Value'])
c.kv.put('foo', 'bar')
Verify before relying
- Whether the package works reliably with modern Consul versions beyond v1.6.1.
- Current compatibility with Python versions beyond 3.7 listed in classifiers.
- Whether all Consul HTTP API endpoints are fully implemented or if gaps remain.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesrequestssix |
| Maintenance | Abandoned 2,124 days since the last release |
| Last repo commit | repository archived |
| First released | |
| Downloads | 110,644 / month, #12,449 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7 |
Evidence: python_consul2-0.1.5-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “service discovery consul”
- python-consul2Python client library for Consul, providing programmatic access to…
- python-consulPython client library for Consul, a service discovery and…
- py-consulPython client library for HashiCorp Consul that provides programmatic…
Give your agent the search over MCP, or paste the wish link into any chat.
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework that enables you to define and call remote procedures across network boundaries using protocol buffers for serialization.
Install it if you need RPC communication in a distributed system or are integrating with existing gRPC services.
execnet lets you spawn and communicate with Python interpreters across local processes, remote hosts, and different platforms, using a simple API for task distribution and inter-process messaging.
However, the aging maintenance status (275 days since last release) means you should verify it meets your concurrency and performance needs before committing to a…
Cloudpickle extends Python's standard pickle module to serialize lambda functions, interactively-defined functions and classes, and other constructs that the default pickle cannot handle, making it suitable for cluster computing and remote code execution.
Install it if you need to serialize lambda functions, interactively-defined code, or non-standard Python constructs for cluster computing or distributed execution.
Provides a unified, open()-compatible Python API for streaming large files from remote storage (S3, GCS, Azure, HDFS, SFTP, HTTP) and local filesystems, with transparent compression support.
Install it if you work with large files on cloud storage or remote systems and want to avoid writing boilerplate around multiple SDKs.
Portalocker provides cross-platform file locking with support for exclusive and shared locks, plus Redis-based distributed locks and process-aware PID file locking.
Install it if you need file or process coordination; the optional extras (pywin32, redis) are only required for specific lock types.
Ray is a distributed computing framework that scales Python applications from a single machine to multi-node clusters, providing abstractions for parallel tasks, stateful actors, and shared objects.
See also python-consul · py-consul · consulate · yalexs · facebook-sdk · elastic-agent-client · hatch-cython · mozilla-django-oidc · django-clone