Skip to main content

Promises for Python

Project description

Pyromises 🐍

Promises for Python

What it does 🤔

Pyromises is a high-level wrapper over threads for Python, it provides an API very similar to Javascript for dealing with asynchronous code.

Examples 🤓

In Javascript

fetch('https://api.github.com/Nxrth-x')
  .then(res => res.json())
  .then(console.log)

In Python

import requests
from pyromise import Promise

def fetch_data():
  response = requests.get('https://api.github.com/Nxrth-x')
  return response.json()

Promise(fetch_data).then(print)

Author 🙋‍♂️

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyromises-0.0.2.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyromises-0.0.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file pyromises-0.0.2.tar.gz.

File metadata

  • Download URL: pyromises-0.0.2.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5

File hashes

Hashes for pyromises-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6f32a0905461b854d1c49861b9872c69833eac4b18e696fff67d93f0f3d90a9a
MD5 12adbbb20179ae7ae315b3ed14209417
BLAKE2b-256 6fdc5139c0312be2c46abf9a500e142f740a5e896de7d4758cca4aac3cbe8a0a

See more details on using hashes here.

File details

Details for the file pyromises-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyromises-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5

File hashes

Hashes for pyromises-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aeedd2ece72fdadcad0af9dacb58002c3265c8b1f5203708a59e16eb45d999dc
MD5 e793d9fcb6ed52ff6ca7aa7b7645a5c7
BLAKE2b-256 a263be35a3f774d9eef0d73434b98bc01116ab5d6825e17ca9b65363ebe15350

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page