brickpi3 4.0.6__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 (46) hide show
  1. brickpi3-4.0.6/MANIFEST.in +4 -0
  2. brickpi3-4.0.6/PKG-INFO +136 -0
  3. brickpi3-4.0.6/README.md +103 -0
  4. brickpi3-4.0.6/brickpi3/__init__.py +4 -0
  5. brickpi3-4.0.6/brickpi3/core.py +1105 -0
  6. brickpi3-4.0.6/brickpi3/examples/Analog_Sensor.py +72 -0
  7. brickpi3-4.0.6/brickpi3/examples/BrickPi3_Stack_Set_Address.py +60 -0
  8. brickpi3-4.0.6/brickpi3/examples/EV3-Color_Sensor_Color.py +70 -0
  9. brickpi3-4.0.6/brickpi3/examples/EV3-Color_Sensor_Multi_Mode.py +107 -0
  10. brickpi3-4.0.6/brickpi3/examples/EV3-Color_Sensor_Raw.py +68 -0
  11. brickpi3-4.0.6/brickpi3/examples/EV3-Gyro.py +68 -0
  12. brickpi3-4.0.6/brickpi3/examples/EV3-Infrared.py +64 -0
  13. brickpi3-4.0.6/brickpi3/examples/EV3-Infrared_Remote.py +40 -0
  14. brickpi3-4.0.6/brickpi3/examples/EV3-Ultrasonic.py +64 -0
  15. brickpi3-4.0.6/brickpi3/examples/LED.py +37 -0
  16. brickpi3-4.0.6/brickpi3/examples/LEGO-Motor_DPS.py +52 -0
  17. brickpi3-4.0.6/brickpi3/examples/LEGO-Motor_Encoder.py +39 -0
  18. brickpi3-4.0.6/brickpi3/examples/LEGO-Motor_Position.py +58 -0
  19. brickpi3-4.0.6/brickpi3/examples/LEGO-Motor_Power.py +55 -0
  20. brickpi3-4.0.6/brickpi3/examples/LEGO-Motor_Status.py +55 -0
  21. brickpi3-4.0.6/brickpi3/examples/LEGO-Motors.py +73 -0
  22. brickpi3-4.0.6/brickpi3/examples/LEGO-Touch_Sensor.py +44 -0
  23. brickpi3-4.0.6/brickpi3/examples/NXT-Color_Sensor_Color.py +61 -0
  24. brickpi3-4.0.6/brickpi3/examples/NXT-Color_Sensor_Red_LED.py +53 -0
  25. brickpi3-4.0.6/brickpi3/examples/NXT-Light_Sensor.py +53 -0
  26. brickpi3-4.0.6/brickpi3/examples/NXT-Ultrasonic_Sensor.py +53 -0
  27. brickpi3-4.0.6/brickpi3/examples/Read_Info.py +34 -0
  28. brickpi3-4.0.6/brickpi3/examples/Read_Voltages.py +26 -0
  29. brickpi3-4.0.6/brickpi3/scripts/install_trixie.sh +112 -0
  30. brickpi3-4.0.6/brickpi3/scripts/trixie_setup_gui.sh +63 -0
  31. brickpi3-4.0.6/brickpi3/troubleshooting/BrickPi3.png +0 -0
  32. brickpi3-4.0.6/brickpi3/troubleshooting/BrickPi3_Troubleshooter.desktop +7 -0
  33. brickpi3-4.0.6/brickpi3/troubleshooting/README.md +28 -0
  34. brickpi3-4.0.6/brickpi3/troubleshooting/all_tests.sh +18 -0
  35. brickpi3-4.0.6/brickpi3/troubleshooting/hardware_and_firmware_test.sh +5 -0
  36. brickpi3-4.0.6/brickpi3/troubleshooting/launch_troubleshooter.sh +31 -0
  37. brickpi3-4.0.6/brickpi3/troubleshooting/test_connected.py +21 -0
  38. brickpi3-4.0.6/brickpi3/troubleshooting/troubleshoot.py +116 -0
  39. brickpi3-4.0.6/brickpi3/troubleshooting/troubleshooter_gui.py +228 -0
  40. brickpi3-4.0.6/brickpi3.egg-info/PKG-INFO +136 -0
  41. brickpi3-4.0.6/brickpi3.egg-info/SOURCES.txt +44 -0
  42. brickpi3-4.0.6/brickpi3.egg-info/dependency_links.txt +1 -0
  43. brickpi3-4.0.6/brickpi3.egg-info/requires.txt +4 -0
  44. brickpi3-4.0.6/brickpi3.egg-info/top_level.txt +1 -0
  45. brickpi3-4.0.6/pyproject.toml +65 -0
  46. brickpi3-4.0.6/setup.cfg +4 -0
