semvec/pypi-packages huggingface dataset:
pysoniq 0.1.4
Lightweight, pure-Python cross-platform audio playback library
Requires Python: >=3.8
Keywords: audio, sound, playback, music, cross-platform, pure-python, audio-playback, audio-player, sound-playback, wav

# pysoniq

Minimal, pure-Python cross-platform audio playback library.

- **Pure Python** - No compiled extensions
- **Cross-platform** - Windows, macOS, Linux
- **Minimal dependencies** - Only numpy
- **Simple API** - Play, pause, stop, loop

## Installation
```bash
pip install pysoniq
```

## Use in context
```python
import pysoniq
import numpy as np

# Play WAV file
pysoniq.play('audio.wav')

# Play as numpy array
sr = 44100
t = np.linspace(0, 1.0, sr)
audio = 0.3 * np.sin(2 * np.pi * 440 * t)
pysoniq.play(audio, samplerate=sr)

# Loop playback
pysoniq.set_loop(True)
pysoniq.play(audio, sr)

# Stop
pysoniq.stop()
```

## Features

**Playback**
```python
pysoniq.play(data, samplerate)  # Play audio
pysoniq.stop()                   # Stop playback
pysoniq.pause()                  # Pause
pysoniq.resume()                 # Resume
```

**Looping**
```python
pysoniq.set_loop(True)   # Enable loop
pysoniq.is_looping()     # Check status
```

**Gain Control**
```python
pysoniq.set_gain(0.5)           # 50% volume
pysoniq.set_volume_db(-6.0)     # Set dB
audio = pysoniq.adjust_gain_level(audio, 1.5)
```

**Audio I/O**
```python
audio, sr = pysoniq.load('file.wav')
pysoniq.save('output.wav', audio, sr)
```

## Platform Requirements

- **Windows**: Built-in (winsound)
- **macOS**: Built-in (afplay)
- **Linux**: ALSA (aplay) - usually pre-installed

## Limitations

- WAV format only (for now)
- Pause/resume uses time-based estimation
- Gain changes apply on next loop iteration

## License

MIT

## Author

laelume
diagnostic 3.0.0
Present errors that contain causes better understand what happened.
Requires Python: >=3.10

# diagnostic

<!-- start description -->

`diagnostic` makes it easier to build command line tools with great error reporting.

<!-- end description -->

![demo screenshot showing an error message with a header, a message, and a list of errors](docs/_static/demo-light.svg#gh-light-mode-only)

![demo screenshot showing an error message with a header, a message, and a list of errors](docs/_static/demo-dark.svg#gh-dark-mode-only)

## Features

- Unique `code`s on every `Diagnostic`
- Tooling to help ensure all `code`s in the codebase are documented
- Fancy graphical output, built on top of [`rich`](https://github.com/Textualize/rich), with graceful fallbacks to ASCII and plain strings
- Present a causal chain if needed

## Documentation

See the [documentation](https://diagnostic.readthedocs.io/en/latest/) for more information.

## License

This project is licensed under the terms of the MIT license.