pypurelinkmatrix 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pypurelinkmatrix-0.1.0/.env.example +21 -0
- pypurelinkmatrix-0.1.0/.github/workflows/publish.yml +52 -0
- pypurelinkmatrix-0.1.0/.gitignore +139 -0
- pypurelinkmatrix-0.1.0/.pre-commit-config.yaml +59 -0
- pypurelinkmatrix-0.1.0/API_REFERENCE.md +671 -0
- pypurelinkmatrix-0.1.0/LICENSE +674 -0
- pypurelinkmatrix-0.1.0/PKG-INFO +268 -0
- pypurelinkmatrix-0.1.0/PROTOCOL_RESEARCH.md +100 -0
- pypurelinkmatrix-0.1.0/README.md +231 -0
- pypurelinkmatrix-0.1.0/examples/README.md +17 -0
- pypurelinkmatrix-0.1.0/examples/advanced_monitoring.py +213 -0
- pypurelinkmatrix-0.1.0/examples/example_audio.py +83 -0
- pypurelinkmatrix-0.1.0/examples/example_connect.py +83 -0
- pypurelinkmatrix-0.1.0/examples/example_edid.py +83 -0
- pypurelinkmatrix-0.1.0/examples/example_network.py +73 -0
- pypurelinkmatrix-0.1.0/examples/example_status.py +84 -0
- pypurelinkmatrix-0.1.0/examples/example_status_update.py +100 -0
- pypurelinkmatrix-0.1.0/examples/example_system.py +69 -0
- pypurelinkmatrix-0.1.0/examples/example_video.py +96 -0
- pypurelinkmatrix-0.1.0/examples/example_workflow.py +88 -0
- pypurelinkmatrix-0.1.0/pyproject.toml +145 -0
- pypurelinkmatrix-0.1.0/src/pypurelinkmatrix/__init__.py +42 -0
- pypurelinkmatrix-0.1.0/src/pypurelinkmatrix/api/__init__.py +25 -0
- pypurelinkmatrix-0.1.0/src/pypurelinkmatrix/api/audio.py +133 -0
- pypurelinkmatrix-0.1.0/src/pypurelinkmatrix/api/data_structures.py +114 -0
- pypurelinkmatrix-0.1.0/src/pypurelinkmatrix/api/edid.py +242 -0
- pypurelinkmatrix-0.1.0/src/pypurelinkmatrix/api/network.py +195 -0
- pypurelinkmatrix-0.1.0/src/pypurelinkmatrix/api/status.py +560 -0
- pypurelinkmatrix-0.1.0/src/pypurelinkmatrix/api/status_update_manager.py +341 -0
- pypurelinkmatrix-0.1.0/src/pypurelinkmatrix/api/system.py +209 -0
- pypurelinkmatrix-0.1.0/src/pypurelinkmatrix/api/video.py +293 -0
- pypurelinkmatrix-0.1.0/src/pypurelinkmatrix/auth.py +111 -0
- pypurelinkmatrix-0.1.0/src/pypurelinkmatrix/client.py +155 -0
- pypurelinkmatrix-0.1.0/src/pypurelinkmatrix/exceptions.py +31 -0
- pypurelinkmatrix-0.1.0/src/pypurelinkmatrix/models.py +185 -0
- pypurelinkmatrix-0.1.0/src/pypurelinkmatrix/simulator/__init__.py +6 -0
- pypurelinkmatrix-0.1.0/src/pypurelinkmatrix/simulator/cli.py +29 -0
- pypurelinkmatrix-0.1.0/src/pypurelinkmatrix/simulator/core.py +403 -0
- pypurelinkmatrix-0.1.0/src/pypurelinkmatrix/simulator/server.py +111 -0
- pypurelinkmatrix-0.1.0/src/pypurelinkmatrix/simulator/tui.py +98 -0
- pypurelinkmatrix-0.1.0/tests/__init__.py +1 -0
- pypurelinkmatrix-0.1.0/tests/test_api_modules.py +575 -0
- pypurelinkmatrix-0.1.0/tests/test_api_status.py +157 -0
- pypurelinkmatrix-0.1.0/tests/test_api_system_video.py +268 -0
- pypurelinkmatrix-0.1.0/tests/test_auth.py +105 -0
- pypurelinkmatrix-0.1.0/tests/test_client.py +209 -0
- pypurelinkmatrix-0.1.0/tests/test_models.py +91 -0
- pypurelinkmatrix-0.1.0/tests/test_simulator.py +71 -0
- pypurelinkmatrix-0.1.0/tests/test_status_update_manager_coverage.py +260 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# PureLink Device Configuration
|
|
2
|
+
# Copy this file to .env and fill in your actual device credentials
|
|
3
|
+
|
|
4
|
+
# Device host (IP address or hostname)
|
|
5
|
+
PURELINK_HOST=127.0.0.1
|
|
6
|
+
|
|
7
|
+
# Device port (default: 80)
|
|
8
|
+
PURELINK_PORT=80
|
|
9
|
+
|
|
10
|
+
# Device login credentials
|
|
11
|
+
# Username: 1-15 alphanumeric characters and underscore
|
|
12
|
+
PURELINK_USERNAME=admin
|
|
13
|
+
|
|
14
|
+
# Password: 1-15 alphanumeric characters and underscore
|
|
15
|
+
PURELINK_PASSWORD=password
|
|
16
|
+
|
|
17
|
+
# Optional: Connection timeout in seconds (default: 30)
|
|
18
|
+
PURELINK_TIMEOUT=30
|
|
19
|
+
|
|
20
|
+
# Optional: Verify SSL certificates (default: true)
|
|
21
|
+
PURELINK_VERIFY_SSL=true
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: Upload Python Package
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
release-build:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
|
|
17
|
+
- name: Set up uv
|
|
18
|
+
uses: astral-sh/setup-uv@v5
|
|
19
|
+
with:
|
|
20
|
+
enable-cache: true
|
|
21
|
+
python-version: "3.x"
|
|
22
|
+
|
|
23
|
+
- name: Build release distributions
|
|
24
|
+
run: uv build
|
|
25
|
+
|
|
26
|
+
- name: Upload distributions
|
|
27
|
+
uses: actions/upload-artifact@v4
|
|
28
|
+
with:
|
|
29
|
+
name: release-dists
|
|
30
|
+
path: dist/
|
|
31
|
+
|
|
32
|
+
pypi-publish:
|
|
33
|
+
runs-on: ubuntu-latest
|
|
34
|
+
needs:
|
|
35
|
+
- release-build
|
|
36
|
+
permissions:
|
|
37
|
+
id-token: write
|
|
38
|
+
|
|
39
|
+
environment:
|
|
40
|
+
name: pypi
|
|
41
|
+
|
|
42
|
+
steps:
|
|
43
|
+
- name: Retrieve release distributions
|
|
44
|
+
uses: actions/download-artifact@v4
|
|
45
|
+
with:
|
|
46
|
+
name: release-dists
|
|
47
|
+
path: dist/
|
|
48
|
+
|
|
49
|
+
- name: Publish release distributions to PyPI
|
|
50
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
51
|
+
with:
|
|
52
|
+
packages-dir: dist/
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
pip-wheel-metadata/
|
|
24
|
+
share/python-wheels/
|
|
25
|
+
*.egg-info/
|
|
26
|
+
.installed.cfg
|
|
27
|
+
*.egg
|
|
28
|
+
MANIFEST
|
|
29
|
+
|
|
30
|
+
# PyInstaller
|
|
31
|
+
*.manifest
|
|
32
|
+
*.spec
|
|
33
|
+
|
|
34
|
+
# Installer logs
|
|
35
|
+
pip-log.txt
|
|
36
|
+
pip-delete-this-directory.txt
|
|
37
|
+
|
|
38
|
+
# Unit test / coverage reports
|
|
39
|
+
htmlcov/
|
|
40
|
+
.tox/
|
|
41
|
+
.nox/
|
|
42
|
+
.coverage
|
|
43
|
+
.coverage.*
|
|
44
|
+
.cache
|
|
45
|
+
nosetests.xml
|
|
46
|
+
coverage.xml
|
|
47
|
+
*.cover
|
|
48
|
+
*.py,cover
|
|
49
|
+
.hypothesis/
|
|
50
|
+
.pytest_cache/
|
|
51
|
+
|
|
52
|
+
# Translations
|
|
53
|
+
*.mo
|
|
54
|
+
*.pot
|
|
55
|
+
|
|
56
|
+
# Django stuff:
|
|
57
|
+
*.log
|
|
58
|
+
local_settings.py
|
|
59
|
+
db.sqlite3
|
|
60
|
+
db.sqlite3-journal
|
|
61
|
+
|
|
62
|
+
# Flask stuff:
|
|
63
|
+
instance/
|
|
64
|
+
.webassets-cache
|
|
65
|
+
|
|
66
|
+
# Scrapy stuff:
|
|
67
|
+
.scrapy
|
|
68
|
+
|
|
69
|
+
# Sphinx documentation
|
|
70
|
+
docs/_build/
|
|
71
|
+
|
|
72
|
+
# PyBuilder
|
|
73
|
+
target/
|
|
74
|
+
|
|
75
|
+
# Jupyter Notebook
|
|
76
|
+
.ipynb_checkpoints
|
|
77
|
+
|
|
78
|
+
# IPython
|
|
79
|
+
profile_default/
|
|
80
|
+
ipython_config.py
|
|
81
|
+
|
|
82
|
+
# pyenv
|
|
83
|
+
.python-version
|
|
84
|
+
|
|
85
|
+
# pipenv
|
|
86
|
+
Pipfile.lock
|
|
87
|
+
|
|
88
|
+
# PEP 582
|
|
89
|
+
__pypackages__/
|
|
90
|
+
|
|
91
|
+
# Celery stuff
|
|
92
|
+
celerybeat-schedule
|
|
93
|
+
celerybeat.pid
|
|
94
|
+
|
|
95
|
+
# SageMath parsed files
|
|
96
|
+
*.sage.py
|
|
97
|
+
|
|
98
|
+
# Environments
|
|
99
|
+
.env
|
|
100
|
+
.venv
|
|
101
|
+
env/
|
|
102
|
+
venv/
|
|
103
|
+
ENV/
|
|
104
|
+
env.bak/
|
|
105
|
+
venv.bak/
|
|
106
|
+
|
|
107
|
+
# Spyder project settings
|
|
108
|
+
.spyderproject
|
|
109
|
+
.spyproject
|
|
110
|
+
|
|
111
|
+
# Rope project settings
|
|
112
|
+
.ropeproject
|
|
113
|
+
|
|
114
|
+
# mkdocs documentation
|
|
115
|
+
/site
|
|
116
|
+
|
|
117
|
+
# mypy
|
|
118
|
+
.mypy_cache/
|
|
119
|
+
.dmypy.json
|
|
120
|
+
dmypy.json
|
|
121
|
+
|
|
122
|
+
# Pyre type checker
|
|
123
|
+
.pyre/
|
|
124
|
+
|
|
125
|
+
# IDE
|
|
126
|
+
.vscode/
|
|
127
|
+
.idea/
|
|
128
|
+
*.swp
|
|
129
|
+
*.swo
|
|
130
|
+
*~
|
|
131
|
+
.DS_Store
|
|
132
|
+
|
|
133
|
+
# UV specific
|
|
134
|
+
.venv/
|
|
135
|
+
uv.lock
|
|
136
|
+
|
|
137
|
+
# Test/temporary files
|
|
138
|
+
.gemini
|
|
139
|
+
test.html
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
exclude: |
|
|
2
|
+
(?x)^(
|
|
3
|
+
\.git|
|
|
4
|
+
\.venv|
|
|
5
|
+
__pycache__|
|
|
6
|
+
build|
|
|
7
|
+
dist
|
|
8
|
+
)/
|
|
9
|
+
|
|
10
|
+
repos:
|
|
11
|
+
# Standard pre-commit hooks
|
|
12
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
13
|
+
rev: v4.5.0
|
|
14
|
+
hooks:
|
|
15
|
+
- id: trailing-whitespace
|
|
16
|
+
- id: end-of-file-fixer
|
|
17
|
+
- id: check-yaml
|
|
18
|
+
- id: check-added-large-files
|
|
19
|
+
- id: check-merge-conflict
|
|
20
|
+
- id: debug-statements
|
|
21
|
+
|
|
22
|
+
# Black - Code formatter
|
|
23
|
+
- repo: https://github.com/psf/black
|
|
24
|
+
rev: 24.1.1
|
|
25
|
+
hooks:
|
|
26
|
+
- id: black
|
|
27
|
+
args:
|
|
28
|
+
- --line-length=100
|
|
29
|
+
- --target-version=py39
|
|
30
|
+
|
|
31
|
+
# Ruff - Linter
|
|
32
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
33
|
+
rev: v0.1.14
|
|
34
|
+
hooks:
|
|
35
|
+
- id: ruff
|
|
36
|
+
args:
|
|
37
|
+
- --fix
|
|
38
|
+
- --select=E,F,W,I,N,UP,B,A
|
|
39
|
+
- --line-length=100
|
|
40
|
+
- --target-version=py39
|
|
41
|
+
|
|
42
|
+
# MyPy - Type checker
|
|
43
|
+
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
44
|
+
rev: v1.8.0
|
|
45
|
+
hooks:
|
|
46
|
+
- id: mypy
|
|
47
|
+
additional_dependencies:
|
|
48
|
+
- types-requests>=2.31.0
|
|
49
|
+
- types-PyYAML>=6.0.0
|
|
50
|
+
args:
|
|
51
|
+
- --warn-return-any
|
|
52
|
+
- --warn-unused-configs
|
|
53
|
+
- --check-untyped-defs
|
|
54
|
+
- --no-implicit-optional
|
|
55
|
+
- --warn-redundant-casts
|
|
56
|
+
- --warn-unused-ignores
|
|
57
|
+
- --warn-no-return
|
|
58
|
+
- --strict-equality
|
|
59
|
+
- --ignore-missing-imports
|