A server which provides a WebSocket API for YouCube clients
Project description
YouCube Server
YouCube has a some public servers, which you can use if you don't want to host your own server.
The client has the public servers set by default, so you can just run the client, and you're good to go.
Moor Information about the servers can be seen on the doc.
Requirements
You can install the required packages with pip by running:
pip install -r src/requirements.txt
Starting the Server
python src/youcube.py
Environment variables
Environment variables you can use to configure the server:
Variable | Default | Description |
---|---|---|
HOST |
127.0.0.1 |
The host where the web server runs on. |
PORT |
5000 |
The port where the web server should run on |
FFMPEG_PATH |
ffmpeg |
Path to the FFmpeg executable |
SANJUUNI_PATH |
sanjuuni |
Path to the Sanjuuni executable |
NO_COLOR |
False |
Disable colored output |
LOGLEVEL |
DEBUG |
Python Log level of the main logger |
DISABLE_OPENCL |
False |
Disables sanjuuni GPU acceleration |
NO_FAST |
False |
Disable Sanic worker processes maximization |
SPOTIPY_CLIENT_ID |
The Client ID from your spotify application | |
SPOTIPY_CLIENT_SECRET |
The Client Secret from your spotify application | |
DATA_CACHE_CLEANUP_INTERVAL |
300 |
Time interval (in seconds) for the data cache cleaner to wait before checking for outdated cache entries. |
DATA_CACHE_CLEANUP_AFTER |
3600 |
Time threshold (in seconds) for considering a cache entry outdated. Cache entries older than this will be removed. |
And Sanic Builtin values.
Docker Compose
version: "2.0"
services:
youcube:
image: ghcr.io/cc-youcube/youcube:latest
restart: always
hostname: youcube
ports:
- 5000:5000
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
youcube-0.0.0.tar.gz
(392.8 kB
view details)
Built Distribution
youcube-0.0.0-py3-none-any.whl
(29.8 kB
view details)
File details
Details for the file youcube-0.0.0.tar.gz
.
File metadata
- Download URL: youcube-0.0.0.tar.gz
- Upload date:
- Size: 392.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | defb2f2777c30fe9187cd96f6ee000462c996adf57033a170f856c820c425c14 |
|
MD5 | ea59868873798da1e68a0ba46ac92024 |
|
BLAKE2b-256 | 8f72ec1112185ba92ff408c367adf593e02feea7030b3a1d258183544886663c |
File details
Details for the file youcube-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: youcube-0.0.0-py3-none-any.whl
- Upload date:
- Size: 29.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9754b325462df67f17c7657bb5899a3e84c70b2876630c73ba7d7098dc774544 |
|
MD5 | 6f9631cafe6555e88b9fce83cc1a692b |
|
BLAKE2b-256 | a459979a4cff0c5e20a8649a23d751e446289246abd11bb906ef958eb6de71fe |