promise

Ultra-performant Promise implementation in Python

MIT License

Downloads
2.4M
Stars
362
Committers
18

Bot releases are visible (Hide)

promise - v2.3.0 Latest Release

Published by syrusakbary almost 5 years ago

Changelog

  • Distribute type module maker for mypy #66
  • Fix memory leak on dynamically created types #76
  • Make Dataloader keep cache object #73
  • Fix Python 3.7 deprecation warnings #79
  • Make Promise and Dataloader thread-safe #81
promise - v2.2.0

Published by syrusakbary about 6 years ago

Changelog

  • Fixed compatibility with Python 3.5+
  • Fixed iscoroutine returning True for generators (by using iscoroutine from inspect instead of asyncio)
promise - 2.2.0rc1

Published by syrusakbary over 6 years ago

2.2.0 - Release candidate 1
(changelog to come soon)

promise - v2.0.1

Published by syrusakbary over 7 years ago

Changelog

  • Fixed await blocked by context exit 26488d56c7bdba8ace8c75e63efe8c42b6217e82 (thanks to @schrockn for the feedback!)
  • Fixed Promise.resolve(coroutine) returning a Task instead of a Promise code sample
promise - v2.0.0

Published by syrusakbary over 7 years ago

Changelog

This is a completely rewritten version of Promise in python, based in the ultra-performant and low-memory bluebird.js promise implementation.

  • New dataloader implementation
  • Promise.resolve now acts the same as Promise.cast
  • Promise.reject is now a static method (instead of a instance one, like in previous versions)
  • New Promise.all fast implementation.
  • promise.get raised exceptions now include traceback.
  • Custom schedulers for Promise resolution.

Deprecation

  • Promise.promisify is now a function wrapper, that executes the function, but returning a Promise. Calling Promise.promisify on a static value will be deprecated in next versions.
  • promise.fulfill is renamed to promise.do_fulfill
  • promise.rejected/promise.reject is renamed to promise.do_reject
promise - v1.0.1

Published by syrusakbary almost 8 years ago

Changelog

  • is_thenable now returns True for coroutines. 8b0d5da3dca2d99671b820478ef74353ac24c97b
promise - v1.0 - Static type Promises

Published by syrusakbary about 8 years ago

Added static type checking (using mypy) tests and increased coverage to 100%.

promise - v0.4.0

Published by syrusakbary over 8 years ago

First version of promise.

Package Rankings
Top 9.48% on Spack.io
Top 13.51% on Conda-forge.org
Top 1.61% on Pypi.org
Top 36.65% on Anaconda.org
Badges
Extracted from project README
travis pypi coveralls