pibooth 2.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 (86) hide show
  1. pibooth-2.1.1/LICENSE +21 -0
  2. pibooth-2.1.1/MANIFEST.in +1 -0
  3. pibooth-2.1.1/PKG-INFO +178 -0
  4. pibooth-2.1.1/README.rst +102 -0
  5. pibooth-2.1.1/docs/requirements.txt +10 -0
  6. pibooth-2.1.1/pibooth/__init__.py +15 -0
  7. pibooth-2.1.1/pibooth/booth.py +506 -0
  8. pibooth-2.1.1/pibooth/camera/__init__.py +52 -0
  9. pibooth-2.1.1/pibooth/camera/base.py +147 -0
  10. pibooth-2.1.1/pibooth/camera/gphoto.py +323 -0
  11. pibooth-2.1.1/pibooth/camera/hybrid.py +88 -0
  12. pibooth-2.1.1/pibooth/camera/opencv.py +253 -0
  13. pibooth-2.1.1/pibooth/camera/rpi2.py +329 -0
  14. pibooth-2.1.1/pibooth/config/__init__.py +6 -0
  15. pibooth-2.1.1/pibooth/config/menu.py +496 -0
  16. pibooth-2.1.1/pibooth/config/parser.py +570 -0
  17. pibooth-2.1.1/pibooth/counters.py +113 -0
  18. pibooth-2.1.1/pibooth/fonts/Amatic-Bold.ttf +0 -0
  19. pibooth-2.1.1/pibooth/fonts/AmaticSC-Regular.ttf +0 -0
  20. pibooth-2.1.1/pibooth/fonts/DancingScript-Bold.ttf +0 -0
  21. pibooth-2.1.1/pibooth/fonts/DancingScript-Regular.ttf +0 -0
  22. pibooth-2.1.1/pibooth/fonts/Monoid-Bold.ttf +0 -0
  23. pibooth-2.1.1/pibooth/fonts/Monoid-Regular.ttf +0 -0
  24. pibooth-2.1.1/pibooth/fonts/Monoid-Retina.ttf +0 -0
  25. pibooth-2.1.1/pibooth/fonts/Roboto-BoldItalic.ttf +0 -0
  26. pibooth-2.1.1/pibooth/fonts/Roboto-LightItalic.ttf +0 -0
  27. pibooth-2.1.1/pibooth/fonts/__init__.py +112 -0
  28. pibooth-2.1.1/pibooth/language.py +294 -0
  29. pibooth-2.1.1/pibooth/pictures/__init__.py +193 -0
  30. pibooth-2.1.1/pibooth/pictures/assets/arrow.png +0 -0
  31. pibooth-2.1.1/pibooth/pictures/assets/camera.png +0 -0
  32. pibooth-2.1.1/pibooth/pictures/assets/capture_left.png +0 -0
  33. pibooth-2.1.1/pibooth/pictures/assets/capture_right.png +0 -0
  34. pibooth-2.1.1/pibooth/pictures/assets/finished_left.png +0 -0
  35. pibooth-2.1.1/pibooth/pictures/assets/finished_right.png +0 -0
  36. pibooth-2.1.1/pibooth/pictures/assets/hand.png +0 -0
  37. pibooth-2.1.1/pibooth/pictures/assets/layout1.png +0 -0
  38. pibooth-2.1.1/pibooth/pictures/assets/layout2.png +0 -0
  39. pibooth-2.1.1/pibooth/pictures/assets/layout3.png +0 -0
  40. pibooth-2.1.1/pibooth/pictures/assets/layout4.png +0 -0
  41. pibooth-2.1.1/pibooth/pictures/assets/printer.png +0 -0
  42. pibooth-2.1.1/pibooth/pictures/assets/printer_failure.png +0 -0
  43. pibooth-2.1.1/pibooth/pictures/assets/printer_touch.png +0 -0
  44. pibooth-2.1.1/pibooth/pictures/assets/processing.png +0 -0
  45. pibooth-2.1.1/pibooth/pictures/factory.py +531 -0
  46. pibooth-2.1.1/pibooth/pictures/pool.py +36 -0
  47. pibooth-2.1.1/pibooth/pictures/sizing.py +114 -0
  48. pibooth-2.1.1/pibooth/plugins/__init__.py +152 -0
  49. pibooth-2.1.1/pibooth/plugins/camera_plugin.py +118 -0
  50. pibooth-2.1.1/pibooth/plugins/hookspecs.py +515 -0
  51. pibooth-2.1.1/pibooth/plugins/lights_plugin.py +72 -0
  52. pibooth-2.1.1/pibooth/plugins/picture_plugin.py +159 -0
  53. pibooth-2.1.1/pibooth/plugins/printer_plugin.py +67 -0
  54. pibooth-2.1.1/pibooth/plugins/view_plugin.py +187 -0
  55. pibooth-2.1.1/pibooth/printer.py +148 -0
  56. pibooth-2.1.1/pibooth/scripts/__init__.py +0 -0
  57. pibooth-2.1.1/pibooth/scripts/count.py +45 -0
  58. pibooth-2.1.1/pibooth/scripts/diagnostic.py +544 -0
  59. pibooth-2.1.1/pibooth/scripts/fonts.py +38 -0
  60. pibooth-2.1.1/pibooth/scripts/printer.py +78 -0
  61. pibooth-2.1.1/pibooth/scripts/regenerate.py +103 -0
  62. pibooth-2.1.1/pibooth/states.py +105 -0
  63. pibooth-2.1.1/pibooth/utils.py +299 -0
  64. pibooth-2.1.1/pibooth/view/__init__.py +5 -0
  65. pibooth-2.1.1/pibooth/view/background.py +681 -0
  66. pibooth-2.1.1/pibooth/view/window.py +390 -0
  67. pibooth-2.1.1/pibooth.egg-info/PKG-INFO +178 -0
  68. pibooth-2.1.1/pibooth.egg-info/SOURCES.txt +84 -0
  69. pibooth-2.1.1/pibooth.egg-info/dependency_links.txt +1 -0
  70. pibooth-2.1.1/pibooth.egg-info/entry_points.txt +7 -0
  71. pibooth-2.1.1/pibooth.egg-info/not-zip-safe +1 -0
  72. pibooth-2.1.1/pibooth.egg-info/requires.txt +29 -0
  73. pibooth-2.1.1/pibooth.egg-info/top_level.txt +1 -0
  74. pibooth-2.1.1/setup.cfg +4 -0
  75. pibooth-2.1.1/setup.py +98 -0
  76. pibooth-2.1.1/tests/test_booth.py +68 -0
  77. pibooth-2.1.1/tests/test_camera.py +34 -0
  78. pibooth-2.1.1/tests/test_camera_rpi2.py +318 -0
  79. pibooth-2.1.1/tests/test_config.py +193 -0
  80. pibooth-2.1.1/tests/test_consistency.py +36 -0
  81. pibooth-2.1.1/tests/test_counters.py +114 -0
  82. pibooth-2.1.1/tests/test_factory.py +81 -0
  83. pibooth-2.1.1/tests/test_menu.py +361 -0
  84. pibooth-2.1.1/tests/test_printer.py +115 -0
  85. pibooth-2.1.1/tests/test_sizing.py +64 -0
  86. pibooth-2.1.1/tests/test_window.py +89 -0
