paco
paco copied to clipboard
Small utility library for coroutine-driven asynchronous generic programming in Python
Hi! Thanks a lot for building this library. It looks awesome and I cannot imagine how people live without it. The only missing feature for me are type annotations. That...
``` names = list(location['fullname']) async def get_location(name): try: return geocode(name, timeout=10) except: return None result = await paco.map(get_location, tqdm(names[0:100])) ```
Hi! First of I think paco is a very nice library and would like to help improve it. That said I have a particular problem: I need to download millions...
Hi there, Just for reference, I noticed when using your library with python 3.7 and running tests I got this warning: .../paco/pipe.py:95: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()
Found a typo: http://paco.readthedocs.io/en/latest/api.html#paco.gather * limit (int) – max concurrency limit. Use 0 for no limit. * can be used to control the maximum number (timeout) – of seconds to...
Ideally, porting the following functions to the asynchronous world: - `itertools.chain` - `itertools.chain.from_iterable` - `functools.partial_method` - `itertools.takewhile` - `itertools.compress` - `itertools.startmap` - `take` - `itertools.tee`
Thunk like delegator strategy: ```python def reset_fn(delegator): delegator() # encapsulates logic paco.times(coro, 5, reset_fn=reset_fn) ```