Skip to main content

Simple noiser: Run to annoy the user.

Project description

spnoiser

Simple noiser: a tiny terminal alarm that repeats a message on the screen and can loop a short audio file (WAV recommended).

The package entry point is spnoiser.app. The main function accepts command-line arguments to control the displayed text, maximum duration, and an optional audio file to loop. If no audio file is provided, the program will attempt to use the terminal beep.

This project uses src/main.py as an alternative entrance, for debugging especially.

Quick start

  • Run directly from source:
uv run src/main.py -n "Beep" -t 120
  • Install editable and run:
uv tool install -e .
spnoiser -n "Beep" -t 120

Note: the spnoiser console script is provided by the package entry point and is available after installation.

Command-line arguments

The program (via spnoiser.app:main) supports the following options:

  • -n, --noise : Text to repeat on the terminal.
  • -t, --time : Maximum annoying time in seconds.
  • -s, --sound : Path to an audio file to loop. If omitted, the terminal beep is used when available.
  • -v, --volume : Volume level for the sound file (>= 0.0). Default is 1.0.

Examples:

# Install first
uv tool install -e .

# Custom text and infinite duration, use terminal beep
spnoiser -n "Beep!" -t 0

# Loop a sound file to play instead of terminal beep
spnoiser -s "music/alarm.mp3"

License

This project is licensed under the Apache License 2.0.

See the LICENSE file or the Apache website for the full license text: http://www.apache.org/licenses/LICENSE-2.0

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

spnoiser-1.1.1.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

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

spnoiser-1.1.1-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for spnoiser-1.1.1.tar.gz
Algorithm Hash digest
SHA256 37456c574187e6cd33bc0b262d0b60cf0651d320cda647c11e3dbf34a6d6b1e3
MD5 c9cd064f05f4b117360e698ffb6fc48f
BLAKE2b-256 ac81f2eddbf48d014b2fff0ec44785ee85913a3538a058c27ac060af4487ed73

See more details on using hashes here.

Provenance

The following attestation bundles were made for spnoiser-1.1.1.tar.gz:

Publisher: python-publish.yml on celet-ff-io/spnoiser

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

File details

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

File metadata

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

File hashes

Hashes for spnoiser-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b70ca0d879c937731343df9edc45242349cce54edfc9ad35cf87cabb2d0cf415
MD5 f4ce5282871feaa3496be986446b2a97
BLAKE2b-256 eae7e25c7ea0521bac3a951bfe69d0e7ff04e54eed32edfc3a9b80bf0d8689cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for spnoiser-1.1.1-py3-none-any.whl:

Publisher: python-publish.yml on celet-ff-io/spnoiser

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