pibooth-2.1.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Vincent Verdeil and Antoine Rousseaux
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9
+ of the Software, and to permit persons to whom the Software is furnished to do
10
+ so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ include docs/requirements.txt
pibooth-2.1.1/PKG-INFO ADDED
@@ -0,0 +1,178 @@
1
+ Metadata-Version: 2.4
2
+ Name: pibooth
3
+ Version: 2.1.1
4
+ Summary: A photo booth application in pure Python for the Raspberry Pi.
5
+ Home-page: https://github.com/pibooth/pibooth
6
+ Download-URL: https://github.com/pibooth/pibooth/archive/2.1.1.tar.gz
7
+ Author: Vincent Verdeil, Antoine Rousseaux
8
+ License: MIT license
9
+ Keywords: Raspberry Pi,camera,photobooth
10
+ Platform: unix
11
+ Platform: linux
12
+ Classifier: Development Status :: 5 - Production/Stable
13
+ Classifier: Environment :: Other Environment
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: End Users/Desktop
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Operating System :: POSIX :: Linux
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Natural Language :: Danish
23
+ Classifier: Natural Language :: Dutch
24
+ Classifier: Natural Language :: English
25
+ Classifier: Natural Language :: French
26
+ Classifier: Natural Language :: German
27
+ Classifier: Natural Language :: Hungarian
28
+ Classifier: Natural Language :: Italian
29
+ Classifier: Natural Language :: Norwegian
30
+ Classifier: Natural Language :: Portuguese
31
+ Classifier: Natural Language :: Portuguese (Brazilian)
32
+ Classifier: Natural Language :: Spanish
33
+ Classifier: Natural Language :: Swedish
34
+ Classifier: Topic :: Multimedia :: Graphics :: Capture :: Digital Camera
35
+ Requires-Python: >=3.10
36
+ Description-Content-Type: text/x-rst
37
+ License-File: LICENSE
38
+ Requires-Dist: Pillow>=10.4.0
39
+ Requires-Dist: pygame>=1.9.6
40
+ Requires-Dist: pygame-menu<5,>=4.0
41
+ Requires-Dist: pygame-vkeyboard>=2.0.8
42
+ Requires-Dist: psutil>=5.5.1
43
+ Requires-Dist: pluggy>=0.13.1
44
+ Requires-Dist: gpiozero>=1.5.1
45
+ Requires-Dist: RPi.GPIO>=0.7.0; platform_machine >= "armv0l" and platform_machine <= "armv9l"
46
+ Provides-Extra: dslr
47
+ Requires-Dist: gphoto2>=2.0.0; extra == "dslr"
48
+ Provides-Extra: printer
49
+ Requires-Dist: pycups>=1.9.73; extra == "printer"
50
+ Requires-Dist: pycups-notify>=0.0.4; extra == "printer"
51
+ Provides-Extra: doc
52
+ Requires-Dist: sphinx; extra == "doc"
53
+ Requires-Dist: furo; extra == "doc"
54
+ Requires-Dist: sphinx-copybutton; extra == "doc"
55
+ Requires-Dist: pluggy; extra == "doc"
56
+ Requires-Dist: pygame; extra == "doc"
57
+ Requires-Dist: pygame-menu; extra == "doc"
58
+ Requires-Dist: pygame-vkeyboard; extra == "doc"
59
+ Requires-Dist: psutil; extra == "doc"
60
+ Requires-Dist: gpiozero; extra == "doc"
61
+ Requires-Dist: Pillow>=10.4.0; extra == "doc"
62
+ Dynamic: author
63
+ Dynamic: classifier
64
+ Dynamic: description
65
+ Dynamic: description-content-type
66
+ Dynamic: download-url
67
+ Dynamic: home-page
68
+ Dynamic: keywords
69
+ Dynamic: license
70
+ Dynamic: license-file
71
+ Dynamic: platform
72
+ Dynamic: provides-extra
73
+ Dynamic: requires-dist
74
+ Dynamic: requires-python
75
+ Dynamic: summary
76
+
77
+ |Pibooth|
78
+
79
+ |PythonVersions| |PypiPackage| |Downloads| |Tests|
80
+
81
+ The ``pibooth`` project provides a photobooth application *out-of-the-box* in pure Python
82
+ for Raspberry Pi. Have a look to the `wiki <https://github.com/pibooth/pibooth/wiki>`_
83
+ to discover some realizations from GitHub users, and don't hesitate to send us
84
+ photos of your version.
85
+
86
+ .. image:: https://raw.githubusercontent.com/pibooth/pibooth/master/docs/images/background_samples.png
87
+ :align: center
88
+ :alt: Settings
89
+
90
+ Features
91
+ --------
92
+
93
+ * Interface available in Danish, Dutch, English, French, German, Hungarian, Norwegian, Portuguese (Portugal and Brazil), Spanish and Swedish (customizable)
94
+ * Capture from 1 to 4 photos and concatenate them in a final picture
95
+ * Support all cameras compatible with gPhoto2, OpenCV and Raspberry Pi
96
+ * Support for hardware buttons and lamps on Raspberry Pi GPIO
97
+ * Fully driven from hardware buttons / keyboard / mouse / touchscreen
98
+ * Auto-start at the Raspberry Pi startup
99
+ * Animate captures from the last sequence during idle time
100
+ * Store final pictures and the individual captures
101
+ * Printing final pictures using CUPS server (printing queue indication)
102
+ * Custom texts can be added on the final picture (customizable fonts, colors, alignments)
103
+ * Custom background(s) and overlay(s) can be added on the final picture
104
+ * All settings available in a configuration file (most common options in a graphical interface)
105
+ * Highly customizable thanks to its plugin system, you can install
106
+ `plugins developed by the community from PyPI <https://pypi.org/search/?q=pibooth>`_
107
+ or develop your own plugin.
108
+
109
+ Documentation
110
+ -------------
111
+
112
+ .. image:: https://raw.githubusercontent.com/pibooth/pibooth/master/docs/images/documentation.png
113
+ :align: center
114
+ :alt: Documentation
115
+ :target: https://pibooth.readthedocs.io/en/stable
116
+ :height: 200px
117
+
118
+ Plugins
119
+ -------
120
+
121
+ Here is a list of known plugins compatible with Pibooth
122
+
123
+ Pibooth organisation's plugin
124
+ =============================
125
+
126
+ - `pibooth-picture-template <https://github.com/pibooth/pibooth-picture-template>`_
127
+ - `pibooth-google-photo <https://github.com/pibooth/pibooth-google-photo>`_
128
+ - `pibooth-sound-effects <https://github.com/pibooth/pibooth-sound-effects>`_
129
+ - `pibooth_dropbox <https://github.com/pibooth/pibooth-dropbox>`_
130
+ - `pibooth-qrcode <https://github.com/pibooth/pibooth-qrcode>`_
131
+ - `pibooth-extra-lights <https://github.com/pibooth/pibooth-extra-lights>`_
132
+
133
+ Third-party plugins
134
+ ===================
135
+
136
+ Third-party plugins can be found on GitHub or on `plugins on PyPI <https://pypi.org/search/?q=pibooth>`_.
137
+ Here is a short list:
138
+
139
+ - `pibooth-lcd-display <https://pypi.org/project/pibooth-lcd-display>`_
140
+ - `pibooth-oled-display <https://pypi.org/project/pibooth-oled-display>`_
141
+ - `pibooth-neopixel_spi <https://github.com/peteoheat/pibooth-neopixel_spi>`_
142
+ - `pibooth-telegram-upload <https://pypi.org/project/pibooth-telegram-upload>`_
143
+ - `pibooth-s3-upload <https://pypi.org/project/pibooth-s3-upload>`_
144
+
145
+ Sponsors
146
+ --------
147
+
148
+ An enormous thanks to our sponsors:
149
+
150
+ - `@andhey <https://github.com/andhey>`_
151
+ - `@vo55 <https://github.com/vo55>`_
152
+ - `@laurammiller <https://github.com/laurammiller>`_
153
+ - `@neilrenfrey <https://github.com/neilrenfrey>`_
154
+ - `@agrovista <https://github.com/agrovista>`_
155
+ - `@mozdi <https://github.com/mozdi>`_
156
+ - `@MikkeBoomBoom <https://github.com/MikkeBoomBoom>`_
157
+ - `@fatgeek <https://github.com/fatgeek>`_
158
+
159
+ It means a lot to us!
160
+
161
+ .. |Pibooth| image:: https://raw.githubusercontent.com/pibooth/pibooth/master/docs/pibooth.png
162
+ :align: middle
163
+
164
+ .. |PythonVersions| image:: https://img.shields.io/badge/python-3.10+-red.svg
165
+ :target: https://www.python.org/downloads
166
+ :alt: Python 3.10+
167
+
168
+ .. |PypiPackage| image:: https://badge.fury.io/py/pibooth.svg
169
+ :target: https://pypi.org/project/pibooth
170
+ :alt: PyPi package
171
+
172
+ .. |Downloads| image:: https://img.shields.io/pypi/dm/pibooth?color=purple
173
+ :target: https://pypi.org/project/pibooth
174
+ :alt: PyPi downloads
175
+
176
+ .. |Tests| image:: https://github.com/pibooth/pibooth/actions/workflows/ci.yml/badge.svg?branch=master
177
+ :target: https://github.com/pibooth/pibooth/actions/workflows/ci.yml?query=branch%3Amaster
178
+ :alt: Tests
@@ -0,0 +1,102 @@
1
+ |Pibooth|
2
+
3
+ |PythonVersions| |PypiPackage| |Downloads| |Tests|
4
+
5
+ The ``pibooth`` project provides a photobooth application *out-of-the-box* in pure Python
6
+ for Raspberry Pi. Have a look to the `wiki <https://github.com/pibooth/pibooth/wiki>`_
7
+ to discover some realizations from GitHub users, and don't hesitate to send us
8
+ photos of your version.
9
+
10
+ .. image:: https://raw.githubusercontent.com/pibooth/pibooth/master/docs/images/background_samples.png
11
+ :align: center
12
+ :alt: Settings
13
+
14
+ Features
15
+ --------
16
+
17
+ * Interface available in Danish, Dutch, English, French, German, Hungarian, Norwegian, Portuguese (Portugal and Brazil), Spanish and Swedish (customizable)
18
+ * Capture from 1 to 4 photos and concatenate them in a final picture
19
+ * Support all cameras compatible with gPhoto2, OpenCV and Raspberry Pi
20
+ * Support for hardware buttons and lamps on Raspberry Pi GPIO
21
+ * Fully driven from hardware buttons / keyboard / mouse / touchscreen
22
+ * Auto-start at the Raspberry Pi startup
23
+ * Animate captures from the last sequence during idle time
24
+ * Store final pictures and the individual captures
25
+ * Printing final pictures using CUPS server (printing queue indication)
26
+ * Custom texts can be added on the final picture (customizable fonts, colors, alignments)
27
+ * Custom background(s) and overlay(s) can be added on the final picture
28
+ * All settings available in a configuration file (most common options in a graphical interface)
29
+ * Highly customizable thanks to its plugin system, you can install
30
+ `plugins developed by the community from PyPI <https://pypi.org/search/?q=pibooth>`_
31
+ or develop your own plugin.
32
+
33
+ Documentation
34
+ -------------
35
+
36
+ .. image:: https://raw.githubusercontent.com/pibooth/pibooth/master/docs/images/documentation.png
37
+ :align: center
38
+ :alt: Documentation
39
+ :target: https://pibooth.readthedocs.io/en/stable
40
+ :height: 200px
41
+
42
+ Plugins
43
+ -------
44
+
45
+ Here is a list of known plugins compatible with Pibooth
46
+
47
+ Pibooth organisation's plugin
48
+ =============================
49
+
50
+ - `pibooth-picture-template <https://github.com/pibooth/pibooth-picture-template>`_
51
+ - `pibooth-google-photo <https://github.com/pibooth/pibooth-google-photo>`_
52
+ - `pibooth-sound-effects <https://github.com/pibooth/pibooth-sound-effects>`_
53
+ - `pibooth_dropbox <https://github.com/pibooth/pibooth-dropbox>`_
54
+ - `pibooth-qrcode <https://github.com/pibooth/pibooth-qrcode>`_
55
+ - `pibooth-extra-lights <https://github.com/pibooth/pibooth-extra-lights>`_
56
+
57
+ Third-party plugins
58
+ ===================
59
+
60
+ Third-party plugins can be found on GitHub or on `plugins on PyPI <https://pypi.org/search/?q=pibooth>`_.
61
+ Here is a short list:
62
+
63
+ - `pibooth-lcd-display <https://pypi.org/project/pibooth-lcd-display>`_
64
+ - `pibooth-oled-display <https://pypi.org/project/pibooth-oled-display>`_
65
+ - `pibooth-neopixel_spi <https://github.com/peteoheat/pibooth-neopixel_spi>`_
66
+ - `pibooth-telegram-upload <https://pypi.org/project/pibooth-telegram-upload>`_
67
+ - `pibooth-s3-upload <https://pypi.org/project/pibooth-s3-upload>`_
68
+
69
+ Sponsors
70
+ --------
71
+
72
+ An enormous thanks to our sponsors:
73
+
74
+ - `@andhey <https://github.com/andhey>`_
75
+ - `@vo55 <https://github.com/vo55>`_
76
+ - `@laurammiller <https://github.com/laurammiller>`_
77
+ - `@neilrenfrey <https://github.com/neilrenfrey>`_
78
+ - `@agrovista <https://github.com/agrovista>`_
79
+ - `@mozdi <https://github.com/mozdi>`_
80
+ - `@MikkeBoomBoom <https://github.com/MikkeBoomBoom>`_
81
+ - `@fatgeek <https://github.com/fatgeek>`_
82
+
83
+ It means a lot to us!
84
+
85
+ .. |Pibooth| image:: https://raw.githubusercontent.com/pibooth/pibooth/master/docs/pibooth.png
86
+ :align: middle
87
+
88
+ .. |PythonVersions| image:: https://img.shields.io/badge/python-3.10+-red.svg
89
+ :target: https://www.python.org/downloads
90
+ :alt: Python 3.10+
91
+
92
+ .. |PypiPackage| image:: https://badge.fury.io/py/pibooth.svg
93
+ :target: https://pypi.org/project/pibooth
94
+ :alt: PyPi package
95
+
96
+ .. |Downloads| image:: https://img.shields.io/pypi/dm/pibooth?color=purple
97
+ :target: https://pypi.org/project/pibooth
98
+ :alt: PyPi downloads
99
+
100
+ .. |Tests| image:: https://github.com/pibooth/pibooth/actions/workflows/ci.yml/badge.svg?branch=master
101
+ :target: https://github.com/pibooth/pibooth/actions/workflows/ci.yml?query=branch%3Amaster
102
+ :alt: Tests
@@ -0,0 +1,10 @@
1
+ sphinx
2
+ furo
3
+ sphinx-copybutton
4
+ pluggy
5
+ pygame
6
+ pygame-menu
7
+ pygame-vkeyboard
8
+ psutil
9
+ gpiozero
10
+ Pillow>=10.4.0
@@ -0,0 +1,15 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ """A photo booth application in pure Python for the Raspberry Pi."""
4
+
5
+ __version__ = "2.1.1"
6
+
7
+ try:
8
+
9
+ import pluggy
10
+
11
+ # Marker to be imported and used in plugins (and for own implementations)
12
+ hookimpl = pluggy.HookimplMarker('pibooth')
13
+
14
+ except ImportError:
15
+ pass # When running the setup.py, pluggy is not yet installed