Python module to, stream videos via authenticated sessions using FastAPI
Project description
Deployments
Video Streaming
Python module to, stream videos via authenticated sessions using FastAPI
Install
python -m pip install stream-localhost
Usage
import pystream
if __name__ == '__main__':
pystream.start()
Env Variables
Environment variables can be loaded from any file. Defaults to
.env
(set the env varenv_file
to the filename)
Mandatory
- USERNAME: Any username of choice.
- PASSWORD: Any password of choice.
- VIDEO_SOURCE: Source path for
.mp4
files.
Optional
- VIDEO_HOST: IP address to host the video. Defaults to
127.0.0.1
- VIDEO_PORT: Port number to host the application. Defaults to
8000
- WEBSITE: Website to add to CORS configuration.
- WORKERS: Number of workers to spin up the
uvicorn
server. Defaults to 1.
Coding Standards
Docstring format: Google
Styling conventions: PEP 8
and isort
Release Notes
Requirement
python -m pip install gitverse
Usage
gitverse-release reverse -f release_notes.rst -t 'Release Notes'
Linting
pre-commit
will ensure linting, run pytest, generate runbook & release notes, and validate hyperlinks in ALL
markdown files (including Wiki pages)
Requirement
pip install sphinx==5.1.1 pre-commit recommonmark
Usage
pre-commit run --all-files
Pypi Package
https://pypi.org/project/stream-localhost/
Runbook
https://thevickypedia.github.io/pystream/
License & copyright
© Vignesh Rao
Licensed under the MIT License
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 Distributions
Built Distribution
Hashes for stream_localhost-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 110da6b048743d55e01e0d601c88a687536b68ddd8b7248b37c8047f38f0ee73 |
|
MD5 | 083c938bac5948a0e93532e33fad3b19 |
|
BLAKE2b-256 | d03abcb94b1ed228cf094f4a32db26fd1d4978301ccd0c2f8a5bb0df68f8f817 |