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.2.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.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: beepper-1.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 fe6b8b5c00693fdbe4560c97f99b7f98d4fc0e6efb036d352828af245a7f13c7
MD5 ac9d2a41810a9e9e18efb939449fba1e
BLAKE2b-256 705c8077bf657fed3a46ecf57e55910b0a63fd8b620bcf740139882c7004b978

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beepper-1.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 34913f907106415589e2dcda13b7504c5f289939d6bb08b7fbbe98b2f715cc77
MD5 67dbe023d6c6f5acbfbd5cdd39e09492
BLAKE2b-256 6fca6c2c29a0b6c351d57f2d895c9ce9e2a4155873c03fc635767ee05dbfef15

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