KaraTube is a YouTube search application that allows you to control the playback of YouTube videos from an other window.
Clone the repository:
git clone https://github.com/yourusername/KaraTube.git
cd KaraTubeInstall the required dependencies:
Using pip:
pip install -r requirements.txtUsing uv (faster):
uv syncUsing PDM:
pdm sync- Set up your YouTube API token (see Developer Instructions)
- Run the application:
Using Python directly:
python server.pyUsing uv:
uv run karatubeUsing PDM:
pdm run karatube- Go to
http://localhost:8080in your web browser.
- Go to the Google Developers Console
- Create a new project
- Enable the YouTube Data API v3
- Create credentials (API Key)
- Create a
.envfile in the root directory of the project - Add your YouTube API token to the
.envfile:
YOUTUBE_API_KEY=your_api_key_here
Make sure you have all dependencies installed using your preferred package manager:
Using uv:
uv syncUsing PDM:
pdm syncUsing pip:
pip install -r requirements.txtRun the development server:
python server.pyNavigate to the URL shown in the console (http://localhost:8080).
To create a standalone executable, you can use either PyInstaller directly or through your package manager:
Using PyInstaller directly:
pyinstaller server.specUsing uv:
uv run pyinstaller server.specUsing PDM:
pdm run pyinstaller server.specThe executable will be available in the dist folder.
This project is configured using pyproject.toml with support for multiple package managers:
- pip: Traditional Python package manager
- uv: Fast, Rust-based package manager
- PDM: Python Dependency Manager
All dependencies and development tools are defined in pyproject.toml.