@@ -0,0 +1,4 @@
1
+ include README.md
2
+ recursive-include brickpi3/examples *.py
3
+ recursive-include brickpi3/troubleshooting *.py
4
+ recursive-include brickpi3/scripts *.sh
@@ -0,0 +1,136 @@
1
+ Metadata-Version: 2.4
2
+ Name: brickpi3
3
+ Version: 4.0.6
4
+ Summary: Drivers and examples for using the BrickPi3 in Python
5
+ Author-email: Modular Robotics Inc <info@modrobotics.com>
6
+ Maintainer-email: Modular Robotics Inc <info@modrobotics.com>
7
+ License-Expression: MIT
8
+ Project-URL: Homepage, https://www.dexterindustries.com/BrickPi/
9
+ Project-URL: Documentation, https://www.dexterindustries.com/brickpi3-tutorials-documentation/
10
+ Project-URL: Repository, https://github.com/DexterInd/BrickPi3
11
+ Project-URL: Bug Tracker, https://github.com/DexterInd/BrickPi3/issues
12
+ Keywords: brickpi,brickpi3,lego,mindstorms,ev3,nxt,raspberry pi,robotics,education
13
+ Classifier: Development Status :: 5 - Production/Stable
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Education
16
+ Classifier: Operating System :: POSIX :: Linux
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.7
19
+ Classifier: Programming Language :: Python :: 3.8
20
+ Classifier: Programming Language :: Python :: 3.9
21
+ Classifier: Programming Language :: Python :: 3.10
22
+ Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
24
+ Classifier: Programming Language :: Python :: 3.13
25
+ Classifier: Programming Language :: Python :: 3.14
26
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
27
+ Classifier: Topic :: System :: Hardware
28
+ Requires-Python: >=3.7
29
+ Description-Content-Type: text/markdown
30
+ Requires-Dist: spidev
31
+ Provides-Extra: gui
32
+ Requires-Dist: wxPython; extra == "gui"
33
+
34
+ # BrickPi3 Python Package
35
+
36
+ Modern Python package for BrickPi3 hardware drivers, configured using `pyproject.toml`.
37
+
38
+ ## Installation
39
+
40
+ ### From PyPI (Recommended)
41
+
42
+ Once published, install with:
43
+
44
+ ```bash
45
+ pip install brickpi3
46
+ ```
47
+
48
+ On Raspberry Pi OS, this automatically gets optimized ARM wheels from piwheels.
49
+
50
+ ### From Source
51
+
52
+ ```bash
53
+ cd Software/Python
54
+ pip install .
55
+ ```
56
+
57
+ ## Development Installation
58
+
59
+ For development with editable install:
60
+
61
+ ```bash
62
+ cd Software/Python
63
+ pip install -e .
64
+ ```
65
+
66
+ ## Package Structure
67
+
68
+ ```
69
+ Software/Python/
70
+ ├── pyproject.toml # Modern package configuration (PEP 517/518)
71
+ ├── MANIFEST.in # Additional files to include in distribution
72
+ ├── brickpi3.py # Main driver module
73
+ ├── scripts/ # Install scripts
74
+ ├── troubleshooting/ # Troubleshooting scripts
75
+ └── examples/ # Example scripts
76
+ ```
77
+
78
+ ## Configuration Details
79
+
80
+ ### pyproject.toml
81
+
82
+ This file contains all package metadata:
83
+
84
+ - **Project metadata**: name, version, description, authors
85
+ - **Dependencies**: `spidev` for SPI communication
86
+ - **Python requirements**: >=3.7
87
+ - **Classifiers**: Platform, development status, audience
88
+ - **URLs**: Homepage, documentation, repository, bug tracker
89
+
90
+ ### Version Management
91
+
92
+ Version is specified in `pyproject.toml`:
93
+
94
+ ```toml
95
+ [project]
96
+ version = "4.0.6"
97
+ ```
98
+
99
+ Update this for each release before building.
100
+
101
+ ## Building
102
+
103
+ Build source distribution and wheel:
104
+
105
+ ```bash
106
+ cd Software/Python
107
+ python -m build
108
+ ```
109
+
110
+ This creates:
111
+ - `dist/brickpi3-4.0.6.tar.gz` (source distribution)
112
+ - `dist/brickpi3-4.0.6-py3-none-any.whl` (wheel)
113
+
114
+ ## Publishing
115
+
116
+ See [PYPI_PUBLISHING.md](../../PYPI_PUBLISHING.md) for detailed instructions on publishing to PyPI.
117
+
118
+ ## Requirements
119
+
120
+ - **Python**: 3.7 or higher
121
+ - **Platform**: Raspberry Pi OS (Linux only)
122
+ - **Hardware**: BrickPi3 board
123
+ - **Dependencies**:
124
+ - `spidev` - SPI interface (automatically installed)
125
+
126
+ ## License
127
+
128
+ MIT License - see [LICENSE.md](../../LICENSE.md)
129
+
130
+ ## Links
131
+
132
+ - **Homepage**: https://www.dexterindustries.com/BrickPi/
133
+ - **Documentation**: https://www.dexterindustries.com/brickpi3-tutorials-documentation/
134
+ - **Repository**: https://github.com/DexterInd/BrickPi3
135
+ - **PyPI**: https://pypi.org/project/brickpi3/ (once published)
136
+ - **PyWheels**: https://www.piwheels.org/project/brickpi3/ (automatic after PyPI)
@@ -0,0 +1,103 @@
1
+ # BrickPi3 Python Package
2
+
3
+ Modern Python package for BrickPi3 hardware drivers, configured using `pyproject.toml`.
4
+
5
+ ## Installation
6
+
7
+ ### From PyPI (Recommended)
8
+
9
+ Once published, install with:
10
+
11
+ ```bash
12
+ pip install brickpi3
13
+ ```
14
+
15
+ On Raspberry Pi OS, this automatically gets optimized ARM wheels from piwheels.
16
+
17
+ ### From Source
18
+
19
+ ```bash
20
+ cd Software/Python
21
+ pip install .
22
+ ```
23
+
24
+ ## Development Installation
25
+
26
+ For development with editable install:
27
+
28
+ ```bash
29
+ cd Software/Python
30
+ pip install -e .
31
+ ```
32
+
33
+ ## Package Structure
34
+
35
+ ```
36
+ Software/Python/
37
+ ├── pyproject.toml # Modern package configuration (PEP 517/518)
38
+ ├── MANIFEST.in # Additional files to include in distribution
39
+ ├── brickpi3.py # Main driver module
40
+ ├── scripts/ # Install scripts
41
+ ├── troubleshooting/ # Troubleshooting scripts
42
+ └── examples/ # Example scripts
43
+ ```
44
+
45
+ ## Configuration Details
46
+
47
+ ### pyproject.toml
48
+
49
+ This file contains all package metadata:
50
+
51
+ - **Project metadata**: name, version, description, authors
52
+ - **Dependencies**: `spidev` for SPI communication
53
+ - **Python requirements**: >=3.7
54
+ - **Classifiers**: Platform, development status, audience
55
+ - **URLs**: Homepage, documentation, repository, bug tracker
56
+
57
+ ### Version Management
58
+
59
+ Version is specified in `pyproject.toml`:
60
+
61
+ ```toml
62
+ [project]
63
+ version = "4.0.6"
64
+ ```
65
+
66
+ Update this for each release before building.
67
+
68
+ ## Building
69
+
70
+ Build source distribution and wheel:
71
+
72
+ ```bash
73
+ cd Software/Python
74
+ python -m build
75
+ ```
76
+
77
+ This creates:
78
+ - `dist/brickpi3-4.0.6.tar.gz` (source distribution)
79
+ - `dist/brickpi3-4.0.6-py3-none-any.whl` (wheel)
80
+
81
+ ## Publishing
82
+
83
+ See [PYPI_PUBLISHING.md](../../PYPI_PUBLISHING.md) for detailed instructions on publishing to PyPI.
84
+
85
+ ## Requirements
86
+
87
+ - **Python**: 3.7 or higher
88
+ - **Platform**: Raspberry Pi OS (Linux only)
89
+ - **Hardware**: BrickPi3 board
90
+ - **Dependencies**:
91
+ - `spidev` - SPI interface (automatically installed)
92
+
93
+ ## License
94
+
95
+ MIT License - see [LICENSE.md](../../LICENSE.md)
96
+
97
+ ## Links
98
+
99
+ - **Homepage**: https://www.dexterindustries.com/BrickPi/
100
+ - **Documentation**: https://www.dexterindustries.com/brickpi3-tutorials-documentation/
101
+ - **Repository**: https://github.com/DexterInd/BrickPi3
102
+ - **PyPI**: https://pypi.org/project/brickpi3/ (once published)
103
+ - **PyWheels**: https://www.piwheels.org/project/brickpi3/ (automatic after PyPI)
@@ -0,0 +1,4 @@
1
+ # Python drivers for the BrickPi3
2
+ __version__ = "trixie-4.0.6"
3
+
4
+ from .core import *