raylib 5.5.0.0.dev2__cp311-cp311-manylinux2014_x86_64.whl → 5.5.0.1__cp311-cp311-manylinux2014_x86_64.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.
- pyray/__init__.py +3 -4
- pyray/__init__.pyi +3941 -3793
- pyray/py.typed +0 -0
- raylib/__init__.py +8 -2
- raylib/__init__.pyi +1132 -844
- raylib/_raylib_cffi.cpython-311-x86_64-linux-gnu.so +0 -0
- raylib/build.py +4 -2
- raylib/defines.py +1 -7
- raylib/enums.py +0 -1
- raylib/py.typed +0 -0
- raylib/raylib.h.modified +55 -46
- raylib/raymath.h.modified +4 -2
- raylib/rlgl.h.modified +7 -7
- raylib/version.py +1 -1
- {raylib-5.5.0.0.dev2.dist-info → raylib-5.5.0.1.dist-info}/METADATA +79 -40
- raylib-5.5.0.1.dist-info/RECORD +23 -0
- {raylib-5.5.0.0.dev2.dist-info → raylib-5.5.0.1.dist-info}/WHEEL +1 -1
- raylib-5.5.0.0.dev2.dist-info/RECORD +0 -21
- {raylib-5.5.0.0.dev2.dist-info → raylib-5.5.0.1.dist-info}/LICENSE +0 -0
- {raylib-5.5.0.0.dev2.dist-info → raylib-5.5.0.1.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: raylib
|
|
3
|
-
Version: 5.5.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
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+

|
|
27
28
|
|
|
28
|
-
|
|
29
|
+
Chatroom: [Discord](https://discord.gg/fKDwt85aX6)
|
|
30
|
+
|
|
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
|
|
48
|
+
`pip3 install raylib==5.5.0.0`
|
|
41
49
|
```python
|
|
42
50
|
from pyray import *
|
|
43
51
|
init_window(800, 450, "Hello")
|
|
@@ -58,9 +66,10 @@ 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
|
|
69
|
+
python3 -m pip install raylib==5.5.0.0
|
|
62
70
|
|
|
63
|
-
On most platforms it should install a binary wheel. If yours isn't available then pip will attempt to build from
|
|
71
|
+
On most platforms it should install a binary wheel. If yours isn't available then pip will attempt to build from
|
|
72
|
+
source, in which case you will need to have Raylib development libs installed, e.g.
|
|
64
73
|
using homebrew, apt, etc.
|
|
65
74
|
|
|
66
75
|
## Windows
|
|
@@ -73,34 +82,42 @@ Use an [official Windows Python release](https://www.python.org/downloads/window
|
|
|
73
82
|
|
|
74
83
|
Binaries require:
|
|
75
84
|
* arm64 MacOS 14
|
|
76
|
-
* x64 MacOS
|
|
85
|
+
* x64 MacOS 10.13, or newer.
|
|
77
86
|
|
|
78
87
|
Older MacOS requires building from source but this is usually simple:
|
|
79
88
|
|
|
80
89
|
brew install pkg-config
|
|
81
90
|
brew install raylib
|
|
82
|
-
python3 -m pip install raylib==5.0.0
|
|
91
|
+
python3 -m pip install raylib==5.5.0.0
|
|
92
|
+
|
|
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
|
|
94
|
+
if you want to test them.)
|
|
83
95
|
|
|
84
96
|
## Linux
|
|
85
97
|
|
|
86
98
|
Binaries require OS newer than Ubuntu 2020, x64 or arm64. Otherwise build from source.
|
|
87
99
|
(Pip should attempt automatically but will need Raylib itself installed and also pkg-config.)
|
|
88
100
|
|
|
89
|
-
The arm64
|
|
101
|
+
The arm64 binaries are built on Raspberry Pi arm64 Bullseye with OpenGL 2.0
|
|
90
102
|
so may not work on other boards.
|
|
91
103
|
|
|
92
104
|
## Raspberry Pi
|
|
93
105
|
|
|
94
106
|
[Using on Rasperry Pi](RPI.rst)
|
|
95
107
|
|
|
108
|
+
# Backends
|
|
109
|
+
|
|
96
110
|
## Dynamic binding version
|
|
97
111
|
|
|
98
112
|
There is now a separate dynamic version of this binding:
|
|
99
113
|
|
|
114
|
+
python3 -m pip uninstall raylib
|
|
100
115
|
python3 -m pip install raylib_dynamic
|
|
101
116
|
|
|
102
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)
|
|
103
118
|
|
|
119
|
+
You can't have multiple raylib packages installed at once.
|
|
120
|
+
|
|
104
121
|
## SDL backend
|
|
105
122
|
|
|
106
123
|
This is not well tested but has better support for controllers:
|
|
@@ -108,7 +125,7 @@ This is not well tested but has better support for controllers:
|
|
|
108
125
|
python3 -m pip uninstall raylib
|
|
109
126
|
python3 -m pip install raylib_sdl
|
|
110
127
|
|
|
111
|
-
You can't have multiple
|
|
128
|
+
You can't have multiple raylib packages installed at once.
|
|
112
129
|
|
|
113
130
|
## DRM backend
|
|
114
131
|
|
|
@@ -117,66 +134,78 @@ This uses the Linux framebuffer for devices that don't run X11/Wayland:
|
|
|
117
134
|
python3 -m pip uninstall raylib
|
|
118
135
|
python3 -m pip install raylib_drm
|
|
119
136
|
|
|
120
|
-
You can't have multiple
|
|
137
|
+
You can't have multiple raylib packages installed at once.
|
|
121
138
|
|
|
122
139
|
## Problems?
|
|
123
140
|
|
|
124
141
|
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)
|
|
125
142
|
to let us know what you did.
|
|
126
143
|
|
|
127
|
-
If you need help you can try asking
|
|
144
|
+
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)
|
|
145
|
+
for issues that are not Python-specific.
|
|
128
146
|
|
|
129
147
|
If it still doesn't work, [submit an issue](https://github.com/electronstudio/raylib-python-cffi/issues).
|
|
130
148
|
|
|
131
149
|
|
|
132
150
|
# How to use
|
|
133
151
|
|
|
134
|
-
There are two
|
|
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:
|
|
135
154
|
|
|
136
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
|
|
137
156
|
|
|
138
|
-
Use [the
|
|
157
|
+
Use [the raylib module](https://electronstudio.github.io/raylib-python-cffi/raylib.html).
|
|
139
158
|
|
|
140
|
-
### If you prefer a
|
|
159
|
+
### If you prefer a more Pythonistic API
|
|
141
160
|
|
|
142
|
-
Use [the
|
|
161
|
+
Use [the pyray module](https://electronstudio.github.io/raylib-python-cffi/pyray.html).
|
|
143
162
|
|
|
144
163
|
# Running in a web browser
|
|
145
164
|
|
|
146
|
-
[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.
|
|
147
167
|
|
|
148
168
|
Make a folder `my_project` with a file `main.py`:
|
|
149
169
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
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
|
+
```
|
|
172
194
|
|
|
173
195
|
Then to create the web files and launch a web server:
|
|
174
196
|
|
|
175
197
|
python3.12 -m pip install --user --upgrade pygbag
|
|
176
|
-
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
|
|
177
199
|
|
|
178
200
|
Point your browser to http://localhost:8000
|
|
179
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
|
+
|
|
180
209
|
This is all done by Pygbag rather than by me, so you should probably contact them with any issues.
|
|
181
210
|
Carefully read all their [documentation](https://pygame-web.github.io/).
|
|
182
211
|
|
|
@@ -184,10 +213,20 @@ It does work for most of [these examples](https://electronstudio.github.io/rayli
|
|
|
184
213
|
|
|
185
214
|
# App showcase
|
|
186
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
|
+
|
|
187
224
|
[Tanki](https://github.com/pkulev/tanki)
|
|
188
225
|
|
|
189
226
|
[Alloy Bloxel Editor](https://pebaz.itch.io/alloy-bloxel-editor)
|
|
190
227
|
|
|
228
|
+
[Eidolon](https://github.com/Miou-zora/Eidolon)
|
|
229
|
+
|
|
191
230
|
Add your app here!
|
|
192
231
|
|
|
193
232
|
# RLZero
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
pyray/__init__.py,sha256=vIG3y6niJNvKobp0h6z24OmlxRbKnSwNho_3pjG7KdU,7115
|
|
2
|
+
pyray/__init__.pyi,sha256=T47R66T43lCZeJXJKi-pfXnSt3SxyDDDCQdEVZCv3TQ,183078
|
|
3
|
+
pyray/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
raylib/__init__.py,sha256=zTSGLz_KdS8jJZKAXOGeaaWHZZPsrmFKAwxRt4iDFvU,1193
|
|
5
|
+
raylib/__init__.pyi,sha256=lQk7oP0o-bWBnFpFlUn4cCFYBLec8bUCuF8gQNsTmIM,162287
|
|
6
|
+
raylib/_raylib_cffi.cpython-311-x86_64-linux-gnu.so,sha256=Fv7wnHSZMCsSxlYGCcsSr4IOe0G1CvIetlOQ0d0d7pM,6290024
|
|
7
|
+
raylib/build.py,sha256=Ihu2a28O9gs0XlGtjfBZ2geD32vUkVlatUAUMP8AdY4,10018
|
|
8
|
+
raylib/colors.py,sha256=_u-mYrpdx7_v_4wnJrnSu_m36ixKJWbort780_V6rTw,1523
|
|
9
|
+
raylib/defines.py,sha256=CvpTK0ogvLKPHTWSulj-vBuTrV57HVAb0mNHvfNvgPc,16835
|
|
10
|
+
raylib/enums.py,sha256=A-9DdfE-AsGXjPWM-VNhMHxgas2lzHH8gTrhK4VufrI,17786
|
|
11
|
+
raylib/glfw3.h.modified,sha256=jC6-1XuWxG2FMnRhuXTKuI7KIEhPTwwO2OtNGEDOcvs,213261
|
|
12
|
+
raylib/physac.h.modified,sha256=UG9-bqfL71k4MxaW3DcaP9a5Mcga66CrufVHaUhgYjM,9724
|
|
13
|
+
raylib/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
|
+
raylib/raygui.h.modified,sha256=75djppnwPjTjTfNVcUaXKxGau2PqUisL9oy_yVXQgV8,46107
|
|
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=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=yKRJBb4SnUATm00LuTreZbKsUIuPcIxOaOgc9ztVahU,113
|
|
22
|
+
raylib-5.5.0.1.dist-info/top_level.txt,sha256=PnMBDWaUP4jsbn_NewagcC9FjHYpzSAIQuhxNzt9hkg,13
|
|
23
|
+
raylib-5.5.0.1.dist-info/RECORD,,
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
pyray/__init__.py,sha256=6sEm8KxRaK2B2PQo7ZlbXkHoxBDLW43wYSs_Cl7rUMg,7119
|
|
2
|
-
pyray/__init__.pyi,sha256=YTMTiZuK5ZUv6fFxv2uaafNo1jxG5uVDw6Lii7Gnths,157652
|
|
3
|
-
raylib/__init__.py,sha256=DWXPmoq7tC5wzZsrt6rReGy1RflyZwk-SdF-9lBZHok,919
|
|
4
|
-
raylib/__init__.pyi,sha256=7nDwS_FZmBK6C1Iw3O1A1fK-5NkmpJGz94oW7nClvHY,145607
|
|
5
|
-
raylib/_raylib_cffi.cpython-311-x86_64-linux-gnu.so,sha256=3J81zYDIMECstsi8afWfbcmslY17h7d_ZjXPv-EYWDs,6368752
|
|
6
|
-
raylib/build.py,sha256=vF0eAp5y3CZv6dLM-4EQnXWmkXwohQ9Z17vTy9AD2cY,9964
|
|
7
|
-
raylib/colors.py,sha256=_u-mYrpdx7_v_4wnJrnSu_m36ixKJWbort780_V6rTw,1523
|
|
8
|
-
raylib/defines.py,sha256=_brO9OSA1Kzg9aiGXhiYyMmiJxbOkvHU_kLjLLNLJB4,16983
|
|
9
|
-
raylib/enums.py,sha256=pT4AwJYqrjVKVyWtYdgDStGY35X1q-pT7kEP3jPxTkk,17818
|
|
10
|
-
raylib/glfw3.h.modified,sha256=jC6-1XuWxG2FMnRhuXTKuI7KIEhPTwwO2OtNGEDOcvs,213261
|
|
11
|
-
raylib/physac.h.modified,sha256=UG9-bqfL71k4MxaW3DcaP9a5Mcga66CrufVHaUhgYjM,9724
|
|
12
|
-
raylib/raygui.h.modified,sha256=75djppnwPjTjTfNVcUaXKxGau2PqUisL9oy_yVXQgV8,46107
|
|
13
|
-
raylib/raylib.h.modified,sha256=P2ByCGhTYNUnmFI0bMlqAmJlvcGjONUlszzhevA5Vk0,104250
|
|
14
|
-
raylib/raymath.h.modified,sha256=jV6K62Nck8nTv89pqJoBVMouhwuj4yJAodjP7fQk128,28166
|
|
15
|
-
raylib/rlgl.h.modified,sha256=CWlw2nho5Yzn-CizWGqhEVNfp4_lFB30HjSlV6he1EM,36729
|
|
16
|
-
raylib/version.py,sha256=3Y4xVZcMQHuz26MK_RDAx7uUp1iG3oIm-DR1QBvW8Hk,28
|
|
17
|
-
raylib-5.5.0.0.dev2.dist-info/LICENSE,sha256=C-zxZWe-t3-iUrdmRjHdF3yPmhiJ5ImVtFN5xxMOUwM,14198
|
|
18
|
-
raylib-5.5.0.0.dev2.dist-info/METADATA,sha256=NdwaFCqKRFPMdCraQ1imMaM7rMRRa9FLOHwNzRQUGUw,8882
|
|
19
|
-
raylib-5.5.0.0.dev2.dist-info/WHEEL,sha256=psqLctY23KHVzJBRA0eV4Xgo09aO-tWXBAEHEiSxnw8,113
|
|
20
|
-
raylib-5.5.0.0.dev2.dist-info/top_level.txt,sha256=PnMBDWaUP4jsbn_NewagcC9FjHYpzSAIQuhxNzt9hkg,13
|
|
21
|
-
raylib-5.5.0.0.dev2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|