Tornado
Project description
Tornado
Just a small lib implementing obj for a tasks.
Usage
import asyncio
from tornado_obj import Tornado
async def callback(value):
print(f"Its my value {value} that I am getting 1 time per second")
async def main():
tornado = Tornado(callback=callback, length=1)
await tornado.add_item(0)
await tornado.del_item(0)
await tornado.add_item({"id": 1})
while True:
await asyncio.sleep(1)
if __name__ == '__main__':
loop = asyncio.new_event_loop()
loop.run_until_complete(main())
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
tornadoobj-0.0.8.tar.gz
(3.3 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
File details
Details for the file tornadoobj-0.0.8.tar.gz.
File metadata
- Download URL: tornadoobj-0.0.8.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27c1b3f21a642b1a14b43860180b54ca2859cb2337197a75e384b20b37df6fac
|
|
| MD5 |
b41d92a09b268a388c07437bb06e1a8d
|
|
| BLAKE2b-256 |
7adefe23bc880e88a9e640288ccc088acecafec8d7c2dc4d0f26c546eea8b0b9
|
File details
Details for the file tornadoobj-0.0.8-py3-none-any.whl.
File metadata
- Download URL: tornadoobj-0.0.8-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d44e4f986ad09c8ba9fa1802376a477194282055c27f2957efa14ecf9797e810
|
|
| MD5 |
5c22a0ff23ebccdb141af97459c71ea5
|
|
| BLAKE2b-256 |
3535f2688130c06c2a212b622fd6f2a7dcf8d110b54c69c1e84dd2251927fa3f
|