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=1000, per_one=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.10.tar.gz
(3.4 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.10.tar.gz.
File metadata
- Download URL: tornadoobj-0.0.10.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74a0cfb19d623a5b133d4f9173635f9aaf8aeb3559e22aadb7e13844c90833f5
|
|
| MD5 |
d9d694e98913e7c0ac445e32f971dd54
|
|
| BLAKE2b-256 |
6ba238fbc4805c57fd8216aeeef3697698166345bf037a3d78a365cf186bb584
|
File details
Details for the file tornadoobj-0.0.10-py3-none-any.whl.
File metadata
- Download URL: tornadoobj-0.0.10-py3-none-any.whl
- Upload date:
- Size: 3.9 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 |
394d968d5952102b6c20989178527c67701f60cc6f018ce0d914d0c50b10bf3c
|
|
| MD5 |
ae449e7b262c728c4ef9c39661b7f6b3
|
|
| BLAKE2b-256 |
f688e8199286b607e15e839a3c412e1dc7c491f8dc81f51d1fc03ebf782030fd
|