dcspy 3.4.2__tar.gz → 3.6.2__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 (61) hide show
  1. {dcspy-3.4.2 → dcspy-3.6.2}/PKG-INFO +74 -67
  2. {dcspy-3.4.2 → dcspy-3.6.2}/README.md +25 -27
  3. {dcspy-3.4.2 → dcspy-3.6.2}/pyproject.toml +64 -48
  4. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/__init__.py +12 -11
  5. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/aircraft.py +100 -42
  6. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/dcsbios.py +9 -7
  7. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/logitech.py +53 -42
  8. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/migration.py +29 -17
  9. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/models.py +565 -155
  10. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/qt_gui.py +507 -357
  11. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/qtgui_rc.py +681 -561
  12. dcspy-3.6.2/src/dcspy/resources/F-4E-45MC.yaml +10 -0
  13. {dcspy-3.4.2/dcspy → dcspy-3.6.2/src/dcspy/resources}/config.yaml +3 -3
  14. dcspy-3.6.2/src/dcspy/run.py +64 -0
  15. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/sdk/__init__.py +6 -5
  16. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/sdk/key_sdk.py +17 -14
  17. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/sdk/lcd_sdk.py +45 -40
  18. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/sdk/led_sdk.py +28 -28
  19. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/starter.py +31 -26
  20. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/utils.py +238 -193
  21. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy.egg-info/PKG-INFO +74 -67
  22. dcspy-3.6.2/src/dcspy.egg-info/SOURCES.txt +62 -0
  23. dcspy-3.6.2/src/dcspy.egg-info/requires.txt +51 -0
  24. {dcspy-3.4.2 → dcspy-3.6.2}/tests/test_aircraft.py +70 -30
  25. {dcspy-3.4.2 → dcspy-3.6.2}/tests/test_key_sdk.py +2 -2
  26. {dcspy-3.4.2 → dcspy-3.6.2}/tests/test_lcd_sdk.py +9 -5
  27. {dcspy-3.4.2 → dcspy-3.6.2}/tests/test_logitech.py +30 -13
  28. {dcspy-3.4.2 → dcspy-3.6.2}/tests/test_migration.py +24 -9
  29. {dcspy-3.4.2 → dcspy-3.6.2}/tests/test_models.py +63 -2
  30. {dcspy-3.4.2 → dcspy-3.6.2}/tests/test_starter.py +1 -1
  31. {dcspy-3.4.2 → dcspy-3.6.2}/tests/test_utils.py +107 -70
  32. dcspy-3.4.2/dcspy/run.py +0 -36
  33. dcspy-3.4.2/dcspy.egg-info/SOURCES.txt +0 -55
  34. dcspy-3.4.2/dcspy.egg-info/requires.txt +0 -42
  35. {dcspy-3.4.2 → dcspy-3.6.2}/LICENSE.md +0 -0
  36. {dcspy-3.4.2 → dcspy-3.6.2}/setup.cfg +0 -0
  37. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/img/dcspy_black.ico +0 -0
  38. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/img/dcspy_white.ico +0 -0
  39. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/log.py +0 -0
  40. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/py.typed +0 -0
  41. {dcspy-3.4.2/dcspy → dcspy-3.6.2/src/dcspy/resources}/AH-64D_BLK_II.yaml +0 -0
  42. {dcspy-3.4.2/dcspy → dcspy-3.6.2/src/dcspy/resources}/AV8BNA.yaml +0 -0
  43. {dcspy-3.4.2/dcspy → dcspy-3.6.2/src/dcspy/resources}/F-14A-135-GR.yaml +0 -0
  44. {dcspy-3.4.2/dcspy → dcspy-3.6.2/src/dcspy/resources}/F-14B.yaml +0 -0
  45. {dcspy-3.4.2/dcspy → dcspy-3.6.2/src/dcspy/resources}/F-15ESE.yaml +0 -0
  46. {dcspy-3.4.2/dcspy → dcspy-3.6.2/src/dcspy/resources}/F-16C_50.yaml +0 -0
  47. {dcspy-3.4.2/dcspy → dcspy-3.6.2/src/dcspy/resources}/FA-18C_hornet.yaml +0 -0
  48. {dcspy-3.4.2/dcspy → dcspy-3.6.2/src/dcspy/resources}/Ka-50.yaml +0 -0
  49. {dcspy-3.4.2/dcspy → dcspy-3.6.2/src/dcspy/resources}/Ka-50_3.yaml +0 -0
  50. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/resources/falconded.ttf +0 -0
  51. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/resources/license.txt +0 -0
  52. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/sdk/LogitechGkeyLib.h +0 -0
  53. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/sdk/LogitechLCDLib.h +0 -0
  54. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy/sdk/LogitechLEDLib.h +0 -0
  55. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy.egg-info/dependency_links.txt +0 -0
  56. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy.egg-info/entry_points.txt +0 -0
  57. {dcspy-3.4.2 → dcspy-3.6.2/src}/dcspy.egg-info/top_level.txt +0 -0
  58. {dcspy-3.4.2 → dcspy-3.6.2}/tests/test_dcsbios.py +0 -0
  59. {dcspy-3.4.2 → dcspy-3.6.2}/tests/test_dcspy.py +0 -0
  60. {dcspy-3.4.2 → dcspy-3.6.2}/tests/test_led_sdk.py +0 -0
  61. {dcspy-3.4.2 → dcspy-3.6.2}/tests/test_qtgui.py +0 -0
