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 details)
File details
Details for the file pypool3-0.0.2.tar.gz
.
File metadata
- Download URL: pypool3-0.0.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9316db513a4122ce426493f4c5079a1ca41245fa81b8aaa060a17f3cee59ec7f |
|
MD5 | a0897ef16663bcb6581d3cf913f94bc1 |
|
BLAKE2b-256 | f359d7acef3682b21ad4087a8d45994234e4197931ea253ba0b1e9e249347240 |