Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

resource-pool

A generic thread-safe resource pool implementation for Python.

Installation

pip install resource_pool

Usage

from resource_pool import Pool

pool = Pool(factory=lambda: 42, pool_size=30)
with pool.reserve(timeout=10) as n:
    print(n)

License

resource_pool is licensed under Apache 2.0. Please see LICENSE for licensing details.

About

A generic thread-safe resource pool for Python.

Topics

Resources

License

Packages

No packages published

Languages