Python module to, stream videos via authenticated sessions using FastAPI
Project description
Deployments
Video Streaming
Video streaming 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
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for stream_localhost-0.0.1b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc52c3b342e52bd6d99d1d8ace23ddbc7905f3abc4d7a8743a83b2c0f186b172 |
|
MD5 | 55c33c3bc6d3368e3114f684ae0e9341 |
|
BLAKE2b-256 | 60412e5fa4f8f864b7d97ee71a4a9976b20b35d19c6d973198855353a655842a |