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())
Metadata
Release files for bidq 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bidq-0.0.1.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bidq-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / bidq-0.0.1.tar.gz
| Download URL | bidq-0.0.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8bedd22d96bdf5ce6fd9ef4878e918f6318fc05d8695449bc9ae166b002e55e6
|
|
BLAKE2b-256 checksum How to use checksums |
413c29b2e59656099421e5a31dfbe7a783d025fdeb7a5a65fdb6f58352e53424
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / bidq-0.0.1-py3-none-any.whl
| Download URL | bidq-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c91eb03c53ff2dee37dd6e81510ed241cf2fdf3d1055af930f698ab493fbe92c
|
|
BLAKE2b-256 checksum How to use checksums |
d04b8ae6eb05289b940f644dd6b2565fdb2f89b9950fd0aa97d329678cfd06da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|