Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

bazaar-contrib-timer

The timer contracts and timeout utility are installed with a provider. Use TIMER from bazaar_contrib_timer.

bcn contrib add timer-wheel --enable

The corresponding entry in config.toml:

version = "5"

[[contribs]]
package = "bazaar-contrib-timer-wheel==0.3.*"
[[contribs.enabled]]
entry = "timer-wheel"

Declare accepts=[TIMER] on your contrib and use its injected timer:

from bazaar_contrib_timer import TIMER, timeout, wait_for

timer = ctx.accept(TIMER)
await timer.create(50).wait()
reply = await wait_for(timer, receive_message(), 5_000)

try:
    async with timeout(timer, 5_000):
        await send_message()
except TimeoutError:
    await report_timeout()

Delays are in milliseconds and follow the provider's scheduling resolution. wait_for(timer, awaitable, delay_ms) returns the awaited result and applies the same timeout and cancellation rules to a single operation. Pass None to disable a timeout. Non-positive budgets follow asyncio's behavior without creating a timer handle: wait_for returns an already completed result or cancels the pending operation; timeout schedules cancellation for the next loop iteration. Positive budgets use the injected provider for timing and the public asyncio timeout scope for cancellation and exception handling. Nested scopes retain their own deadlines; external task cancellation propagates as asyncio.CancelledError. The context manager cancels and joins its timer wait when the scope ends.

Metadata

Release files for bazaar-contrib-timer 0.3.0rc19

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

Source distribution (sdist)

Source distribution for bazaar-contrib-timer 0.3.0rc19
File Size Uploaded Provenance Actions
bazaar_contrib_timer-0.3.0rc19.tar.gz 7.3 kB Without provenance Details for bazaar_contrib_timer-0.3.0rc19.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bazaar-contrib-timer 0.3.0rc19
File Interpreter ABI Platform Actions
bazaar_contrib_timer-0.3.0rc19-py3-none-any.whl Python 3 none any Details for bazaar_contrib_timer-0.3.0rc19-py3-none-any.whl

Total release size: 15.8 kB

Release files / bazaar_contrib_timer-0.3.0rc19.tar.gz

Download URL bazaar_contrib_timer-0.3.0rc19.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5841b5aaf2b5dd17f42f2327611b8f8a61f61eb75fdbdffbe71254f5aaa08c9d
BLAKE2b-256 checksum
How to use checksums
5515f1211ca75d5847b828928e9c197e584c1ab1cbf6c7f1686888bdb3f2e6ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / bazaar_contrib_timer-0.3.0rc19-py3-none-any.whl

Download URL bazaar_contrib_timer-0.3.0rc19-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
19cab20c56dc1677b82109eb27405e3d37a1cfbb72ed3a181f8b29313cce02c8
BLAKE2b-256 checksum
How to use checksums
4d6dc6fab38d6be23145c3d38d574cbc9d4edcafcc4ac3112baab3b850df93c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for bazaar-contrib-timer 0.3.0rc19

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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