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 details)
Built Distribution
File details
Details for the file promiseapi-1.0.0.tar.gz
.
File metadata
- Download URL: promiseapi-1.0.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0b32b7677379914deef5728a963d4526109f51dd1edb3d51dbb174ff88cc011 |
|
MD5 | 0c6fd5298fc4c6c9669e8461a62d26be |
|
BLAKE2b-256 | ffe5e632e328909ac7b82d045f6e3516538028c82e261afb9e935dda7e7ea142 |
File details
Details for the file promiseapi-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: promiseapi-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4dd5f987bc96f724e6ac63de3115cc2d7f1089a9665c69091483314251e18f1 |
|
MD5 | 46cc2df89664b5c56a8d305c41c69178 |
|
BLAKE2b-256 | 174dbbed111319cd2563aca5184ecebe418369d0537d9ad1f32bb61e711ea9b3 |