Python SDK for bidq
Project description
pybidq
Python SDK for bidq
Usage
import asyncio
from bidq import BidQ
async def setup_worker():
client = await BidQ.create()
@client.worker("add")
def add(x, y):
return x + y
await client.serve()
async def send_job():
client = await BidQ.create()
jid = await client.submit("add", {"x": 1, "y": 2}, 0.2)
try:
print(await client.get(jid))
except Exception as e:
print(e)
await client.close()
# asyncio.run(send_job())
asyncio.run(setup_worker())
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
bidq-0.0.1.tar.gz
(3.1 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
bidq-0.0.1-py3-none-any.whl
(4.6 kB
view details)
File details
Details for the file bidq-0.0.1.tar.gz.
File metadata
- Download URL: bidq-0.0.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bedd22d96bdf5ce6fd9ef4878e918f6318fc05d8695449bc9ae166b002e55e6
|
|
| MD5 |
469193e3e1dae501263f337a227fd2f7
|
|
| BLAKE2b-256 |
413c29b2e59656099421e5a31dfbe7a783d025fdeb7a5a65fdb6f58352e53424
|
File details
Details for the file bidq-0.0.1-py3-none-any.whl.
File metadata
- Download URL: bidq-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c91eb03c53ff2dee37dd6e81510ed241cf2fdf3d1055af930f698ab493fbe92c
|
|
| MD5 |
26c55ce3d529eed2a338e8096630a713
|
|
| BLAKE2b-256 |
d04b8ae6eb05289b940f644dd6b2565fdb2f89b9950fd0aa97d329678cfd06da
|