A minimal thread-safe connection pool for Python, providing a generic pool for any reusable connections (e.g., database sockets, HTTP clients). Version 0.0.3 is the latest release as of early 2025; the project appears to be in maintenance mode with no recent updates.
pip install connection-poolVerified import paths — ran on the pinned version, not inferred.
Basic usage of ConnectionPool with context manager.
Implement your own validation before returning connections to the pool.
Consider using more robust pools like SQLAlchemy's or redis-py's connection pool for production.
Always specify a timeout when acquiring connections: `pool.acquire(timeout=5)`.
Install with `pip install connection-pool` and import as `from connection_pool import ConnectionPool`.
Use `pool.acquire()` to obtain a connection.
No dependency data recorded yet.