Skip to main content

ThreadLoop

build-status coverage pypi

Run Tornado Coroutines from Synchronous Python.

from threadloop import ThreadLoop
from tornado import gen

@gen.coroutine
def coroutine(greeting="Goodbye"):
    yield gen.sleep(1)
    raise gen.Return("%s World" % greeting)

with ThreadLoop() as threadloop:
    future = threadloop.submit(coroutine, "Hello")

    print future.result() # Hello World

Metadata

Release files for threadloop 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for threadloop 1.0.2
File Size Uploaded
threadloop-1.0.2.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for threadloop 1.0.2
File Interpreter ABI Platform
threadloop-1.0.2-py2-none-any.whl Python 2 none any Details

Total release size: 11.1 kB

Release files / threadloop-1.0.2.tar.gz

Download URL threadloop-1.0.2.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8b180aac31013de13c2ad5c834819771992d350267bddb854613ae77ef571944
BLAKE2b-256 checksum
How to use checksums
d31d8398c1645b97dc008d3c658e04beda01ede3d90943d40c8d56863cf891bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / threadloop-1.0.2-py2-none-any.whl

Download URL threadloop-1.0.2-py2-none-any.whl
Size 6.2 kB
Tags Python 2
SHA-256 checksum
How to use checksums
5c90dbefab6ffbdba26afb4829d2a9df8275d13ac7dc58dccb0e279992679599
BLAKE2b-256 checksum
How to use checksums
dc1aecc8f9060b8b00f8a7edac9eb020357575d332a5ad9e32c3372c66a35f79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

1 release file

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page