raylib 5.0.0.5__cp313-cp313-manylinux2014_aarch64.whl → 5.5.0.3__cp313-cp313-manylinux2014_aarch64.whl

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.

Potentially problematic release.


This version of raylib might be problematic. Click here for more details.

@@ -1,145 +1,230 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: raylib
3
- Version: 5.0.0.5
3
+ Version: 5.5.0.3
4
4
  Summary: Python CFFI bindings for Raylib
5
5
  Home-page: https://github.com/electronstudio/raylib-python-cffi
6
6
  Author: Electron Studio
7
7
  Author-email: github@electronstudio.co.uk
8
- License: EPL-2.0
9
- Classifier: License :: OSI Approved :: Eclipse Public License 2.0 (EPL-2.0)
10
8
  Classifier: Programming Language :: Python :: 3
11
9
  Classifier: Programming Language :: Python :: 3.13
12
10
  Classifier: Programming Language :: Python :: 3.12
13
11
  Classifier: Programming Language :: Python :: 3.11
14
12
  Classifier: Programming Language :: Python :: 3.10
15
- Classifier: Programming Language :: Python :: 3.9
16
- Classifier: Programming Language :: Python :: 3.8
17
- Classifier: Programming Language :: Python :: 3.7
18
13
  Description-Content-Type: text/markdown
19
14
  License-File: LICENSE
20
15
  Requires-Dist: cffi>=1.17.1
16
+ Dynamic: author
17
+ Dynamic: author-email
18
+ Dynamic: classifier
19
+ Dynamic: description
20
+ Dynamic: description-content-type
21
+ Dynamic: home-page
22
+ Dynamic: license-file
23
+ Dynamic: requires-dist
24
+ Dynamic: summary
21
25
 
22
- # Python Bindings for Raylib 5.0
26
+ # Python Bindings for Raylib 5.5
27
+ ## Libraries: raymath, raygui, rlgl, physac and GLFW
28
+ ## Backends: Desktop, SDL, DRM, Web
29
+ ## Platforms: Windows, Mac, Linux, Raspberry Pi, Web
23
30
 
