File: __init__.py

package info (click to toggle)
python-go2rtc-client 0.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 684 kB
  • sloc: python: 945; makefile: 3
file content (21 lines) | stat: -rw-r--r-- 514 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""Asynchronous Python client for go2rtc."""

from pathlib import Path


def load_fixture(filename: str) -> Path:
    """Load a fixture."""
    return Path(__package__) / "fixtures" / filename


def load_fixture_bytes(filename: str) -> bytes:
    """Load a fixture and return bytes."""
    return load_fixture(filename).read_bytes()


def load_fixture_str(filename: str) -> str:
    """Load a fixture and return str."""
    return load_fixture(filename).read_text(encoding="utf-8")


URL = "http://localhost:1984"