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