Skip to main content

Makes an alert noise

Project description

Beepper

PyPI downloads

Simple interface to create an alert noise. Might cause a silent crash after the sound has stopped playing when using python 3.12.

Usage

Has a single parameter for setting the volume.

Example usage in a project:

from beepper import beep

for i in seq:
    do_something(i)

beep(1.5)

do_something_else()

In the example, beep gets called after the loop. The function do_something_else gets called while the beep is still running in the backround.

The sound can also be played in a blocking manner. By calling the function with an additional argument beep(1.5, True), the program waits until the sound has stopped playing until the next line gets executed.

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

beepper-1.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

beepper-1.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file beepper-1.1.0.tar.gz.

File metadata

  • Download URL: beepper-1.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for beepper-1.1.0.tar.gz
Algorithm Hash digest
SHA256 cc3c7de8f84cdfc273e48d5534732baea55f2d1db9f0f8bb4d9caf85d9f87056
MD5 21c095c575ba14984049b838e8f07510
BLAKE2b-256 49e75526323d85df02c7ca98c109a5953073d27af4a5dfd0bed1224596a32936

See more details on using hashes here.

File details

Details for the file beepper-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: beepper-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for beepper-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c2df4f30f75021812013ddf63e77bf41cb27a583d8195c4e4f40964c5df927eb
MD5 503103cbc833a7bd29fca1e1eeebf6a0
BLAKE2b-256 9106551c8c0d1a0f8791dc164156733905f42acd0294739e0c7a360aa5868142

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