Skip to main content

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


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.13.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tornadoobj-0.0.13-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file tornadoobj-0.0.13.tar.gz.

File metadata

  • Download URL: tornadoobj-0.0.13.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

Hashes for tornadoobj-0.0.13.tar.gz
Algorithm Hash digest
SHA256 39de0695760c3d0df4805539924b16662522744dcc26df74b2fc879d9a6177bf
MD5 ca0ea091f9d97eafeef33a9d26030c33
BLAKE2b-256 90414ff63c58a76f1f133c2bfa35be03582c7ffd3cff1d2274c0fc31316e97c8

See more details on using hashes here.

File details

Details for the file tornadoobj-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: tornadoobj-0.0.13-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

Hashes for tornadoobj-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 7ee6cbd0bf258e3da36766f490f05ab189d4a7e58e89540b30987e0395dfce91
MD5 bfc0bbc8fc537d4ce157ea64bb5a697a
BLAKE2b-256 1390a7925b2206a34d0d446ca3ebd7d14beb3bdba3b84af52d900848921ee724

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page