24
- Chatroom: [Discord](https://discord.gg/fKDwt85aX6) or [Matrix](https://matrix.to/#/#raylib-python-cffi:matrix.org)
31
+ ![PyPI - Downloads](https://img.shields.io/pypi/dm/raylib)
25
32
 
26
- New CFFI API static bindings.
33
+ [![PyPI Downloads](https://static.pepy.tech/personalized-badge/raylib?period=total&units=NONE&left_color=BLACK&right_color=GREEN&left_text=downloads)](https://pepy.tech/projects/raylib)
34
+
35
+ HELP WANTED: [writing examples](https://github.com/electronstudio/raylib-python-cffi/issues/155)
36
+
37
+ Features:
38
+
39
+ * CFFI API static bindings.
27
40
  * Automatically generated to be as close as possible to
28
41
  original Raylib.
29
42
  * Faster, fewer bugs and easier to maintain than ctypes.
30
43
  * Commercial-friendly license.
31
44
  * Docstrings and auto-completion.
32
- * **Now includes extra libraries: raymath, raygui, rlgl, physac and GLFW**
33
-
34
- [Full documentation](http://electronstudio.github.io/raylib-python-cffi)
45
+ * Type checking with Mypy
35
46
 
36
47
  # Quickstart
37
48
 
38
- `pip3 install raylib`
49
+ `pip3 install raylib==5.5.0.3 --break-system-packages`
50
+ ```python
51
+ from pyray import *
52
+ init_window(800, 450, "Hello")
53
+ while not window_should_close():
54
+ begin_drawing()
55
+ clear_background(WHITE)
56
+ draw_text("Hello world", 190, 200, 20, VIOLET)
57
+ end_drawing()
58
+ close_window()
59
+ ```
60
+
61
+ # Links
62
+
63
+ * [Tutorial video](https://www.youtube.com/watch?v=UoAsDlUwjy0&lc=UgxCR-tvnQJITZr2IvN4AaABAg)
64
+ * [Full documentation](https://electronstudio.github.io/raylib-python-cffi)
65
+ * [Imgui integration](https://github.com/Scr44gr/raylib-imgui)
66
+ * [Examples](https://github.com/electronstudio/raylib-python-cffi/tree/master/examples)
67
+ * [Blep's examples](https://github.com/blep/pyray_examples)
68
+ * [Raylib Python Discord](https://discord.gg/fKDwt85aX6)
69
+ * [Raylib General Discord](https://discord.com/invite/raylib)
70
+ * [Python video player](https://github.com/anrayliu/pyvidplayer2)
71
+ * [A Vector2 class](https://github.com/electronstudio/raylib-python-cffi/blob/master/examples/extra/vector2_extended.py)
72
+ * [Raylib C FAQ](https://github.com/raysan5/raylib/wiki/Frequently-Asked-Questions/)
39
73
 
40
- from pyray import *
41
- init_window(800, 450, "Hello")
42
- while not window_should_close():
43
- begin_drawing()
44
- clear_background(WHITE)
45
- draw_text("Hello world", 190, 200, 20, VIOLET)
46
- end_drawing()
47
- close_window()
74
+ # Installation
48
75
 
76
+ If you are on a modern Linux you will probably want to create a venv:
49
77
 
50
- # Installation
78
+ python3 -m venv venv
79
+ source venv/bin/activate
51
80
 
52
- First make sure you have the latest pip installed:
81
+ Then make sure you have the latest pip installed:
53
82
 
54
83
  python3 -m pip install --upgrade pip
55
84
 
56
85
  Then install
57
86
 
58
87
  python3 -m pip install setuptools
59
- python3 -m pip install raylib
88
+ python3 -m pip install raylib==5.5.0.3
60
89
 
61
- On most platforms it should install a binary wheel (Windows 10 x64, MacOS 12 x64/arm64, Linux Ubuntu2004 x64/arm64).
62
-
63
- If yours isn't available then pip will attempt to build from source, in which case you will need to have Raylib development libs installed, e.g.
90
+ On most platforms it should install a binary wheel. If yours isn't available then pip will attempt to build from
91
+ source, in which case you will need to have Raylib development libs installed, e.g.
64
92
  using homebrew, apt, etc.
65
93
 
94
+ ## Windows
95
+
96
+ Binaries require x64 Windows 10 or newer. (For x86 or older Windows you will have to build from source.)
97
+
98
+ Use an [official Windows Python release](https://www.python.org/downloads/windows/) rather than WSL, MSYS, etc.
99
+
100
+ ## MacOS
101
+
102
+ Binaries require:
103
+ * arm64 MacOS 14
104
+ * x64 MacOS 10.13, or newer.
105
+
106
+ Older MacOS requires building from source but this is usually simple:
107
+
108
+ brew install pkg-config
109
+ brew install raylib
110
+ python3 -m pip install raylib==5.5.0.3
111
+
112
+ (I do have binaries for arm64 MacOS 11, 12 and 13 but I have no way of testing they work, so post an issue
113
+ if you want to test them.)
114
+
115
+ ## Linux
116
+
117
+ Binaries require OS newer than Ubuntu 2020, x64 or arm64. Otherwise build from source.
118
+ (Pip should attempt automatically but will need Raylib itself installed and also pkg-config.)
119
+
120
+ The arm64 binaries are built on Raspberry Pi arm64 Bullseye with OpenGL 2.0
121
+ so may not work on other boards.
122
+
66
123
  ## Raspberry Pi
67
124
 
68
125
  [Using on Rasperry Pi](RPI.rst)
69
126
 
127
+ # Backends
128
+
70
129
  ## Dynamic binding version
71
130
 
72
131
  There is now a separate dynamic version of this binding:
73
132
 
133
+ python3 -m pip uninstall raylib
74
134
  python3 -m pip install raylib_dynamic
75
135
 
76
136
  It works on some systems where the static version doesn't, [but be sure to read these caveats before using it](https://electronstudio.github.io/raylib-python-cffi/dynamic.html)
77
137
 
78
- ## Beta testing
138
+ You can't have multiple raylib packages installed at once.
139
+
140
+ ## SDL backend
141
+
142
+ This is not well tested but has better support for controllers:
143
+
144
+ python3 -m pip uninstall raylib
145
+ python3 -m pip install raylib_sdl
146
+
147
+ You can't have multiple raylib packages installed at once.
79
148
 
80
- If you find a bug, it may be fixed in the [latest dev release](https://github.com/electronstudio/raylib-python-cffi/releases).
81
- You can install an alpha or beta version by specifying the exact version number like this:
149
+ ## DRM backend
82
150
 
83
- python3 -m pip install raylib==4.2.0.0.dev4
151
+ This uses the Linux framebuffer for devices that don't run X11/Wayland:
152
+
153
+ python3 -m pip uninstall raylib
154
+ python3 -m pip install raylib_drm
155
+
156
+ You can't have multiple raylib packages installed at once.
84
157
 
85
158
  ## Problems?
86
159
 
87
160
  If it doesn't work, [try to build manually.](BUILDING.rst). If that works then [submit an issue](https://github.com/electronstudio/raylib-python-cffi/issues)
88
161
  to let us know what you did.
89
162
 
90
- If you need help you can try asking [on Discord](https://discord.gg/raylib).
163
+ If you need help you can try asking on [our discord](https://discord.gg/fKDwt85aX6). There is also a large [Raylib discord](https://discord.gg/raylib)
164
+ for issues that are not Python-specific.
91
165
 
92
166
  If it still doesn't work, [submit an issue](https://github.com/electronstudio/raylib-python-cffi/issues).
93
167
 
94
168
 
95
169
  # How to use
96
170
 
97
- There are two APIs, you can use either or both:
171
+ There are *two* modules in the raylib package, `raylib` and `pyray`. (There is no separate package for
172
+ pyray. Do *not* `pip install pyray`). You can use either or both:
98
173
 
99
174
  ### If you are familiar with C coding and the Raylib C library and you want to use an exact copy of the C API
100
175
 
101
- Use [the C API](https://electronstudio.github.io/raylib-python-cffi/raylib.html).
176
+ Use [the raylib module](https://electronstudio.github.io/raylib-python-cffi/raylib.html).
102
177
 
103
- ### If you prefer a slightly more Pythonistic API and don't mind it might be slightly slower
178
+ ### If you prefer a more Pythonistic API
104
179
 
105
- Use [the Python API](https://electronstudio.github.io/raylib-python-cffi/pyray.html).
180
+ Use [the pyray module](https://electronstudio.github.io/raylib-python-cffi/pyray.html).
106
181
 
107
182
  # Running in a web browser
108
183
 
109
- [Pygbag](https://pypi.org/project/pygbag/) >=0.8.7 supports running in a web browser.
184
+ [Pygbag](https://pypi.org/project/pygbag/) >=0.8.7 supports running in a web browser. Usually the latest git version
185
+ is recommended.
110
186
 
111
187
  Make a folder `my_project` with a file `main.py`:
112
188
 
113
- # /// script
114
- # dependencies = [
115
- # "cffi",
116
- # "raylib"
117
- # ]
118
- # ///
119
- import asyncio
120
- import platform
121
- from pyray import *
122
-
123
- async def main(): # You must have an async main function
124
- init_window(500, 500, "Hello")
125
- platform.window.window_resize() # You must add this line
126
- while not window_should_close():
127
- begin_drawing()
128
- clear_background(WHITE)
129
- draw_text("Hello world", 190, 200, 20, VIOLET)
130
- end_drawing()
131
- await asyncio.sleep(0) # You must call this in your main loop
132
- close_window()
133
-
134
- asyncio.run(main())
189
+ ```python
190
+ # /// script
191
+ # dependencies = [
192
+ # "cffi",
193
+ # "raylib"
194
+ # ]
195
+ # ///
196
+ import asyncio
197
+ import platform
198
+ from pyray import *
199
+
200
+ async def main(): # You MUST have an async main function
201
+ init_window(500, 500, "Hello")
202
+ platform.window.window_resize() # You MAY want to add this line
203
+ while not window_should_close():
204
+ begin_drawing()
205
+ clear_background(WHITE)
206
+ draw_text("Hello world", 190, 200, 20, VIOLET)
207
+ end_drawing()
208
+ await asyncio.sleep(0) # You MUST call this in your main loop
209
+ close_window()
210
+
211
+ asyncio.run(main())
212
+ ```
135
213
 
136
214
  Then to create the web files and launch a web server:
137
215
 
138
216
  python3.12 -m pip install --user --upgrade pygbag
139
- python3.12 -m pygbag --PYBUILD 3.12 --ume_block 0 --template noctx.tmpl my_project
217
+ python3.12 -m pygbag --PYBUILD 3.12 --ume_block 0 --template noctx.tmpl --git my_project
140
218
 
141
219
  Point your browser to http://localhost:8000
142
220
 
221
+ Some features may not work, so you can disable them like this:
222
+
223
+ ```python
224
+ if platform.system() != "Emscripten": # audio may not work on current version of emscripten
225
+ init_audio_device()
226
+ ```
227
+
143
228
  This is all done by Pygbag rather than by me, so you should probably contact them with any issues.
144
229
  Carefully read all their [documentation](https://pygame-web.github.io/).
145
230
 
@@ -147,10 +232,20 @@ It does work for most of [these examples](https://electronstudio.github.io/rayli
147
232
 
148
233
  # App showcase
149
234
 
235
+ [Tempest-raylib](https://github.com/Emtyloc/tempest-raylib)
236
+
237
+ [KarabinerKeyboard](https://github.com/bilbofroggins/KarabinerKeyboard)
238
+
239
+ [PyTaiko](https://github.com/Yonokid/PyTaiko)
240
+
241
+ [DOOM-Clone](https://github.com/StanislavPetrovV/DOOM-Clone)
242
+
150
243
  [Tanki](https://github.com/pkulev/tanki)
151
244
 
152
245
  [Alloy Bloxel Editor](https://pebaz.itch.io/alloy-bloxel-editor)
153
246
 
247
+ [Eidolon](https://github.com/Miou-zora/Eidolon)
248
+
154
249
  Add your app here!
155
250
 
156
251
  # RLZero
@@ -164,9 +259,9 @@ A related library (that is a work in progress!):
164
259
  * Converting more examples from C to Python
165
260
  * Testing on more platforms
166
261
 
167
- # License (updated)
262
+ # License
168
263
 
169
- The bindings are now under the Eclipse Public License, so you are free to
264
+ Eclipse Public License, so you are free to
170
265
  statically link and use in non-free / proprietary / commercial projects!
171
266
 
172
267
  # Performance
@@ -0,0 +1,23 @@
1
+ pyray/__init__.py,sha256=Kk0YDkt7zBOBNEJpI-nb0-5t4V0hv9zFukM852Il09g,7108
2
+ pyray/__init__.pyi,sha256=lqsdMMdMkM-3iQKQLqkKxVM6SpGwo1Jrvlf0uRN5Pf0,179843
3
+ pyray/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ raylib/__init__.py,sha256=-sKIJh1TALirb3dG2YoRcJgCebTR2VWpBK696CPMt2I,1218
5
+ raylib/__init__.pyi,sha256=svCHpx2ZAqPqXZatRKIlBhgVpgsBHUOozLBDtP9ZduM,156271
6
+ raylib/_raylib_cffi.cpython-313-aarch64-linux-gnu.so,sha256=j0D_YWIqcocF7L_4gF5PsnBqXDOekUovnPhJTzQDJkY,6001840
7
+ raylib/build.py,sha256=-akmjG67tqSUIrN7YX5JIOTxA4bj-Sjaot3F5AyJyPE,13795
8
+ raylib/colors.py,sha256=_u-mYrpdx7_v_4wnJrnSu_m36ixKJWbort780_V6rTw,1523
9
+ raylib/defines.py,sha256=1Tz8v_yPG4TX9ZfwacRmVR3yelK1os3YgUyEzgxOOAs,16754
10
+ raylib/enums.py,sha256=OpbBhS9Qtec8Yb-40vWGgPXZxFUV2v1rIFX0gWIw8fA,19022
11
+ raylib/glfw3.h.modified,sha256=jC6-1XuWxG2FMnRhuXTKuI7KIEhPTwwO2OtNGEDOcvs,213261
12
+ raylib/physac.h.modified,sha256=xj2jfzzpghAN5tdmN2_eZhummsxytSn5OgNyPJqlU_g,10918
13
+ raylib/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
+ raylib/raygui.h.modified,sha256=i_MgDAq0IFS5Gojd9pR-WNfvjQ6KvKY8Pq4mMN-AtB8,46125
15
+ raylib/raylib.h.modified,sha256=BrzeOaQnb4QwdeG0SXQBUw3N3mJm6O64HJMROLwymNc,104983
16
+ raylib/raymath.h.modified,sha256=4DQgPGjaFbbIceBAucTw2luV8AvSUFGQx-i-Y-jsM-U,28298
17
+ raylib/rlgl.h.modified,sha256=8qR2LYC9YlwynO2DB6dtaeTkMCSGegU9S7JbV5Xn0_8,36749
18
+ raylib/version.py,sha256=UT_RndOhlJNF6GSxtKc9s8aN8wLF-591ZWiFO5aIe28,23
19
+ raylib-5.5.0.3.dist-info/licenses/LICENSE,sha256=C-zxZWe-t3-iUrdmRjHdF3yPmhiJ5ImVtFN5xxMOUwM,14198
20
+ raylib-5.5.0.3.dist-info/METADATA,sha256=CxqOTPie80yoFhPklSpG7QZbMLgcVFIHNyKn24QXYVQ,10959
21
+ raylib-5.5.0.3.dist-info/WHEEL,sha256=o0rkY8XtQCTzSdZD3F9a6SxiBQ3mRgiZBsSJZHUCe1Y,113
22
+ raylib-5.5.0.3.dist-info/top_level.txt,sha256=PnMBDWaUP4jsbn_NewagcC9FjHYpzSAIQuhxNzt9hkg,13
23
+ raylib-5.5.0.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.5.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp313-cp313-manylinux2014_aarch64
5
5
 
@@ -1,23 +0,0 @@
1
- pyray/__init__.py,sha256=6sEm8KxRaK2B2PQo7ZlbXkHoxBDLW43wYSs_Cl7rUMg,7119
2
- pyray/__init__.pyi,sha256=TlSjWwfJdjyVBAMm3eS6ueCh-Wz0Vq6gVSFabEzFxyc,173184
3
- pyray/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- raylib/__init__.py,sha256=zTSGLz_KdS8jJZKAXOGeaaWHZZPsrmFKAwxRt4iDFvU,1193
5
- raylib/__init__.pyi,sha256=5X8aWKjsPEVzMlXaAmej-y8FQfevmwGDhci8SQVGrsM,152655
6
- raylib/_raylib_cffi.cpython-313-aarch64-linux-gnu.so,sha256=sp3f7DY1yBK5qgI83hrBNRyMhRr87Lv4VGzgaJ4I33k,5906872
7
- raylib/build.py,sha256=2ALzT9DBkpN8qReIarxFcAlVJ3fcrmxpZBX2CEm7QRQ,8679
8
- raylib/colors.py,sha256=_u-mYrpdx7_v_4wnJrnSu_m36ixKJWbort780_V6rTw,1523
9
- raylib/defines.py,sha256=L1Wr1LGz1da7wCvYCXHTpZFfVNbra8S4bcFim28LjJM,15807
10
- raylib/enums.py,sha256=RtQpN23zViI2mQSHPPc0Ay4IvNdiDk_xggdMPLCR0ng,17586
11
- raylib/glfw3.h.modified,sha256=6VQbQFZxwFW4_Vd-M_s9Grc4tHz3sjjDbCw4kZQ7etc,207625
12
- raylib/physac.h.modified,sha256=UG9-bqfL71k4MxaW3DcaP9a5Mcga66CrufVHaUhgYjM,9724
13
- raylib/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
- raylib/raygui.h.modified,sha256=5NKMOQHYZsoD51ewmIezTkNuTKdERqde486NXjbys6M,44607
15
- raylib/raylib.h.modified,sha256=T2j__nsY816A5hVeVeMZhdB9Lb3Ye5f2ui6UpzGL8_k,100092
16
- raylib/raymath.h.modified,sha256=GaiB8wHjC-Hzfx7DWrK9geLH555QFBJyAMszTWP9q0g,23185
17
- raylib/rlgl.h.modified,sha256=S-RbGmpmLHWA8jhzmeC3UT31moQThb2Fs3To8t3cnu8,34594
18
- raylib/version.py,sha256=TJFIkW6_BlGa9PGistgwofqMEQ6si0P5KY5qQyU8jyc,23
19
- raylib-5.0.0.5.dist-info/LICENSE,sha256=C-zxZWe-t3-iUrdmRjHdF3yPmhiJ5ImVtFN5xxMOUwM,14198
20
- raylib-5.0.0.5.dist-info/METADATA,sha256=rQk2FgvjX8-kQk0m_c29eCIYzevno2nvBlbBWyYY3no,8070
21
- raylib-5.0.0.5.dist-info/WHEEL,sha256=VAVtrb7ZhkpNbM-V9eyYdTST4-sBKuqCOEQqeH5GIYk,113
22
- raylib-5.0.0.5.dist-info/top_level.txt,sha256=PnMBDWaUP4jsbn_NewagcC9FjHYpzSAIQuhxNzt9hkg,13
23
- raylib-5.0.0.5.dist-info/RECORD,,