An extensive python resource pool implementation
Project description
pypool
An extensive python resource pool implementation
Installation
pip install pypool3
Examples
from pypool import Pool
numbers = iter(range(0, 1000))
factory = lambda: next(numbers)
pool = Pool(factory, max_size=100)
for _ in range(0, 10):
with pool.reserve() as number:
print(number)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pypool3-0.0.2.tar.gz
(4.0 kB
view hashes)