@@ -1,14 +1,14 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: dcspy
3
- Version: 3.4.2
3
+ Version: 3.6.2
4
4
  Summary: Software for integrating DCS Planes with Logitech keyboards (with and without LCD), mice and headphones.
5
5
  Author: Michal Plichta
6
6
  Maintainer: Michal Plichta
7
7
  License: MIT License
8
8
  Project-URL: Homepage, https://github.com/emcek/dcspy
9
- Project-URL: Documentation, https://github.com/emcek/dcspy/wiki
10
- Project-URL: Repository, https://github.com/emcek/dcspy.git
11
- Project-URL: Changelog, https://github.com/emcek/dcspy/CHANGELOG.md
9
+ Project-URL: Documentation, https://dcspy.readthedocs.io/en/latest/
10
+ Project-URL: Source, https://github.com/emcek/dcspy.git
11
+ Project-URL: Changelog, https://github.com/emcek/dcspy/blob/master/CHANGELOG.md
12
12
  Keywords: dcsworld,dcs,digital combat simulator,eagle dynamics,logitech,logitech sdk,logitech keyboard,logitech gaming,logitech mouse,logitech headphone,G19,G510,G15,G13,G910,G710,G110,G103,G105,G11,G35,G633,G930,G933,G600,G300,G400,G700,G9,MX518,G402,G502,G602
13
13
  Classifier: Development Status :: 5 - Production/Stable
14
14
  Classifier: Environment :: Console
@@ -18,8 +18,10 @@ Classifier: Programming Language :: Python :: 3.9
18
18
  Classifier: Programming Language :: Python :: 3.10
19
19
  Classifier: Programming Language :: Python :: 3.11
20
20
  Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
21
22
  Classifier: Operating System :: Microsoft :: Windows
22
23
  Classifier: Operating System :: Microsoft :: Windows :: Windows 10
24
+ Classifier: Operating System :: Microsoft :: Windows :: Windows 11
23
25
  Classifier: Topic :: Games/Entertainment
24
26
  Classifier: Topic :: Games/Entertainment :: Simulation
25
27
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
@@ -28,44 +30,51 @@ Classifier: Topic :: Utilities
28
30
  Requires-Python: >=3.9
29
31
  Description-Content-Type: text/markdown
30
32
  License-File: LICENSE.md
31
- Requires-Dist: cffi==1.16.0
32
- Requires-Dist: GitPython==3.1.43
33
- Requires-Dist: packaging==24.0
34
- Requires-Dist: Pillow==10.3.0
35
- Requires-Dist: psutil==5.9.8
36
- Requires-Dist: pydantic==2.7.1
37
- Requires-Dist: PySide6==6.7.0
38
- Requires-Dist: PyYAML==6.0.1
39
- Requires-Dist: requests==2.31.0
40
- Requires-Dist: typing_extensions==4.11.0; python_version < "3.12"
33
+ Requires-Dist: cffi==1.17.1
34
+ Requires-Dist: eval-type-backport==0.2.0; python_version < "3.10"
35
+ Requires-Dist: gitpython==3.1.44
36
+ Requires-Dist: lupa==2.4
37
+ Requires-Dist: packaging==24.2
38
+ Requires-Dist: pillow==11.1.0
39
+ Requires-Dist: psutil==6.1.1
40
+ Requires-Dist: pydantic==2.10.5
41
+ Requires-Dist: pyside6==6.8.1
42
+ Requires-Dist: pyyaml==6.0.2
43
+ Requires-Dist: requests==2.32.3
44
+ Requires-Dist: typing-extensions==4.12.2; python_full_version < "3.12"
41
45
  Provides-Extra: test
