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
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.4.tar.gz
(4.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypool3-0.0.4.tar.gz.
File metadata
- Download URL: pypool3-0.0.4.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fc333a6461e2a8d448325e0081bf3959a892da84120481a066d2f975f8542c4
|
|
| MD5 |
645e76b4144e73bcd646af5b52c0224d
|
|
| BLAKE2b-256 |
89f70ee1c7c7a6a8fa6ae0424a802d8109dc62fe2d04ddff29128ac6eb70200b
|
File details
Details for the file pypool3-0.0.4-py3-none-any.whl.
File metadata
- Download URL: pypool3-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ec55989406d926b09c656009d4eea3b0619852779e83325526a8581f4c8ba2f
|
|
| MD5 |
d65d9f1be3a9c32521c5b91f663e3c52
|
|
| BLAKE2b-256 |
7b84b46ce837c32bd927e2427a92dbd9b6e4ec8818d58c4e9af4796d0e7274eb
|