Skip to main content

Easy and expressive busy-waiting for Python

Project description

logo

Easy and expressive busy-waiting for Python

tests badge pypi version license badge

Although you typically wouldn't want to do much busy-waiting in your production code, testing is a different matter. When testing asynchronous systems, it's very helpful to wait for some scenario to finish its course. busypie helps you perform busy waiting easily and expressively.

Quickstart

Most typical usage will be in test, when we have a scenario that requires us to wait for something to happen.

from busypie import wait, SECOND

def test_create_user():
    create_user_from(USER_DETAILS)
    wait().at_most(2, SECOND).until(lambda: is_user_exists(USER_DETAILS))

Documentation

Links

This project drew a lot of inspiration from Awaitility.

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

busypie-0.6.1.tar.gz (46.0 kB view details)

Uploaded Source

Built Distribution

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

busypie-0.6.1-py3-none-any.whl (42.7 kB view details)

Uploaded Python 3

File details

Details for the file busypie-0.6.1.tar.gz.

File metadata

  • Download URL: busypie-0.6.1.tar.gz
  • Upload date:
  • Size: 46.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for busypie-0.6.1.tar.gz
Algorithm Hash digest
SHA256 1662a6fa2e9685aeb7c662be9438b65f15c9c4cc28e64d071e01645ad9ce6af2
MD5 7ac3275d74e9a0bc14c3604b7f1a25fd
BLAKE2b-256 b529851e1a266a16620b810af36aa60a8d89b9214e765980aa4c0e5684cc4411

See more details on using hashes here.

Provenance

The following attestation bundles were made for busypie-0.6.1.tar.gz:

Publisher: publish.yaml on rockem/busypie

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file busypie-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: busypie-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 42.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for busypie-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1b4673687d58249e791b4b0361a1e188fd1a35ffcacb9398437aed3394e3a3da
MD5 66d045e7155638e378d73c8ba344d910
BLAKE2b-256 f6230086d8fd645e2afd94589ec543a608af6eb66e40ca5bd7166efe53d99d81

See more details on using hashes here.

Provenance

The following attestation bundles were made for busypie-0.6.1-py3-none-any.whl:

Publisher: publish.yaml on rockem/busypie

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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