42
- Requires-Dist: flake8; extra == "test"
43
- Requires-Dist: interrogate; extra == "test"
44
- Requires-Dist: lxml; extra == "test"
45
- Requires-Dist: mypy; extra == "test"
46
- Requires-Dist: pip-audit; extra == "test"
47
- Requires-Dist: pycodestyle; extra == "test"
48
- Requires-Dist: pydocstyle[toml]; extra == "test"
49
- Requires-Dist: pytest; extra == "test"
50
- Requires-Dist: pytest-cov; extra == "test"
51
- Requires-Dist: pytest-qt; sys_platform == "win32" and extra == "test"
52
- Requires-Dist: pytest-randomly; extra == "test"
53
- Requires-Dist: ruff; extra == "test"
54
- Requires-Dist: types-cffi; extra == "test"
55
- Requires-Dist: types-Pillow; extra == "test"
56
- Requires-Dist: types-psutil; extra == "test"
57
- Requires-Dist: types-pyinstaller; extra == "test"
58
- Requires-Dist: types-PyYAML; extra == "test"
59
- Requires-Dist: types-requests; extra == "test"
60
- Provides-Extra: dev
61
- Requires-Dist: build; extra == "dev"
62
- Requires-Dist: detect-test-pollution; extra == "dev"
63
- Requires-Dist: isort; extra == "dev"
64
- Requires-Dist: pipdeptree; extra == "dev"
65
- Requires-Dist: pre-commit; extra == "dev"
66
- Requires-Dist: pyinstaller; extra == "dev"
46
+ Requires-Dist: flake8==7.1.1; extra == "test"
47
+ Requires-Dist: interrogate==1.7.0; extra == "test"
48
+ Requires-Dist: isort==5.13.2; extra == "test"
49
+ Requires-Dist: lxml==5.3.0; extra == "test"
50
+ Requires-Dist: mypy==1.14.1; extra == "test"
51
+ Requires-Dist: pip-audit==2.7.3; extra == "test"
52
+ Requires-Dist: pycodestyle==2.12.1; extra == "test"
53
+ Requires-Dist: pytest==8.3.4; extra == "test"
54
+ Requires-Dist: pytest-codspeed==3.1.2; extra == "test"
55
+ Requires-Dist: pytest-cov==6.0.0; extra == "test"
56
+ Requires-Dist: pytest-qt==4.4.0; sys_platform == "win32" and extra == "test"
57
+ Requires-Dist: pytest-randomly==3.16.0; extra == "test"
58
+ Requires-Dist: ruff==0.9.2; extra == "test"
59
+ Requires-Dist: types-cffi==1.16.0.20241221; extra == "test"
60
+ Requires-Dist: types-pillow==10.2.0.20240822; extra == "test"
61
+ Requires-Dist: types-psutil==6.1.0.20241221; extra == "test"
62
+ Requires-Dist: types-pyinstaller==6.11.0.20241028; extra == "test"
63
+ Requires-Dist: types-pyyaml==6.0.12.20241230; extra == "test"
64
+ Requires-Dist: types-requests==2.32.0.20241016; extra == "test"
65
+ Provides-Extra: docs
66
+ Requires-Dist: black==24.10.0; extra == "docs"
67
+ Requires-Dist: mkdocs==1.6.1; extra == "docs"
68
+ Requires-Dist: mkdocs-gen-files==0.5.0; extra == "docs"
69
+ Requires-Dist: mkdocs-literate-nav==0.6.1; extra == "docs"
70
+ Requires-Dist: mkdocs-material==9.5.50; extra == "docs"
71
+ Requires-Dist: mkdocs-plantuml==0.1.1; extra == "docs"
72
+ Requires-Dist: mkdocs-section-index==0.3.9; extra == "docs"
73
+ Requires-Dist: mkdocstrings==0.27.0; extra == "docs"
74
+ Requires-Dist: mkdocstrings-python==1.13.0; extra == "docs"
75
+ Requires-Dist: plantuml==0.3.0; extra == "docs"
67
76
 
