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
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
avibe-0.3.0-py3-none-any.whl
(8.5 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88eacc4539d9af2feff3e6ffe222f4a29210b7d44b648081b3cac511ed04702b
|
|
| MD5 |
c568a97017b96773dba67e41855230a8
|
|
| BLAKE2b-256 |
3836c96545eeb8050c4b68578c9a23ab1c348dfdf2a8d55054f80bd945237111
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7a30f0f603ecfd1974e5d812a10516b6bb1bbe70ab21a6f31df97050b3d4cba
|
|
| MD5 |
70061aa61012349b0b45ea25f16a415e
|
|
| BLAKE2b-256 |
b33bcf9ed2b790b6cd2541975370fe12d1302ab042e32a6e067918723bc4928f
|