Kind of like JavaScript promises (in Python!)
Project description
PromiseAPI
Provides a Promise-like syntax for a JS Promise-like object in Python. It does not currently implement all methods (still a WIP), but the methods already implemented, such as then
, catch
, and _finally
, do not behave exactly as they do in JavaScript. However, they behave similarly enough that similar code would not get too messed up. Examples are in test.py
.
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
promiseapi-1.0.0.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for promiseapi-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4dd5f987bc96f724e6ac63de3115cc2d7f1089a9665c69091483314251e18f1 |
|
MD5 | 46cc2df89664b5c56a8d305c41c69178 |
|
BLAKE2b-256 | 174dbbed111319cd2563aca5184ecebe418369d0537d9ad1f32bb61e711ea9b3 |