semvec/pypi-packages huggingface dataset:
streamlit-bar-visualizer 0.2.0
Beautiful audio frequency visualizer component for Streamlit with multiple state animations
License: MIT
Requires Python: >=3.8
Keywords: streamlit, audio, visualizer, frequency, component

# Streamlit Bar Visualizer

Audio frequency visualizer component for Streamlit, inspired by ElevenLabs UI design.

![License](https://img.shields.io/badge/license-MIT-blue.svg)
![Python](https://img.shields.io/badge/python-3.8+-blue.svg)

## Installation

```bash
pip install streamlit-bar-visualizer
```

## Quick Start

```python
import streamlit as st
from streamlit_bar_visualizer import bar_visualizer
import time

st.title("🎵 Audio Stream Visualizer Test")

# Session state
if 'play_count' not in st.session_state:
    st.session_state.play_count = 0

# Audio stream options
stream_options = {
    "Radio Paradise (MP3)": "https://stream.radioparadise.com/mp3-128",
    "BBC World Service": "https://stream.live.vc.bbcmedia.co.uk/bbc_world_service",
    "Custom URL": "custom"
}

selected_stream = st.selectbox("Select Audio Stream", list(stream_options.keys()))

if selected_stream == "Custom URL":
    stream_url = st.text_input("Enter Audio Stream URL", value="https://stream.radioparadise.com/mp3-128")
else:
    stream_url = stream_options[selected_stream]

st.info(f"🎧 Current Audio Stream: {stream_url}")

# Display visualizer
if stream_url:
    bar_visualizer(
        stream_url=stream_url,
        key=f"visualizer_{st.session_state.play_count}"
    )
    
st.markdown("---")
st.caption("💡 Tip: If you don't hear sound, check the browser console (F12) for error messages and verify the audio stream URL is valid.")
```

> ⚠️ **Browser Compatibility Warning**: Safari may have issues with audio streaming due to CORS restrictions. For best results, use **Chrome** or **Firefox**.

## License

MIT
OpenAIChatHelper 0.1.1.2
A helper package for OpenAI API
License: MIT
Requires Python: >=3.8

# OpenAIChatHelper

Getting annoyed at managing complicated and long prompts and doing substitutions. So creating this helper to make things easier.

## 🚀 Installation

### 1. Set up your API key

Get your OpenAI API key from [OpenAI API Keys](https://platform.openai.com/settings/organization/api-keys).

Then, export it as an environment variable:

```bash
export OPENAI_API_KEY="YOUR_API_KEY_HERE"
```

To make this persistent, add the above line to your shell configuration file (`~/.bashrc`, `~/.zshrc`, etc.).


### 2. Install the package

From [PyPI](https://pypi.org/project/OpenAIChatHelper/):

```bash
pip install OpenAIChatHelper
```

Or, to install locally from source:

```bash
pip install ./
```

## 💡 Usage

Check out the example script:

```bash
python example_usage.py
```