68
- [![image](https://img.shields.io/badge/pypi-v3.4.2-blue.svg)](https://pypi.org/project/dcspy/)
77
+ [![image](https://img.shields.io/badge/pypi-v3.6.2-blue.svg)](https://pypi.org/project/dcspy/)
69
78
  [![Python CI](https://github.com/emcek/dcspy/actions/workflows/python-ci.yml/badge.svg?branch=master)](https://github.com/emcek/dcspy/actions/workflows/python-ci.yml)
70
79
  [![Coverage Status](https://coveralls.io/repos/github/emcek/dcspy/badge.svg?branch=master)](https://coveralls.io/github/emcek/dcspy?branch=master)
71
80
  [![Codacy Badge](https://app.codacy.com/project/badge/Grade/5270a4fc2ba24261a3bfa7361150e8ff)](https://app.codacy.com/gh/emcek/dcspy/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
@@ -74,71 +83,69 @@ Requires-Dist: pyinstaller; extra == "dev"
74
83
  [![dcspy](https://snyk.io/advisor/python/dcspy/badge.svg)](https://snyk.io/advisor/python/dcspy)
75
84
  [![Patreon](https://img.shields.io/badge/Patreon-donate-ff424d?logo=patreon)](https://www.patreon.com/mplichta)
76
85
  [![Discord](https://img.shields.io/discord/672486999516774442?label=Discord&logo=discord&logoColor=lightblue)](https://discord.gg/SP5Yjx3)
77
- [![image](https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12-blue.svg)](https://github.com/emcek/dcspy)
86
+ [![image](https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue.svg)](https://github.com/emcek/dcspy)
87
+ [![CodSpeed Badge](https://img.shields.io/endpoint?url=https://codspeed.io/badge.json)](https://codspeed.io/emcek/dcspy)
78
88
  [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/emcek/dcspy/master.svg)](https://results.pre-commit.ci/latest/github/emcek/dcspy/master)
79
89
  [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=emcek_dcspy&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=emcek_dcspy)
80
- [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/6056/badge)](https://bestpractices.coreinfrastructure.org/projects/6056)
81
90
  [![Downloads](https://static.pepy.tech/badge/dcspy)](https://pepy.tech/project/dcspy)
82
- [![Rate this package](https://badges.openbase.com/python/rating/dcspy.svg?token=AZCVj1Hdbl6cC3I/gkVpgsigp22LtCOR0sB8lcODY9Y=)](https://openbase.com/python/dcspy?utm_source=embedded&amp;utm_medium=badge&amp;utm_campaign=rate-badge)
83
91
 
84
92
  ![dcspylogo](https://i.imgur.com/eqqrPB8.jpg)
85
93
  ## DCSpy
86
94
  DCSpy is able to pull information from DCS aircraft and display on Logitech G-series keyboards LCD.
87
95
 
88
96
  Features:
89
- * Logitech device with 160x43 px (4 lines) monochrome LCD - **G13**, **G15 (v1 and v2)** and **G510**
90
- * Logitech device with 320x240 px (8 lines) full RGBA LCD - **G19**
91
- * Support for other [Logitech devices](https://github.com/emcek/dcspy/wiki/Supported-devices):
97
+ * Logitech device with 160x43 px four (4) lines monochrome LCD - **G13**, **G15 (v1 and v2)** and **G510**
98
+ * Logitech device with 320x240 px eight (8) lines full RGBA LCD - **G19**
99
+ * Support for other [Logitech devices](https://dcspy.readthedocs.io/en/latest/devices/):
92
100
  * Keyboards: **G910**, **G710**, **G110**, **G105**, **G103**, **G11**
93
101
  * Headphones: **G35**, **G633**, **G930**, **G933**
94
102
  * Mouses: **G600**, **G300**, **G400**, **G700**, **G9**, **MX518**, **G402**, **G502**, **G602**
95
- * Setup G-Keys to any toggle, switch or knob in cockpit - [Setup of G-Keys](https://github.com/emcek/dcspy/wiki/Usage#how-to-setup)
96
- * Support for all aircraft (official and mods) with clickable cockpits - [DCS-BIOS aircraft](https://github.com/DCS-Skunkworks/dcs-bios#is-my-aircraft-supported)
103
+ * Setup G-Keys to any toggle, switch or knob in cockpit - [Setup of G-Keys](https://dcspy.readthedocs.io/en/latest/usage/#how-to-setup)
104
+ * Support for all aircraft (official and mods) with clickable cockpits - [DCS-BIOS aircraft](https://github.com/DCS-Skunkworks/dcs-bios?tab=readme-ov-file#modules)
97
105
  * Modern looking GUI using Qt6/PySide6
98
106
 
99
- See more information on [Wiki](https://github.com/emcek/dcspy/wiki) page.
107
+ See more information on [documentation](https://dcspy.readthedocs.io/en/latest/) page.
100
108
 
101
109
  ## Aircraft and instruments
102
110
  There are to kinds of supported aircraft:
103
111
  * **Basic** - allow assigning all G-Keys of Logitech keyboard to aircraft's instruments in the cockpit (all clickable cockpits supported by DCS-BIOS)
104
112
  * **Advanced** - additionally can display some information on LCD (listed below)
105
113
 
106
- Why such way? Basically advanced support is for aircraft that I own and therefore can test it.
114
+ Why a such way? Basically advanced support is for aircraft that I own and therefore can test it.
107
115
 
108
116
  # Advanced
109
117
  * F/A-18C Hornet UFC - Up Front Controller
110
118
  * F-16C Viper DED - Data Entry Display
111
- * Ka-50 Black Shark II and III - PVI-800 and autopilot channels
112
- * Mi-8MTV2 Hip - autopilot channels and Radios information
113
- * Mi-24P Hind - Autopilot channels and modes and Radios information
114
- * A-10C Warthog and A-10C II Tank Killer - Radio frequency information
115
- * F-14A and F-14B Tomcat - basic support for RIO CAP
119
+ * Ka-50 Black Shark II / III - PVI-800 and autopilot channels
120
+ * Mi-8MTV2 Hip - autopilot channels and Radio information
121
+ * Mi-24P Hind - Autopilot channels and modes and Radio information
122
+ * A-10C Warthog / A-10C II Tank Killer - Radio frequency information
123
+ * F-14A / F-14B Tomcat - basic support for RIO CAP
116
124
  * AV-8B Night Attack Harrier - Up Front Controller and Option Display Unit
117
- * AH-64D Apache - Enhanced Up Front Display
125
+ * AH-64D Apache - Enhanced Up Front Display (EUFD)
118
126
  * F-15E Eagle - Upfront Control Panel
127
+ * F-4 Phantom II - UHF (ARC 164) Radio
119
128
  * more to come...
120
129
 
121
130
  ## Requirements
122
131
  * [Logitech Gaming Software 9.04.49](https://support.logitech.com/software/lgs)
123
- * [Git](https://git-scm.com/download/win) it is necessary for using live version of DCS-BIOS, see [Live DCS-BIOS](https://github.com/emcek/dcspy/wiki/Information#live-dcs-bios))
124
- * [DCS-BIOS 0.7.50](https://github.com/DCS-Skunkworks/dcs-bios/releases/latest) or newer (can be [installed](https://github.com/emcek/dcspy/wiki/Upgrade#manual-procedure) directly from DCSpy)
125
- * DCS World: [2.9.4.53707](https://www.digitalcombatsimulator.com/en/news/changelog/stable/2.9.4.53707/), but any version from 2.9.* branch should be fine.
132
+ * DCS-Skunkworks DCS-BIOS:
133
+ * [DCS-BIOS 0.8.3](https://github.com/DCS-Skunkworks/dcs-bios/releases/tag/v0.8.3) or newer (can be [installed](https://dcspy.readthedocs.io/en/latest/upgrade/#manual-procedure) directly from DCSpy)
134
+ * However, it is recommended use [Live DCS-BIOS](https://dcspy.readthedocs.io/en/latest/bios_live/) as latest git version
135
+ * [Git](https://git-scm.com/download/win) it is necessary for using the live version of DCS-BIOS
136
+ * DCS World: [2.9.11.4686](https://www.digitalcombatsimulator.com/en/news/changelog/stable/2.9.11.4686/), but any version from 2.9.* branch should be fine.
126
137
  * optional:
127
- * [Python 3.12](https://www.python.org/downloads/) but 3.9+ should be fine (see [installation](https://github.com/emcek/dcspy/wiki/installation))
128
- * However, DCSpy 2.3.3 and earlier do not support Python 3.12
129
-
130
- **Notes:**
131
- * If you upgrade DCSpy from 1.5.1 or older, you can safely remove Logitech LCD SDK from `C:\Program Files\Logitech Gaming Software\LCDSDK_8.57.148`. Since DCSpy version 1.6.0 uses built-in SDK in LGS (Logitech Gaming Software).
138
+ * [Python 3.13](https://www.python.org/downloads/) but 3.9+ should be fine (see [installation](https://dcspy.readthedocs.io/en/latest/install/))
132
139
 
133
140
  ## New ideas
134
141
  I have lots of plans and new ideas how to improve it internally and form a user's perspective, but don't hesitate to contact me. Maybe it will motivate me to implement some new stuff. Please open issue if you find a bug or have any crazy idea.
135
- You are welcome [dcspy Discord](https://discord.gg/SP5Yjx3) server.
142
+ You are welcome [dcspy discord](https://discord.gg/SP5Yjx3) server.
136
143
 
137
144
  ## Contributing
138
145
  You want contribute, perfect see: [contributing](./CONTRIBUTING.md) guide.
139
146
 
140
147
  ## Credits
141
- More details [here](https://github.com/emcek/dcspy/wiki/Information#credits).
148
+ More details [here](https://dcspy.readthedocs.io/en/latest/credits/).
142
149
 
143
150
  ## Sponsored by Jetbrains Open Source Support Program
144
151
  [![logo](https://resources.jetbrains.com/storage/products/company/brand/logos/PyCharm.svg)](https://jb.gg/OpenSourceSupport)
@@ -1,4 +1,4 @@
1
- [![image](https://img.shields.io/badge/pypi-v3.4.2-blue.svg)](https://pypi.org/project/dcspy/)
1
+ [![image](https://img.shields.io/badge/pypi-v3.6.2-blue.svg)](https://pypi.org/project/dcspy/)
2
2
  [![Python CI](https://github.com/emcek/dcspy/actions/workflows/python-ci.yml/badge.svg?branch=master)](https://github.com/emcek/dcspy/actions/workflows/python-ci.yml)
3
3
  [![Coverage Status](https://coveralls.io/repos/github/emcek/dcspy/badge.svg?branch=master)](https://coveralls.io/github/emcek/dcspy?branch=master)
4
4
  [![Codacy Badge](https://app.codacy.com/project/badge/Grade/5270a4fc2ba24261a3bfa7361150e8ff)](https://app.codacy.com/gh/emcek/dcspy/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
@@ -7,71 +7,69 @@
7
7
  [![dcspy](https://snyk.io/advisor/python/dcspy/badge.svg)](https://snyk.io/advisor/python/dcspy)
8
8
  [![Patreon](https://img.shields.io/badge/Patreon-donate-ff424d?logo=patreon)](https://www.patreon.com/mplichta)
9
9
  [![Discord](https://img.shields.io/discord/672486999516774442?label=Discord&logo=discord&logoColor=lightblue)](https://discord.gg/SP5Yjx3)
10
- [![image](https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12-blue.svg)](https://github.com/emcek/dcspy)
10
+ [![image](https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue.svg)](https://github.com/emcek/dcspy)
11
+ [![CodSpeed Badge](https://img.shields.io/endpoint?url=https://codspeed.io/badge.json)](https://codspeed.io/emcek/dcspy)
11
12
  [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/emcek/dcspy/master.svg)](https://results.pre-commit.ci/latest/github/emcek/dcspy/master)
12
13
  [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=emcek_dcspy&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=emcek_dcspy)
13
- [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/6056/badge)](https://bestpractices.coreinfrastructure.org/projects/6056)
14
14
  [![Downloads](https://static.pepy.tech/badge/dcspy)](https://pepy.tech/project/dcspy)
15
- [![Rate this package](https://badges.openbase.com/python/rating/dcspy.svg?token=AZCVj1Hdbl6cC3I/gkVpgsigp22LtCOR0sB8lcODY9Y=)](https://openbase.com/python/dcspy?utm_source=embedded&amp;utm_medium=badge&amp;utm_campaign=rate-badge)
16
15
 
17
16
  ![dcspylogo](https://i.imgur.com/eqqrPB8.jpg)
18
17
  ## DCSpy
19
18
  DCSpy is able to pull information from DCS aircraft and display on Logitech G-series keyboards LCD.
20
19
 
21
20
  Features:
22
- * Logitech device with 160x43 px (4 lines) monochrome LCD - **G13**, **G15 (v1 and v2)** and **G510**
23
- * Logitech device with 320x240 px (8 lines) full RGBA LCD - **G19**
24
- * Support for other [Logitech devices](https://github.com/emcek/dcspy/wiki/Supported-devices):
21
+ * Logitech device with 160x43 px four (4) lines monochrome LCD - **G13**, **G15 (v1 and v2)** and **G510**
22
+ * Logitech device with 320x240 px eight (8) lines full RGBA LCD - **G19**
23
+ * Support for other [Logitech devices](https://dcspy.readthedocs.io/en/latest/devices/):
25
24
  * Keyboards: **G910**, **G710**, **G110**, **G105**, **G103**, **G11**
26
25
  * Headphones: **G35**, **G633**, **G930**, **G933**
27
26
  * Mouses: **G600**, **G300**, **G400**, **G700**, **G9**, **MX518**, **G402**, **G502**, **G602**
28
- * Setup G-Keys to any toggle, switch or knob in cockpit - [Setup of G-Keys](https://github.com/emcek/dcspy/wiki/Usage#how-to-setup)
29
- * Support for all aircraft (official and mods) with clickable cockpits - [DCS-BIOS aircraft](https://github.com/DCS-Skunkworks/dcs-bios#is-my-aircraft-supported)
27
+ * Setup G-Keys to any toggle, switch or knob in cockpit - [Setup of G-Keys](https://dcspy.readthedocs.io/en/latest/usage/#how-to-setup)
28
+ * Support for all aircraft (official and mods) with clickable cockpits - [DCS-BIOS aircraft](https://github.com/DCS-Skunkworks/dcs-bios?tab=readme-ov-file#modules)
30
29
  * Modern looking GUI using Qt6/PySide6
31
30
 
32
- See more information on [Wiki](https://github.com/emcek/dcspy/wiki) page.
31
+ See more information on [documentation](https://dcspy.readthedocs.io/en/latest/) page.
33
32
 
34
33
  ## Aircraft and instruments
35
34
  There are to kinds of supported aircraft:
36
35
  * **Basic** - allow assigning all G-Keys of Logitech keyboard to aircraft's instruments in the cockpit (all clickable cockpits supported by DCS-BIOS)
37
36
  * **Advanced** - additionally can display some information on LCD (listed below)
38
37
 
39
- Why such way? Basically advanced support is for aircraft that I own and therefore can test it.
38
+ Why a such way? Basically advanced support is for aircraft that I own and therefore can test it.
40
39
 
41
40
  # Advanced
42
41
  * F/A-18C Hornet UFC - Up Front Controller
43
42
  * F-16C Viper DED - Data Entry Display
44
- * Ka-50 Black Shark II and III - PVI-800 and autopilot channels
45
- * Mi-8MTV2 Hip - autopilot channels and Radios information
46
- * Mi-24P Hind - Autopilot channels and modes and Radios information
47
- * A-10C Warthog and A-10C II Tank Killer - Radio frequency information
48
- * F-14A and F-14B Tomcat - basic support for RIO CAP
43
+ * Ka-50 Black Shark II / III - PVI-800 and autopilot channels
44
+ * Mi-8MTV2 Hip - autopilot channels and Radio information
45
+ * Mi-24P Hind - Autopilot channels and modes and Radio information
46
+ * A-10C Warthog / A-10C II Tank Killer - Radio frequency information
47
+ * F-14A / F-14B Tomcat - basic support for RIO CAP
49
48
  * AV-8B Night Attack Harrier - Up Front Controller and Option Display Unit
50
- * AH-64D Apache - Enhanced Up Front Display
49
+ * AH-64D Apache - Enhanced Up Front Display (EUFD)
51
50
  * F-15E Eagle - Upfront Control Panel
51
+ * F-4 Phantom II - UHF (ARC 164) Radio
52
52
  * more to come...
53
53
 
54
54
  ## Requirements
55
55
  * [Logitech Gaming Software 9.04.49](https://support.logitech.com/software/lgs)
56
- * [Git](https://git-scm.com/download/win) it is necessary for using live version of DCS-BIOS, see [Live DCS-BIOS](https://github.com/emcek/dcspy/wiki/Information#live-dcs-bios))
57
- * [DCS-BIOS 0.7.50](https://github.com/DCS-Skunkworks/dcs-bios/releases/latest) or newer (can be [installed](https://github.com/emcek/dcspy/wiki/Upgrade#manual-procedure) directly from DCSpy)
58
- * DCS World: [2.9.4.53707](https://www.digitalcombatsimulator.com/en/news/changelog/stable/2.9.4.53707/), but any version from 2.9.* branch should be fine.
56
+ * DCS-Skunkworks DCS-BIOS:
57
+ * [DCS-BIOS 0.8.3](https://github.com/DCS-Skunkworks/dcs-bios/releases/tag/v0.8.3) or newer (can be [installed](https://dcspy.readthedocs.io/en/latest/upgrade/#manual-procedure) directly from DCSpy)
58
+ * However, it is recommended use [Live DCS-BIOS](https://dcspy.readthedocs.io/en/latest/bios_live/) as latest git version
59
+ * [Git](https://git-scm.com/download/win) it is necessary for using the live version of DCS-BIOS
60
+ * DCS World: [2.9.11.4686](https://www.digitalcombatsimulator.com/en/news/changelog/stable/2.9.11.4686/), but any version from 2.9.* branch should be fine.
59
61
  * optional:
60
- * [Python 3.12](https://www.python.org/downloads/) but 3.9+ should be fine (see [installation](https://github.com/emcek/dcspy/wiki/installation))
61
- * However, DCSpy 2.3.3 and earlier do not support Python 3.12
62
-
63
- **Notes:**
64
- * If you upgrade DCSpy from 1.5.1 or older, you can safely remove Logitech LCD SDK from `C:\Program Files\Logitech Gaming Software\LCDSDK_8.57.148`. Since DCSpy version 1.6.0 uses built-in SDK in LGS (Logitech Gaming Software).
62
+ * [Python 3.13](https://www.python.org/downloads/) but 3.9+ should be fine (see [installation](https://dcspy.readthedocs.io/en/latest/install/))
65
63
 
66
64
  ## New ideas
67
65
  I have lots of plans and new ideas how to improve it internally and form a user's perspective, but don't hesitate to contact me. Maybe it will motivate me to implement some new stuff. Please open issue if you find a bug or have any crazy idea.
68
- You are welcome [dcspy Discord](https://discord.gg/SP5Yjx3) server.
66
+ You are welcome [dcspy discord](https://discord.gg/SP5Yjx3) server.
69
67
 
70
68
  ## Contributing
71
69
  You want contribute, perfect see: [contributing](./CONTRIBUTING.md) guide.
72
70
 
73
71
  ## Credits
74
- More details [here](https://github.com/emcek/dcspy/wiki/Information#credits).
72
+ More details [here](https://dcspy.readthedocs.io/en/latest/credits/).
75
73
 
76
74
  ## Sponsored by Jetbrains Open Source Support Program
77
75
  [![logo](https://resources.jetbrains.com/storage/products/company/brand/logos/PyCharm.svg)](https://jb.gg/OpenSourceSupport)
@@ -19,8 +19,10 @@ classifiers = [
19
19
  'Programming Language :: Python :: 3.10',
20
20
  'Programming Language :: Python :: 3.11',
21
21
  'Programming Language :: Python :: 3.12',
22
+ 'Programming Language :: Python :: 3.13',
22
23
  'Operating System :: Microsoft :: Windows',
23
24
  'Operating System :: Microsoft :: Windows :: Windows 10',
25
+ 'Operating System :: Microsoft :: Windows :: Windows 11',
24
26
  'Topic :: Games/Entertainment',
25
27
  'Topic :: Games/Entertainment :: Simulation',
26
28
  'Topic :: Software Development :: Libraries :: Python Modules',
@@ -37,23 +39,25 @@ keywords = [
37
39
  ]
38
40
  dynamic = ['version']
39
41
  dependencies = [
40
- 'cffi==1.16.0',
41
- 'GitPython==3.1.43',
42
- 'packaging==24.0',
43
- 'Pillow==10.3.0',
44
- 'psutil==5.9.8',
45
- 'pydantic==2.7.1',
46
- 'PySide6==6.7.0',
47
- 'PyYAML==6.0.1',
48
- 'requests==2.31.0',
49
- 'typing_extensions==4.11.0; python_version < "3.12"',
42
+ 'cffi==1.17.1',
43
+ 'eval-type-backport==0.2.0 ; python_version < "3.10"',
44
+ 'gitpython==3.1.44',
45
+ 'lupa==2.4',
46
+ 'packaging==24.2',
47
+ 'pillow==11.1.0',
48
+ 'psutil==6.1.1',
49
+ 'pydantic==2.10.5',
50
+ 'pyside6==6.8.1',
51
+ 'pyyaml==6.0.2',
52
+ 'requests==2.32.3',
53
+ 'typing-extensions==4.12.2 ; python_full_version < "3.12"',
50
54
  ]
51
55
 
52
56
  [project.urls]
53
57
  Homepage = 'https://github.com/emcek/dcspy'
54
- Documentation = 'https://github.com/emcek/dcspy/wiki'
55
- Repository = 'https://github.com/emcek/dcspy.git'
56
- Changelog = 'https://github.com/emcek/dcspy/CHANGELOG.md'
58
+ Documentation = 'https://dcspy.readthedocs.io/en/latest/'
59
+ Source = 'https://github.com/emcek/dcspy.git'
60
+ Changelog = 'https://github.com/emcek/dcspy/blob/master/CHANGELOG.md'
57
61
 
58
62
  [project.scripts]
59
63
  dcspy_cli = 'dcspy.run:run'
@@ -63,38 +67,44 @@ dcspy = 'dcspy.run:run'
63
67
 
64
68
  [project.optional-dependencies]
65
69
  test = [
66
- 'flake8',
67
- 'interrogate',
68
- 'lxml',
69
- 'mypy',
70
- 'pip-audit',
71
- 'pycodestyle',
72
- 'pydocstyle[toml]',
73
- 'pytest',
74
- 'pytest-cov',
75
- 'pytest-qt; sys_platform == "win32"',
76
- 'pytest-randomly',
77
- 'ruff',
78
- 'types-cffi',
79
- 'types-Pillow',
80
- 'types-psutil',
81
- 'types-pyinstaller',
82
- 'types-PyYAML',
83
- 'types-requests',
70
+ 'flake8==7.1.1',
71
+ 'interrogate==1.7.0',
72
+ 'isort==5.13.2',
73
+ 'lxml==5.3.0',
74
+ 'mypy==1.14.1',
75
+ 'pip-audit==2.7.3',
76
+ 'pycodestyle==2.12.1',
77
+ 'pytest==8.3.4',
78
+ 'pytest-codspeed==3.1.2',
79
+ 'pytest-cov==6.0.0',
80
+ 'pytest-qt==4.4.0 ; sys_platform == "win32"',
81
+ 'pytest-randomly==3.16.0',
82
+ 'ruff==0.9.2',
83
+ 'types-cffi==1.16.0.20241221',
84
+ 'types-pillow==10.2.0.20240822',
85
+ 'types-psutil==6.1.0.20241221',
86
+ 'types-pyinstaller==6.11.0.20241028',
87
+ 'types-pyyaml==6.0.12.20241230',
88
+ 'types-requests==2.32.0.20241016',
84
89
  ]
85
- dev = [
86
- 'build',
87
- 'detect-test-pollution',
88
- 'isort',
89
- 'pipdeptree',
90
- 'pre-commit',
91
- 'pyinstaller',
90
+ docs = [
91
+ 'black==24.10.0',
92
+ 'mkdocs==1.6.1',
93
+ 'mkdocs-gen-files==0.5.0',
94
+ 'mkdocs-literate-nav==0.6.1',
95
+ 'mkdocs-material==9.5.50',
96
+ 'mkdocs-plantuml==0.1.1',
97
+ 'mkdocs-section-index==0.3.9',
98
+ 'mkdocstrings==0.27.0',
99
+ 'mkdocstrings-python==1.13.0',
100
+ 'plantuml==0.3.0',
92
101
  ]
93
102
 
94
103
  [tool.setuptools.dynamic]
95
104
  version = {attr = 'dcspy.run.__version__'}
96
105
 
97
106
  [tool.setuptools.packages.find]
107
+ where = ['src/']
98
108
  include = ['dcspy*']
99
109
  exclude = ['dcspy.tests*']
100
110
 
@@ -105,11 +115,11 @@ dcspy = [
105
115
  'img/dcspy_black.ico',
106
116
  'sdk/*.h',
107
117
  'py.typed',
108
- '*.yaml',
109
118
  ]
110
119
 
111
120
  [tool.pytest.ini_options]
112
121
  addopts = ['-q']
122
+ pythonpath = ['src']
113
123
  testpaths = ['tests']
114
124
  markers = [
115
125
  'qt6: marks tests for Qt6 verfification',
@@ -131,19 +141,19 @@ ignore-setters = false
131
141
  fail-under = 90
132
142
  verbose = 1
133
143
  quiet = false
134
- exclude = ['tests/test_*', 'dcspy/qtgui_rc.py']
144
+ exclude = ['tests/test_*', 'src/dcspy/qtgui_rc.py']
135
145
 
136
146
  [tool.ruff]
137
147
  line-length = 160
138
148
  lint.select = ['E', 'F', 'C90', 'D', 'RUF']
139
149
  lint.ignore = ['D100', 'D101','D104', 'D105', 'D203', 'D204', 'D212', 'RUF001', 'RUF010']
140
150
  extend-exclude = [
141
- "qtgui_rc.py",
142
- "tests/",
151
+ 'qtgui_rc.py',
152
+ 'tests/',
143
153
  ]
144
154
 
145
155
  [tool.ruff.lint.mccabe]
146
- max-complexity = 6
156
+ max-complexity = 5
147
157
 
148
158
  [tool.mypy]
149
159
  #ignore_missing_imports = true
@@ -161,10 +171,16 @@ exclude = [
161
171
  module = 'dcspy.qt_gui'
162
172
  follow_imports = 'skip'
163
173
 
164
- [tool.pydocstyle]
165
- inherit = false
166
- ignore = ['D100', 'D101','D104', 'D105', 'D203', 'D204', 'D212']
167
- match = '(?!test_|qtgui_rc).*\.py'
168
-
169
174
  [tool.isort]
170
175
  line_length = 160
176
+
177
+ [tool.uv]
178
+ dev-dependencies = [
179
+ 'dcspy[test]',
180
+ 'dcspy[docs]',
181
+ 'build',
182
+ 'detect-test-pollution',
183
+ 'nuitka',
184
+ 'pre-commit',
185
+ 'pyinstaller',
186
+ ]
@@ -1,17 +1,18 @@
1
+ from __future__ import annotations
2
+
1
3
  from logging import getLogger
2
4
  from os import name
3
5
  from pathlib import Path
4
6
  from platform import architecture, python_implementation, python_version, uname
5
7
  from sys import executable, platform
6
- from typing import Optional, Union
7
8
 
8
9
  from dcspy.log import config_logger
9
10
  from dcspy.migration import migrate
10
- from dcspy.models import LOCAL_APPDATA
11
+ from dcspy.models import DCSPY_REPO_NAME, LOCAL_APPDATA, ConfigValue
11
12
  from dcspy.utils import check_dcs_ver, get_default_yaml, load_yaml, save_yaml
12
13
 
13
14
  LOG = getLogger(__name__)
14
- __version__ = '3.4.2'
15
+ __version__ = '3.6.2'
15
16
 
16
17
  default_yaml = get_default_yaml(local_appdata=LOCAL_APPDATA)
17
18
  _start_cfg = load_yaml(full_path=default_yaml)
@@ -24,17 +25,17 @@ LOG.debug(f'Python: {python_implementation()}-{python_version()}')
24
25
  LOG.debug(f'Python exec: {executable}')
25
26
  LOG.debug(f'{uname()}')
26
27
  LOG.debug(f'Configuration: {_config} from: {default_yaml}')
27
- LOG.info(f'dcspy {__version__} https://github.com/emcek/dcspy')
28
- dcs_type, dcs_ver = check_dcs_ver(Path(str(_config['dcs'])))
29
- LOG.info(f'DCS {dcs_type} ver: {dcs_ver}')
28
+ LOG.info(f'dcspy {__version__} https://github.com/{DCSPY_REPO_NAME}')
29
+ dcs_ver = check_dcs_ver(Path(str(_config['dcs'])))
30
+ LOG.info(f'DCS ver: {dcs_ver}')
30
31
 
31
32
 
32
- def get_config_yaml_item(key: str, /, default: Optional[Union[str, int]] = None) -> Union[str, int, bool]:
33
+ def get_config_yaml_item(key: str, /, default: ConfigValue | None = None) -> ConfigValue:
33
34
  """
34
- Get item from configuration YAML file.
35
+ Get item from a configuration YAML file.
35
36
 
36
- :param key: key to get
37
- :param default: default value if key not found
38
- :return: value from configuration
37
+ :param key: Key to get
38
+ :param default: Default value if key not found
39
+ :return: Value from configuration
39
40
  """
40
41
  return load_yaml(full_path=default_yaml).get(key, default)