Skip to main content

Python module to, stream videos via authenticated sessions using FastAPI

Project description

Deployments

pages pypi

PyPI version shields.io Pypi-format Pypi-status

Video Streaming

Video streaming using FastAPI

Env Variables

Mandatory

  • USERNAME: Any username of choice.
  • PASSWORD: Any password of choice.
  • VIDEO_SOURCE: Source path for videos.

Optional

  • IP_HOSTED: Boolean flag to specify if the API is hosted via public IP
  • 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.
  • IP_HOSTED is typically set to True if port forwarding is used to expose the API
  • This will allow the application to host the API on local IP instead of localhost (if VIDEO_HOST is None)
  • This can also be done by specifying the local IP for the env var VIDEO_HOST manually

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

pypi-module

https://pypi.org/project/stream-localhost/

Runbook

made-with-sphinx-doc

https://jarvis-docs.vigneshrao.com/

License & copyright

© Vignesh Rao

Licensed under the MIT License

Project details


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

stream_localhost-0.0.1a0-py3-none-any.whl (17.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page