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.

Installation with pip

Running the command:

python -m pip install beepper

in a terminal will install the package to the active environment.

Usage

Has a parameter vol for setting the volume and a parameter blocking to optionally make the function blocking.

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.1.tar.gz (3.9 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.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: beepper-1.1.1.tar.gz
  • Upload date:
  • Size: 3.9 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.1.tar.gz
Algorithm Hash digest
SHA256 bf57ff1baddf7c8bf446a88d29618af2a27f3180afd47b99feb59b1196e0ee18
MD5 838d38573b5958770fee4f3f850a3ac8
BLAKE2b-256 37d0eb167c8e6fb5aa15edd677103a3b2b248389aec3831bb043a8d95dbac2e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beepper-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 22f8787477fe96fb7021597a27e120a0262afe1ee2b5eac98461f340c297c1ea
MD5 5b68f2aeb1ff9f02a52b4c7e615f0f7a
BLAKE2b-256 ceb5bd160aca3315df7bcf3d1a16305dc8a0244c7f7949d5282b7ef897fcbec3

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