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.12.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.12.tar.gz.
File metadata
- Download URL: tornadoobj-0.0.12.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 |
79c0d23ebb8e664a17610ec71097c235218316a2837e28d078d0cd0385b45cda
|
|
| MD5 |
be058df1d8e029d40d50b3d834e75ecb
|
|
| BLAKE2b-256 |
e03d7d8c72cf1870eb55795f79e970bfff05b0b94e4a4e19102be979083680c8
|
File details
Details for the file tornadoobj-0.0.12-py3-none-any.whl.
File metadata
- Download URL: tornadoobj-0.0.12-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 |
6637352fc2661f49eccf03376a8029f1bc013822cf20f0aea232c85b341ad62c
|
|
| MD5 |
aa3b657128c38786a4e66b21118c2b70
|
|
| BLAKE2b-256 |
4b894af14e6821e20883d886478ef3b10a091bf51e883ec9f7d0b1d0056fac9a
|