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

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 var env_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

pypi-module

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

Runbook

made-with-sphinx-doc

https://thevickypedia.github.io/pystream/

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.1-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