Skip to main content

Utility for executing python async functions everywhere the same way - scripts, notebooks, etc.

Project description

avibe

Utility for executing python async functions everywhere the same way - scripts, notebooks, etc.

Stupidly simple, surprisingly useful.

Installation

pip install avibe

Usage

run_async_function allows you to execute asynchronous functions the same way in both scripts and Jupyter notebooks...like a normal sync function.

from avibe import run_async_function
import asyncio


# Sample async function
async def sample_async_function(x, y):
    await asyncio.sleep(1)  # Simulate async work
    return x + y


# Run the async function
result = run_async_function(sample_async_function, 5, 7)
print(result)  # Output: 12

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

avibe-0.3.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

avibe-0.3.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file avibe-0.3.0.tar.gz.

File metadata

  • Download URL: avibe-0.3.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for avibe-0.3.0.tar.gz
Algorithm Hash digest
SHA256 88eacc4539d9af2feff3e6ffe222f4a29210b7d44b648081b3cac511ed04702b
MD5 c568a97017b96773dba67e41855230a8
BLAKE2b-256 3836c96545eeb8050c4b68578c9a23ab1c348dfdf2a8d55054f80bd945237111

See more details on using hashes here.

File details

Details for the file avibe-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: avibe-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for avibe-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7a30f0f603ecfd1974e5d812a10516b6bb1bbe70ab21a6f31df97050b3d4cba
MD5 70061aa61012349b0b45ea25f16a415e
BLAKE2b-256 b33bcf9ed2b790b6cd2541975370fe12d1302ab042e32a6e067918723bc4928f

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