Skip to content

Bogdanp/resource_pool

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
March 5, 2018 13:05
October 30, 2018 11:19
March 5, 2018 13:05
October 30, 2018 11:19
September 18, 2018 19:43

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

Stars

Watchers

Forks

Packages

No packages published

Languages