raylib 5.5.0.0__cp311-cp311-manylinux2014_aarch64.whl → 5.5.0.1__cp311-cp311-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.

raylib/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "5.5.0.0"
1
+ __version__ = "5.5.0.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: raylib
3
- Version: 5.5.0.0
3
+ Version: 5.5.0.1
4
4
  Summary: Python CFFI bindings for Raylib
5
5
  Home-page: https://github.com/electronstudio/raylib-python-cffi
6
6
  Author: Electron Studio
@@ -22,22 +22,30 @@ Requires-Dist: cffi>=1.17.1
22
22
  # Python Bindings for Raylib 5.5
23
23
  ## Libraries: raymath, raygui, rlgl, physac and GLFW
24
24
  ## Backends: Desktop, SDL, DRM, Web
25
+ ## Platforms: Windows, Mac, Linux, Raspberry Pi, Web
26
+
27
+ ![PyPI - Downloads](https://img.shields.io/pypi/dm/raylib)
25
28
 
26
29
  Chatroom: [Discord](https://discord.gg/fKDwt85aX6)
27
30
 
28
- New CFFI API static bindings.
31
+ HELP WANTED: [writing examples](https://github.com/electronstudio/raylib-python-cffi/issues/155)
32
+
33
+ Features:
34
+
35
+ * CFFI API static bindings.
29
36
  * Automatically generated to be as close as possible to
30
37
  original Raylib.
31
38
  * Faster, fewer bugs and easier to maintain than ctypes.
32
39
  * Commercial-friendly license.
33
40
  * Docstrings and auto-completion.
41
+ * Type checking with Mypy
34
42
 
35
43
 
36
44
  [Full documentation](http://electronstudio.github.io/raylib-python-cffi)
37
45
 
38
46
  # Quickstart
39
47
 
40
- `pip3 install raylib==5.0.0.4`
48
+ `pip3 install raylib==5.5.0.0`
41
49
  ```python
42
50
  from pyray import *
43
51
  init_window(800, 450, "Hello")
@@ -58,7 +66,7 @@ First make sure you have the latest pip installed:
58
66
  Then install
59
67
 
60
68
  python3 -m pip install setuptools
61
- python3 -m pip install raylib==5.0.0.4
69
+ python3 -m pip install raylib==5.5.0.0
62
70
 
63
71
  On most platforms it should install a binary wheel. If yours isn't available then pip will attempt to build from
64
72
  source, in which case you will need to have Raylib development libs installed, e.g.
@@ -80,7 +88,7 @@ Older MacOS requires building from source but this is usually simple:
80
88
 
81
89
  brew install pkg-config
82
90
  brew install raylib
83
- python3 -m pip install raylib==5.0.0.4
91
+ python3 -m pip install raylib==5.5.0.0
84
92
 
85
93
  (I do have binaries for arm64 MacOS 11, 12 and 13 but I have no way of testing they work, so post an issue
86
94
  if you want to test them.)
@@ -97,6 +105,8 @@ so may not work on other boards.
97
105
 
98
106
  [Using on Rasperry Pi](RPI.rst)
99
107
 
108
+ # Backends
109
+
100
110
  ## Dynamic binding version
101
111
 
102
112
  There is now a separate dynamic version of this binding:
@@ -106,6 +116,8 @@ There is now a separate dynamic version of this binding:
106
116
 
107
117
  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)
108
118
 
119
+ You can't have multiple raylib packages installed at once.
120
+
109
121
  ## SDL backend
110
122
 
111
123
  This is not well tested but has better support for controllers:
@@ -137,53 +149,63 @@ If it still doesn't work, [submit an issue](https://github.com/electronstudio/ra
137
149
 
138
150
  # How to use
139
151
 
140
- There are two modules in the raylib package, `raylib` and `pyray`. (There is no separate package for
141
- pyray). You can use either or both:
152
+ There are *two* modules in the raylib package, `raylib` and `pyray`. (There is no separate package for
153
+ pyray. Do *not* `pip install pyray`). You can use either or both:
142
154
 
143
155
  ### If you are familiar with C coding and the Raylib C library and you want to use an exact copy of the C API
144
156
 
145
157
  Use [the raylib module](https://electronstudio.github.io/raylib-python-cffi/raylib.html).
146
158
 
147
- ### If you prefer a more Pythonistic API
159
+ ### If you prefer a more Pythonistic API
148
160
 
149
161
  Use [the pyray module](https://electronstudio.github.io/raylib-python-cffi/pyray.html).
150
162
 
151
163
  # Running in a web browser
152
164
 
153
- [Pygbag](https://pypi.org/project/pygbag/) >=0.8.7 supports running in a web browser.
165
+ [Pygbag](https://pypi.org/project/pygbag/) >=0.8.7 supports running in a web browser. Usually the latest git version
166
+ is recommended.
154
167
 
155
168
  Make a folder `my_project` with a file `main.py`:
156
169
 
157
- # /// script
158
- # dependencies = [
159
- # "cffi",
160
- # "raylib"
161
- # ]
162
- # ///
163
- import asyncio
164
- import platform
165
- from pyray import *
166
-
167
- async def main(): # You must have an async main function
168
- init_window(500, 500, "Hello")
169
- platform.window.window_resize() # You must add this line
170
- while not window_should_close():
171
- begin_drawing()
172
- clear_background(WHITE)
173
- draw_text("Hello world", 190, 200, 20, VIOLET)
174
- end_drawing()
175
- await asyncio.sleep(0) # You must call this in your main loop
176
- close_window()
177
-
178
- asyncio.run(main())
170
+ ```python
171
+ # /// script
172
+ # dependencies = [
173
+ # "cffi",
174
+ # "raylib"
175
+ # ]
176
+ # ///
177
+ import asyncio
178
+ import platform
179
+ from pyray import *
180
+
181
+ async def main(): # You MUST have an async main function
182
+ init_window(500, 500, "Hello")
183
+ platform.window.window_resize() # You MAY want to add this line
184
+ while not window_should_close():
185
+ begin_drawing()
186
+ clear_background(WHITE)
187
+ draw_text("Hello world", 190, 200, 20, VIOLET)
188
+ end_drawing()
189
+ await asyncio.sleep(0) # You MUST call this in your main loop
190
+ close_window()
191
+
192
+ asyncio.run(main())
193
+ ```
179
194
 
180
195
  Then to create the web files and launch a web server:
181
196
 
182
197
  python3.12 -m pip install --user --upgrade pygbag
183
- python3.12 -m pygbag --PYBUILD 3.12 --ume_block 0 --template noctx.tmpl my_project
198
+ python3.12 -m pygbag --PYBUILD 3.12 --ume_block 0 --template noctx.tmpl --git my_project
184
199
 
185
200
  Point your browser to http://localhost:8000
186
201
 
202
+ Some features may not work, so you can disable them like this:
203
+
204
+ ```python
205
+ if platform.system() != "Emscripten": # audio does not work on current version of emscripten
206
+ init_audio_device()
207
+ ```
208
+
187
209
  This is all done by Pygbag rather than by me, so you should probably contact them with any issues.
188
210
  Carefully read all their [documentation](https://pygame-web.github.io/).
189
211
 
@@ -191,10 +213,20 @@ It does work for most of [these examples](https://electronstudio.github.io/rayli
191
213
 
192
214
  # App showcase
193
215
 
216
+ [Tempest-raylib](https://github.com/Emtyloc/tempest-raylib)
217
+
218
+ [KarabinerKeyboard](https://github.com/bilbofroggins/KarabinerKeyboard)
219
+
220
+ [PyTaiko](https://github.com/Yonokid/PyTaiko)
221
+
222
+ [DOOM-Clone](https://github.com/StanislavPetrovV/DOOM-Clone)
223
+
194
224
  [Tanki](https://github.com/pkulev/tanki)
195
225
 
196
226
  [Alloy Bloxel Editor](https://pebaz.itch.io/alloy-bloxel-editor)
197
227
 
228
+ [Eidolon](https://github.com/Miou-zora/Eidolon)
229
+
198
230
  Add your app here!
199
231
 
200
232
  # RLZero
@@ -15,9 +15,9 @@ raylib/raygui.h.modified,sha256=75djppnwPjTjTfNVcUaXKxGau2PqUisL9oy_yVXQgV8,4610
15
15
  raylib/raylib.h.modified,sha256=BrzeOaQnb4QwdeG0SXQBUw3N3mJm6O64HJMROLwymNc,104983
16
16
  raylib/raymath.h.modified,sha256=4DQgPGjaFbbIceBAucTw2luV8AvSUFGQx-i-Y-jsM-U,28298
17
17
  raylib/rlgl.h.modified,sha256=8qR2LYC9YlwynO2DB6dtaeTkMCSGegU9S7JbV5Xn0_8,36749
18
- raylib/version.py,sha256=0rP_6SSorA2Eu1O12J6TkThMagGHTmaCeKa8Q7iPwYA,23
19
- raylib-5.5.0.0.dist-info/LICENSE,sha256=C-zxZWe-t3-iUrdmRjHdF3yPmhiJ5ImVtFN5xxMOUwM,14198
20
- raylib-5.5.0.0.dist-info/METADATA,sha256=t_qXI1YMVYKkr1CnytK5Q9DCQF6aFjNEBmH37_srlsI,9184
21
- raylib-5.5.0.0.dist-info/WHEEL,sha256=qwe5jwM0LQthEtwjA_bHGwiIFAFr_e11p2WbmRPVYUA,114
22
- raylib-5.5.0.0.dist-info/top_level.txt,sha256=PnMBDWaUP4jsbn_NewagcC9FjHYpzSAIQuhxNzt9hkg,13
23
- raylib-5.5.0.0.dist-info/RECORD,,
18
+ raylib/version.py,sha256=dp5qC-eFGbtuPAAJg9iAyjsDscIEL1OrZJMGbAypfHc,23
19
+ raylib-5.5.0.1.dist-info/LICENSE,sha256=C-zxZWe-t3-iUrdmRjHdF3yPmhiJ5ImVtFN5xxMOUwM,14198
20
+ raylib-5.5.0.1.dist-info/METADATA,sha256=VrTjSmsToYHdLJZNW657_0ZgcUaDTzjvG0n3mlNdHOE,10018
21
+ raylib-5.5.0.1.dist-info/WHEEL,sha256=qwe5jwM0LQthEtwjA_bHGwiIFAFr_e11p2WbmRPVYUA,114
22
+ raylib-5.5.0.1.dist-info/top_level.txt,sha256=PnMBDWaUP4jsbn_NewagcC9FjHYpzSAIQuhxNzt9hkg,13
23
+ raylib-5.5.0.1.dist-info/RECORD,,