lazyios 0.1.1__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.
Files changed (39) hide show
  1. lazyios-0.1.1/.gitattributes +3 -0
  2. lazyios-0.1.1/.github/workflows/ci.yml +22 -0
  3. lazyios-0.1.1/.github/workflows/release.yml +89 -0
  4. lazyios-0.1.1/.gitignore +11 -0
  5. lazyios-0.1.1/LICENSE +674 -0
  6. lazyios-0.1.1/PKG-INFO +149 -0
  7. lazyios-0.1.1/README.md +116 -0
  8. lazyios-0.1.1/docs/screenshot.svg +205 -0
  9. lazyios-0.1.1/docs/social-preview.png +0 -0
  10. lazyios-0.1.1/install.ps1 +26 -0
  11. lazyios-0.1.1/install.sh +21 -0
  12. lazyios-0.1.1/packaging/entry.py +4 -0
  13. lazyios-0.1.1/packaging/lazyios.spec +33 -0
  14. lazyios-0.1.1/pyproject.toml +66 -0
  15. lazyios-0.1.1/src/lazyios/__init__.py +1 -0
  16. lazyios-0.1.1/src/lazyios/__main__.py +84 -0
  17. lazyios-0.1.1/src/lazyios/app.py +164 -0
  18. lazyios-0.1.1/src/lazyios/app.tcss +222 -0
  19. lazyios-0.1.1/src/lazyios/art.py +35 -0
  20. lazyios-0.1.1/src/lazyios/backend.py +131 -0
  21. lazyios-0.1.1/src/lazyios/device.py +438 -0
  22. lazyios-0.1.1/src/lazyios/fake.py +305 -0
  23. lazyios-0.1.1/src/lazyios/opener.py +35 -0
  24. lazyios-0.1.1/src/lazyios/parsing.py +120 -0
  25. lazyios-0.1.1/src/lazyios/screens.py +84 -0
  26. lazyios-0.1.1/src/lazyios/status.py +45 -0
  27. lazyios-0.1.1/src/lazyios/tabs/__init__.py +0 -0
  28. lazyios-0.1.1/src/lazyios/tabs/apps.py +36 -0
  29. lazyios-0.1.1/src/lazyios/tabs/base.py +129 -0
  30. lazyios-0.1.1/src/lazyios/tabs/logs.py +138 -0
  31. lazyios-0.1.1/src/lazyios/tabs/network.py +205 -0
  32. lazyios-0.1.1/src/lazyios/tabs/overview.py +105 -0
  33. lazyios-0.1.1/src/lazyios/tabs/processes.py +75 -0
  34. lazyios-0.1.1/src/lazyios/tabs/tools.py +169 -0
  35. lazyios-0.1.1/src/lazyios/theme.py +49 -0
  36. lazyios-0.1.1/src/lazyios/usbmuxd.py +88 -0
  37. lazyios-0.1.1/tests/conftest.py +6 -0
  38. lazyios-0.1.1/tests/test_app.py +340 -0
  39. lazyios-0.1.1/tests/test_parsing.py +146 -0
@@ -0,0 +1,3 @@
1
+ * text=auto
2
+ *.sh text eol=lf
3
+ *.png binary
@@ -0,0 +1,22 @@
1
+ name: ci
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+
7
+ jobs:
8
+ test:
9
+ strategy:
10
+ fail-fast: false
11
+ matrix:
12
+ os: [ubuntu-latest, windows-latest]
13
+ runs-on: ${{ matrix.os }}
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: actions/setup-python@v5
17
+ with:
18
+ python-version: "3.12"
19
+ - run: pip install -e ".[dev]"
20
+ - run: ruff check
21
+ - run: ruff format --check
22
+ - run: pytest
@@ -0,0 +1,89 @@
1
+ name: release
2
+
3
+ on:
4
+ push:
5
+ tags: ["v*"]
6
+ workflow_dispatch:
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ dist:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: actions/setup-python@v5
17
+ with:
18
+ python-version: "3.12"
19
+ - run: pip install build
20
+ - run: python -m build
21
+ - uses: actions/upload-artifact@v4
22
+ with:
23
+ name: dist
24
+ path: dist/
25
+
26
+ # runs only once the trusted publisher is set up on PyPI and PYPI_PUBLISH=true is set
27
+ pypi:
28
+ needs: dist
29
+ if: vars.PYPI_PUBLISH == 'true'
30
+ runs-on: ubuntu-latest
31
+ environment: pypi
32
+ permissions:
33
+ id-token: write
34
+ steps:
35
+ - uses: actions/download-artifact@v4
36
+ with:
37
+ name: dist
38
+ path: dist/
39
+ - uses: pypa/gh-action-pypi-publish@release/v1
40
+
41
+ binaries:
42
+ strategy:
43
+ fail-fast: false
44
+ matrix:
45
+ include:
46
+ - os: windows-latest
47
+ built: dist/lazyios.exe
48
+ asset: lazyios-windows-x64.exe
49
+ - os: macos-latest
50
+ built: dist/lazyios
51
+ asset: lazyios-macos-arm64
52
+ - os: ubuntu-latest
53
+ built: dist/lazyios
54
+ asset: lazyios-linux-x64
55
+ runs-on: ${{ matrix.os }}
56
+ steps:
57
+ - uses: actions/checkout@v4
58
+ - uses: actions/setup-python@v5
59
+ with:
60
+ python-version: "3.12"
61
+ - run: pip install . pyinstaller
62
+ - run: pyinstaller packaging/lazyios.spec --noconfirm
63
+ - run: cp ${{ matrix.built }} ${{ matrix.asset }}
64
+ shell: bash
65
+ - run: ./${{ matrix.asset }} --version
66
+ shell: bash
67
+ - run: ./${{ matrix.asset }} --selftest
68
+ shell: bash
69
+ - uses: actions/upload-artifact@v4
70
+ with:
71
+ name: bin-${{ matrix.os }}
72
+ path: ${{ matrix.asset }}
73
+
74
+ release:
75
+ needs: binaries
76
+ if: startsWith(github.ref, 'refs/tags/')
77
+ runs-on: ubuntu-latest
78
+ permissions:
79
+ contents: write
80
+ steps:
81
+ - uses: actions/download-artifact@v4
82
+ with:
83
+ pattern: bin-*
84
+ merge-multiple: true
85
+ path: out/
86
+ - run: cd out && sha256sum lazyios-* > SHA256SUMS
87
+ - uses: softprops/action-gh-release@v2
88
+ with:
89
+ files: out/*
@@ -0,0 +1,11 @@
1
+ .venv/
2
+ __pycache__/
3
+ *.egg-info/
4
+ dist/
5
+ build/
6
+ .pytest_cache/
7
+ .ruff_cache/
8
+ *.pcap
9
+ *.pcapng
10
+ /captures/
11
+ /screenshots/