Use compute shader instead of numpy vectorization to significantly improve speed and remove numpy dependency

This commit is contained in:
csd4ni3l
2025-07-04 19:01:05 +02:00
parent 1726faf94b
commit 6370505320
6 changed files with 200 additions and 184 deletions

View File

@@ -1,7 +1,7 @@
This is a Conway's Game Of life clone created using Python, Arcade & Numpy.
This is a Conway's Game Of life clone created using Python, Arcade, Pyglet and compute shaders.
Features:
- Really fast because of Numpy, using vectorized operations
- Really fast because computation happens on the GPU and data grid stays within GPU
- .rle, Life 1.05, Life 1.06 loading support
- .rle export support
- Discord RPC

View File

@@ -1,27 +1,90 @@
from utils.constants import ROWS, COLS
import numpy as np
def create_numpy_grid():
return np.zeros((ROWS, COLS), dtype=np.uint8)
from pyglet.gl import glBindBufferBase, GL_SHADER_STORAGE_BUFFER, GL_NEAREST
import pyglet
def count_neighbors(grid):
padded = np.pad(grid, pad_width=1, mode='constant', constant_values=0)
neighbors = (
padded[0:-2, 0:-2] + # top-left
padded[0:-2, 1:-1] + # top
padded[0:-2, 2:] + # top-right
padded[1:-1, 0:-2] + # left
padded[1:-1, 2:] + # right
padded[2:, 0:-2] + # bottom-left
padded[2:, 1:-1] + # bottom
padded[2:, 2:] # bottom-right
)
return neighbors
shader_source = f"""#version 430 core
def update_generation(cell_grid: np.array):
neighbors = count_neighbors(cell_grid)
new_grid = ((cell_grid == 1) & ((neighbors == 2) | (neighbors == 3))) | \
((cell_grid == 0) & (neighbors == 3))
return new_grid.astype(np.uint8)
layout(std430, binding = 3) buffer CellGridIn {{
int cell_grid_in[{ROWS * COLS}];
}};
layout(std430, binding = 4) buffer CellGridOut {{
int cell_grid_out[{ROWS * COLS}];
}};
uniform int mouse_row;
uniform int mouse_col;
uniform int mouse_interaction;
uniform int rows;
uniform int cols;
uniform bool running;
layout (local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
layout(location = 0, rgba32f) uniform image2D img_output;
void main() {{
ivec2 texel_coord = ivec2(gl_GlobalInvocationID.xy);
int row = texel_coord.y * rows / imageSize(img_output).y;
int col = texel_coord.x * cols / imageSize(img_output).x;
int current_index = (row * cols) + col;
int next = 0;
int alive_neighbors = 0;
int mouse_interaction_index = (mouse_row * cols) + mouse_col;
if (mouse_interaction != -1 && current_index == mouse_interaction_index) {{
next = mouse_interaction;
}}
else if (!running) {{
next = cell_grid_in[current_index];
}}
else {{
for (int dy = -1; dy <= 1; dy++) {{
for (int dx = -1; dx <= 1; dx++) {{
if (dx == 0 && dy == 0) continue;
int nx = texel_coord.x + dx;
int ny = texel_coord.y + dy;
if (nx >= 0 && nx < cols && ny >= 0 && ny < rows) {{
int neighbor_index = ny * cols + nx;
alive_neighbors += cell_grid_in[neighbor_index];
}}
}}
}}
if (cell_grid_in[current_index] == 0 && alive_neighbors == 3) {{
next = 1;
}}
else if (cell_grid_in[current_index] == 1 && (alive_neighbors == 3 || alive_neighbors == 2)) {{
next = 1;
}}
}}
vec4 value;
if (next == 1) {{
value = vec4(1.0, 1.0, 1.0, 1.0);
}}
else {{
value = vec4(0.19, 0.31, 0.31, 1.0);
}}
cell_grid_out[current_index] = next;
imageStore(img_output, texel_coord, value);
}}
"""
def create_shader(grid):
shader_program = pyglet.graphics.shader.ComputeShaderProgram(shader_source)
game_of_life_image = pyglet.image.Texture.create(COLS, ROWS, internalformat=pyglet.gl.GL_RGBA32F, min_filter=GL_NEAREST, mag_filter=GL_NEAREST)
uniform_location = shader_program['img_output']
game_of_life_image.bind_image_texture(unit=uniform_location)
ssbo_in = pyglet.graphics.BufferObject(len(grid) * 4, usage=pyglet.gl.GL_DYNAMIC_COPY)
ssbo_out = pyglet.graphics.BufferObject(len(grid) * 4, usage=pyglet.gl.GL_DYNAMIC_COPY)
glBindBufferBase(GL_SHADER_STORAGE_BUFFER, 3, ssbo_in.id)
glBindBufferBase(GL_SHADER_STORAGE_BUFFER, 4, ssbo_out.id)
return shader_program, game_of_life_image, ssbo_in, ssbo_out

View File

@@ -1,39 +1,43 @@
import arcade, arcade.gui, random, time, json, os, numpy as np
import arcade, arcade.gui, pyglet, time, json, os
from utils.constants import COLS, ROWS, CELL_SIZE, SPACING, button_style
from pyglet.gl import glBindBufferBase, GL_SHADER_STORAGE_BUFFER
from array import array
from utils.constants import COLS, ROWS, button_style
from utils.preload import create_sound, destroy_sound, button_texture, button_hovered_texture, cursor_texture
from game.game_of_life import create_numpy_grid, update_generation
from game.game_of_life import create_shader
from game.file_support import load_file
class Game(arcade.gui.UIView):
def __init__(self, pypresence_client=None, generation=None, running=False, cell_grid=None, gps=10, load_from=None):
def __init__(self, pypresence_client=None, generation=None, running=False, cell_grid=None, gps=60, load_from=None):
super().__init__()
self.generation = generation or 0
self.population = 0
self.running = running or False
self.cell_grid = cell_grid
self.sprite_grid = {}
self.load_from = load_from
self.pypresence_generation_count = 0
self.gps = gps
self.generation_time = 1 / self.gps
self.generation_delta_time = 1 / self.gps
self.last_generation_update = time.perf_counter()
self.last_info_update = time.perf_counter()
self.last_create_sound = time.perf_counter()
self.has_controller = False
self.controller_a_press = False
self.controller_b_press = False
self.pypresence_client = pypresence_client
self.spritelist = arcade.SpriteList()
self.last_create_sound = time.perf_counter()
self.mouse_row = 0
self.mouse_col = 0
self.mouse_interaction = -1
self.start_x = self.window.width / 2 - ((COLS * (CELL_SIZE + SPACING)) / 2)
self.start_y = self.window.height / 2 - ((ROWS * (CELL_SIZE + SPACING)) / 2)
self.pypresence_client = pypresence_client
with open("settings.json", "r") as file:
self.settings_dict = json.load(file)
@@ -43,7 +47,7 @@ class Game(arcade.gui.UIView):
def on_show_view(self):
super().on_show_view()
self.setup_grid(load_existing=self.cell_grid is not None)
self.setup_game(load_existing=self.cell_grid is not None)
self.anchor = self.add_widget(arcade.gui.UIAnchorLayout(size_hint=(1, 1)))
self.info_box = self.anchor.add(arcade.gui.UIBoxLayout(space_between=5, vertical=False), anchor_x="center", anchor_y="top")
@@ -73,11 +77,20 @@ class Game(arcade.gui.UIView):
self.anchor.add(self.save_button, anchor_x="right", anchor_y="bottom", align_x=-5, align_y=5)
if self.window.get_controllers():
self.spritelist = arcade.SpriteList()
self.cursor_sprite = arcade.Sprite(cursor_texture)
self.spritelist.append(self.cursor_sprite)
self.has_controller = True
self.controller = self.window.get_controllers()[0]
def main_exit(self):
arcade.unschedule(self.update_generation)
self.shader_program.delete()
self.ssbo_in.delete()
self.ssbo_out.delete()
from menus.main import Main
self.window.show_view(Main(self.pypresence_client))
@@ -97,62 +110,72 @@ class Game(arcade.gui.UIView):
self.cursor_sprite.center_y += value.y
def on_button_press(self, controller, name):
if name == "a":
self.controller_a_press = True
elif name == "b":
self.controller_b_press = True
elif name == "start":
if name == "start":
self.main_exit()
def on_button_release(self, controller, name):
if name == "a":
self.controller_a_press = False
elif name == "b":
self.controller_b_press = False
if name == "a" or name == "b":
self.mouse_interaction = -1
def setup_grid(self, load_existing=False, randomized=False):
self.spritelist.clear()
def setup_game(self, load_existing=False, randomized=False):
self.grid = array('i', [0] * ROWS * COLS)
if self.load_from:
loaded_data = load_file(COLS / 2, ROWS / 2, self.load_from)
loaded_positions = load_file(COLS / 2, ROWS / 2, self.load_from)
for row, col in loaded_positions:
index = (row * COLS) + col
self.grid[index] = 1
self.cell_grid = create_numpy_grid()
self.shader_program, self.game_of_life_image, self.ssbo_in, self.ssbo_out = create_shader(self.grid)
for row in range(ROWS):
self.sprite_grid[row] = {}
for col in range(COLS):
if self.load_from:
if (row, col) in loaded_data:
self.cell_grid[row, col] = 1
elif not load_existing:
if randomized and random.randint(0, 1):
self.cell_grid[row, col] = 1
self.ssbo_in.set_data(self.grid.tobytes())
cell = arcade.SpriteSolidColor(CELL_SIZE, CELL_SIZE, center_x=self.start_x + col * (CELL_SIZE + SPACING), center_y=self.start_y + row * (CELL_SIZE + SPACING), color=arcade.color.WHITE)
if not bool(self.cell_grid[row, col]):
cell.visible = False
self.image_sprite = pyglet.sprite.Sprite(img=self.game_of_life_image)
scale_x = (self.window.width * 0.75) / self.image_sprite.width
scale_y = (self.window.height * 0.75) / self.image_sprite.height
rendered_width = self.image_sprite.width * scale_x
rendered_height = self.image_sprite.height * scale_y
self.sprite_grid[row][col] = cell
self.spritelist.append(cell)
self.image_sprite.scale_x = scale_x
self.image_sprite.scale_y = scale_y
self.image_sprite.x = (self.window.width / 2) - (rendered_width / 2)
self.image_sprite.y = (self.window.height / 2) - (rendered_height / 2)
self.grid_outline = pyglet.shapes.BorderedRectangle(
x=self.image_sprite.x - 3,
y=self.image_sprite.y - 3,
width=rendered_width + 5,
height=rendered_height + 5,
color=(47, 79, 79, 255),
border_color=(255, 255, 255, 255),
border=5
)
def update_generation(self, delta_time):
self.generation_delta_time = delta_time
if self.running:
self.generation_delta_time = delta_time
self.generation += 1
self.pypresence_generation_count += 1
self.pypresence_generation_count += 1
if self.pypresence_generation_count == self.gps * 3:
self.pypresence_generation_count = 0
self.pypresence_client.update(state='In Game', details=f'Generation: {self.generation} Population: {self.population}', start=self.pypresence_client.start_time)
if self.pypresence_generation_count == self.gps * 3:
self.pypresence_generation_count = 0
self.pypresence_client.update(state='In Game', details=f'Generation: {self.generation} Population: {self.population}', start=self.pypresence_client.start_time)
old_grid = self.cell_grid
self.cell_grid = update_generation(self.cell_grid)
with self.shader_program:
self.shader_program['mouse_row'] = self.mouse_row
self.shader_program['mouse_col'] = self.mouse_col
self.shader_program['mouse_interaction'] = self.mouse_interaction
self.shader_program['rows'] = ROWS
self.shader_program['cols'] = COLS
self.shader_program['running'] = self.running
self.shader_program.dispatch(self.game_of_life_image.width, self.game_of_life_image.height, 1, barrier=pyglet.gl.GL_ALL_BARRIER_BITS)
for row, col in np.argwhere(old_grid != self.cell_grid):
self.sprite_grid[row][col].visible = bool(self.cell_grid[row, col])
self.ssbo_in, self.ssbo_out = self.ssbo_out, self.ssbo_in
glBindBufferBase(GL_SHADER_STORAGE_BUFFER, 3, self.ssbo_in.id)
glBindBufferBase(GL_SHADER_STORAGE_BUFFER, 4, self.ssbo_out.id)
def on_key_press(self, symbol: int, modifiers: int) -> bool | None:
super().on_key_press(symbol, modifiers)
@@ -166,12 +189,10 @@ class Game(arcade.gui.UIView):
self.population_label.text = f"Population: {self.population}"
self.generation_label.text = f"Generation: {self.generation}"
self.cell_grid = 0
self.spritelist.clear()
self.sprite_grid.clear()
self.grid = array('i', [0] * ROWS * COLS)
arcade.unschedule(self.update_generation)
self.setup_grid()
self.setup_game()
arcade.schedule(self.update_generation, 1 / self.gps)
elif symbol == arcade.key.R:
self.population = 0
@@ -180,12 +201,10 @@ class Game(arcade.gui.UIView):
self.population_label.text = f"Population: {self.population}"
self.generation_label.text = f"Generation: {self.generation}"
self.cell_grid = 0
self.spritelist.clear()
self.sprite_grid.clear()
self.grid = array('i', [0] * ROWS * COLS)
arcade.unschedule(self.update_generation)
self.setup_grid(randomized=True)
self.setup_game(randomized=True)
arcade.schedule(self.update_generation, 1 / self.gps)
def on_update(self, delta_time):
@@ -210,41 +229,36 @@ class Game(arcade.gui.UIView):
arcade.unschedule(self.update_generation)
arcade.schedule(self.update_generation, self.generation_time)
if self.window.mouse[arcade.MOUSE_BUTTON_LEFT] or self.controller_a_press: # type: ignore
x = self.window.mouse.data["x"] if not self.controller_a_press else self.cursor_sprite.left
y = self.window.mouse.data["y"] if not self.controller_a_press else self.cursor_sprite.top
grid_col = int((x - self.start_x + (CELL_SIZE / 2)) // (CELL_SIZE + SPACING)) # type: ignore
grid_row = int((y - self.start_y + (CELL_SIZE / 2)) // (CELL_SIZE + SPACING)) # type: ignore
if self.window.mouse[arcade.MOUSE_BUTTON_LEFT] or (self.has_controller and self.controller.a):
self.mouse_interaction = 1
self.population += 1
if grid_col < 0 or grid_row < 0 or grid_row >= ROWS or grid_col >= COLS:
return
if not self.cell_grid[grid_row, grid_col]:
self.population += 1
if time.perf_counter() - self.last_create_sound >= 0.05:
self.last_create_sound = time.perf_counter()
if self.settings_dict.get("sfx", True):
create_sound.play(volume=self.settings_dict.get("sfx_volume", 50) / 100)
self.sprite_grid[grid_row][grid_col].visible = True
self.cell_grid[grid_row, grid_col] = 1
elif self.window.mouse[arcade.MOUSE_BUTTON_RIGHT] or self.controller_b_press: # type: ignore
x = self.window.mouse.data["x"] if not self.controller_b_press else self.cursor_sprite.left
y = self.window.mouse.data["y"] if not self.controller_b_press else self.cursor_sprite.top
grid_col = int((x - self.start_x + (CELL_SIZE / 2)) // (CELL_SIZE + SPACING)) # type: ignore
grid_row = int((y - self.start_y + (CELL_SIZE / 2)) // (CELL_SIZE + SPACING)) # type: ignore
if grid_col < 0 or grid_row < 0 or grid_row >= ROWS or grid_col >= COLS:
return
if self.cell_grid[grid_row, grid_col]:
self.population -= 1
if time.perf_counter() - self.last_create_sound >= 0.05:
self.last_create_sound = time.perf_counter()
if self.settings_dict.get("sfx", True):
destroy_sound.play(volume=self.settings_dict.get("sfx_volume", 50) / 100)
self.sprite_grid[grid_row][grid_col].visible = False
self.cell_grid[grid_row, grid_col] = 0
create_sound.play(volume=self.settings_dict.get("sfx_volume", 50) / 100)
elif self.window.mouse[arcade.MOUSE_BUTTON_RIGHT] or (self.has_controller and self.controller.b):
self.mouse_interaction = 0
self.population -= 1
if self.settings_dict.get("sfx", True):
destroy_sound.play(volume=self.settings_dict.get("sfx_volume", 50) / 100)
else:
return
start_x, start_y = self.image_sprite.x, self.image_sprite.y
mouse_x, mouse_y = (self.window.mouse.data.get('x', 0), self.window.mouse.data.get('y', 0)) if not self.has_controller else (self.cursor_sprite.left, self.cursor_sprite.top)
grid_row = int((mouse_y - start_y) / (self.image_sprite.height / ROWS))
grid_col = int((mouse_x - start_x) / (self.image_sprite.width / COLS))
if grid_col < 0 or grid_row < 0 or grid_row >= ROWS or grid_col >= COLS:
return
self.mouse_row = grid_row
self.mouse_col = grid_col
def on_mouse_release(self, x, y, button, modifiers):
if button == arcade.MOUSE_BUTTON_LEFT or button == arcade.MOUSE_BUTTON_RIGHT:
self.mouse_interaction = -1
def load(self):
arcade.unschedule(self.update_generation)
@@ -259,6 +273,8 @@ class Game(arcade.gui.UIView):
def on_draw(self):
super().on_draw()
arcade.draw_rect_outline(arcade.rect.LBWH(self.start_x - (SPACING * 2), self.start_y - (SPACING * 2), COLS * (CELL_SIZE + SPACING), ROWS * (CELL_SIZE + SPACING)), arcade.color.WHITE)
self.grid_outline.draw()
self.image_sprite.draw()
self.spritelist.draw()
if self.has_controller:
self.spritelist.draw()

View File

@@ -1,11 +1,10 @@
[project]
name = "game-of-life"
version = "0.1.0"
description = "Game of life recreated with Python and the Arcade and pyglet modules."
description = "Game Of Life recreated with Python, Arcade, pyglet and compute shaders."
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"arcade==3.2.0",
"numpy>=2.3.1",
"pypresence>=4.3.0",
]

View File

@@ -3,10 +3,8 @@ from arcade.types import Color
from arcade.gui.widgets.buttons import UITextureButtonStyle, UIFlatButtonStyle
from arcade.gui.widgets.slider import UISliderStyle
COLS = 128
ROWS = 96
CELL_SIZE = 6
SPACING = 1
COLS = 160
ROWS = 90
discord_presence_id = 1363780625928028200
log_dir = 'logs'

60
uv.lock generated
View File

@@ -77,75 +77,15 @@ version = "0.1.0"
source = { virtual = "." }
dependencies = [
{ name = "arcade" },
{ name = "numpy" },
{ name = "pypresence" },
]
[package.metadata]
requires-dist = [
{ name = "arcade", specifier = "==3.2.0" },
{ name = "numpy", specifier = ">=2.3.1" },
{ name = "pypresence", specifier = ">=4.3.0" },
]
[[package]]
name = "numpy"
version = "2.3.1"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/2e/19/d7c972dfe90a353dbd3efbbe1d14a5951de80c99c9dc1b93cd998d51dc0f/numpy-2.3.1.tar.gz", hash = "sha256:1ec9ae20a4226da374362cca3c62cd753faf2f951440b0e3b98e93c235441d2b", size = 20390372, upload_time = "2025-06-21T12:28:33.469Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/b0/c7/87c64d7ab426156530676000c94784ef55676df2f13b2796f97722464124/numpy-2.3.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:6ea9e48336a402551f52cd8f593343699003d2353daa4b72ce8d34f66b722070", size = 21199346, upload_time = "2025-06-21T11:47:47.57Z" },
{ url = "https://files.pythonhosted.org/packages/58/0e/0966c2f44beeac12af8d836e5b5f826a407cf34c45cb73ddcdfce9f5960b/numpy-2.3.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:5ccb7336eaf0e77c1635b232c141846493a588ec9ea777a7c24d7166bb8533ae", size = 14361143, upload_time = "2025-06-21T11:48:10.766Z" },
{ url = "https://files.pythonhosted.org/packages/7d/31/6e35a247acb1bfc19226791dfc7d4c30002cd4e620e11e58b0ddf836fe52/numpy-2.3.1-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:0bb3a4a61e1d327e035275d2a993c96fa786e4913aa089843e6a2d9dd205c66a", size = 5378989, upload_time = "2025-06-21T11:48:19.998Z" },
{ url = "https://files.pythonhosted.org/packages/b0/25/93b621219bb6f5a2d4e713a824522c69ab1f06a57cd571cda70e2e31af44/numpy-2.3.1-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:e344eb79dab01f1e838ebb67aab09965fb271d6da6b00adda26328ac27d4a66e", size = 6912890, upload_time = "2025-06-21T11:48:31.376Z" },
{ url = "https://files.pythonhosted.org/packages/ef/60/6b06ed98d11fb32e27fb59468b42383f3877146d3ee639f733776b6ac596/numpy-2.3.1-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:467db865b392168ceb1ef1ffa6f5a86e62468c43e0cfb4ab6da667ede10e58db", size = 14569032, upload_time = "2025-06-21T11:48:52.563Z" },
{ url = "https://files.pythonhosted.org/packages/75/c9/9bec03675192077467a9c7c2bdd1f2e922bd01d3a69b15c3a0fdcd8548f6/numpy-2.3.1-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:afed2ce4a84f6b0fc6c1ce734ff368cbf5a5e24e8954a338f3bdffa0718adffb", size = 16930354, upload_time = "2025-06-21T11:49:17.473Z" },
{ url = "https://files.pythonhosted.org/packages/6a/e2/5756a00cabcf50a3f527a0c968b2b4881c62b1379223931853114fa04cda/numpy-2.3.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:0025048b3c1557a20bc80d06fdeb8cc7fc193721484cca82b2cfa072fec71a93", size = 15879605, upload_time = "2025-06-21T11:49:41.161Z" },
{ url = "https://files.pythonhosted.org/packages/ff/86/a471f65f0a86f1ca62dcc90b9fa46174dd48f50214e5446bc16a775646c5/numpy-2.3.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:a5ee121b60aa509679b682819c602579e1df14a5b07fe95671c8849aad8f2115", size = 18666994, upload_time = "2025-06-21T11:50:08.516Z" },
{ url = "https://files.pythonhosted.org/packages/43/a6/482a53e469b32be6500aaf61cfafd1de7a0b0d484babf679209c3298852e/numpy-2.3.1-cp311-cp311-win32.whl", hash = "sha256:a8b740f5579ae4585831b3cf0e3b0425c667274f82a484866d2adf9570539369", size = 6603672, upload_time = "2025-06-21T11:50:19.584Z" },
{ url = "https://files.pythonhosted.org/packages/6b/fb/bb613f4122c310a13ec67585c70e14b03bfc7ebabd24f4d5138b97371d7c/numpy-2.3.1-cp311-cp311-win_amd64.whl", hash = "sha256:d4580adadc53311b163444f877e0789f1c8861e2698f6b2a4ca852fda154f3ff", size = 13024015, upload_time = "2025-06-21T11:50:39.139Z" },
{ url = "https://files.pythonhosted.org/packages/51/58/2d842825af9a0c041aca246dc92eb725e1bc5e1c9ac89712625db0c4e11c/numpy-2.3.1-cp311-cp311-win_arm64.whl", hash = "sha256:ec0bdafa906f95adc9a0c6f26a4871fa753f25caaa0e032578a30457bff0af6a", size = 10456989, upload_time = "2025-06-21T11:50:55.616Z" },
{ url = "https://files.pythonhosted.org/packages/c6/56/71ad5022e2f63cfe0ca93559403d0edef14aea70a841d640bd13cdba578e/numpy-2.3.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:2959d8f268f3d8ee402b04a9ec4bb7604555aeacf78b360dc4ec27f1d508177d", size = 20896664, upload_time = "2025-06-21T12:15:30.845Z" },
{ url = "https://files.pythonhosted.org/packages/25/65/2db52ba049813670f7f987cc5db6dac9be7cd95e923cc6832b3d32d87cef/numpy-2.3.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:762e0c0c6b56bdedfef9a8e1d4538556438288c4276901ea008ae44091954e29", size = 14131078, upload_time = "2025-06-21T12:15:52.23Z" },
{ url = "https://files.pythonhosted.org/packages/57/dd/28fa3c17b0e751047ac928c1e1b6990238faad76e9b147e585b573d9d1bd/numpy-2.3.1-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:867ef172a0976aaa1f1d1b63cf2090de8b636a7674607d514505fb7276ab08fc", size = 5112554, upload_time = "2025-06-21T12:16:01.434Z" },
{ url = "https://files.pythonhosted.org/packages/c9/fc/84ea0cba8e760c4644b708b6819d91784c290288c27aca916115e3311d17/numpy-2.3.1-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:4e602e1b8682c2b833af89ba641ad4176053aaa50f5cacda1a27004352dde943", size = 6646560, upload_time = "2025-06-21T12:16:11.895Z" },
{ url = "https://files.pythonhosted.org/packages/61/b2/512b0c2ddec985ad1e496b0bd853eeb572315c0f07cd6997473ced8f15e2/numpy-2.3.1-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:8e333040d069eba1652fb08962ec5b76af7f2c7bce1df7e1418c8055cf776f25", size = 14260638, upload_time = "2025-06-21T12:16:32.611Z" },
{ url = "https://files.pythonhosted.org/packages/6e/45/c51cb248e679a6c6ab14b7a8e3ead3f4a3fe7425fc7a6f98b3f147bec532/numpy-2.3.1-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:e7cbf5a5eafd8d230a3ce356d892512185230e4781a361229bd902ff403bc660", size = 16632729, upload_time = "2025-06-21T12:16:57.439Z" },
{ url = "https://files.pythonhosted.org/packages/e4/ff/feb4be2e5c09a3da161b412019caf47183099cbea1132fd98061808c2df2/numpy-2.3.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:5f1b8f26d1086835f442286c1d9b64bb3974b0b1e41bb105358fd07d20872952", size = 15565330, upload_time = "2025-06-21T12:17:20.638Z" },
{ url = "https://files.pythonhosted.org/packages/bc/6d/ceafe87587101e9ab0d370e4f6e5f3f3a85b9a697f2318738e5e7e176ce3/numpy-2.3.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ee8340cb48c9b7a5899d1149eece41ca535513a9698098edbade2a8e7a84da77", size = 18361734, upload_time = "2025-06-21T12:17:47.938Z" },
{ url = "https://files.pythonhosted.org/packages/2b/19/0fb49a3ea088be691f040c9bf1817e4669a339d6e98579f91859b902c636/numpy-2.3.1-cp312-cp312-win32.whl", hash = "sha256:e772dda20a6002ef7061713dc1e2585bc1b534e7909b2030b5a46dae8ff077ab", size = 6320411, upload_time = "2025-06-21T12:17:58.475Z" },
{ url = "https://files.pythonhosted.org/packages/b1/3e/e28f4c1dd9e042eb57a3eb652f200225e311b608632bc727ae378623d4f8/numpy-2.3.1-cp312-cp312-win_amd64.whl", hash = "sha256:cfecc7822543abdea6de08758091da655ea2210b8ffa1faf116b940693d3df76", size = 12734973, upload_time = "2025-06-21T12:18:17.601Z" },
{ url = "https://files.pythonhosted.org/packages/04/a8/8a5e9079dc722acf53522b8f8842e79541ea81835e9b5483388701421073/numpy-2.3.1-cp312-cp312-win_arm64.whl", hash = "sha256:7be91b2239af2658653c5bb6f1b8bccafaf08226a258caf78ce44710a0160d30", size = 10191491, upload_time = "2025-06-21T12:18:33.585Z" },
{ url = "https://files.pythonhosted.org/packages/d4/bd/35ad97006d8abff8631293f8ea6adf07b0108ce6fec68da3c3fcca1197f2/numpy-2.3.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:25a1992b0a3fdcdaec9f552ef10d8103186f5397ab45e2d25f8ac51b1a6b97e8", size = 20889381, upload_time = "2025-06-21T12:19:04.103Z" },
{ url = "https://files.pythonhosted.org/packages/f1/4f/df5923874d8095b6062495b39729178eef4a922119cee32a12ee1bd4664c/numpy-2.3.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:7dea630156d39b02a63c18f508f85010230409db5b2927ba59c8ba4ab3e8272e", size = 14152726, upload_time = "2025-06-21T12:19:25.599Z" },
{ url = "https://files.pythonhosted.org/packages/8c/0f/a1f269b125806212a876f7efb049b06c6f8772cf0121139f97774cd95626/numpy-2.3.1-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:bada6058dd886061f10ea15f230ccf7dfff40572e99fef440a4a857c8728c9c0", size = 5105145, upload_time = "2025-06-21T12:19:34.782Z" },
{ url = "https://files.pythonhosted.org/packages/6d/63/a7f7fd5f375b0361682f6ffbf686787e82b7bbd561268e4f30afad2bb3c0/numpy-2.3.1-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:a894f3816eb17b29e4783e5873f92faf55b710c2519e5c351767c51f79d8526d", size = 6639409, upload_time = "2025-06-21T12:19:45.228Z" },
{ url = "https://files.pythonhosted.org/packages/bf/0d/1854a4121af895aab383f4aa233748f1df4671ef331d898e32426756a8a6/numpy-2.3.1-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:18703df6c4a4fee55fd3d6e5a253d01c5d33a295409b03fda0c86b3ca2ff41a1", size = 14257630, upload_time = "2025-06-21T12:20:06.544Z" },
{ url = "https://files.pythonhosted.org/packages/50/30/af1b277b443f2fb08acf1c55ce9d68ee540043f158630d62cef012750f9f/numpy-2.3.1-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:5902660491bd7a48b2ec16c23ccb9124b8abfd9583c5fdfa123fe6b421e03de1", size = 16627546, upload_time = "2025-06-21T12:20:31.002Z" },
{ url = "https://files.pythonhosted.org/packages/6e/ec/3b68220c277e463095342d254c61be8144c31208db18d3fd8ef02712bcd6/numpy-2.3.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:36890eb9e9d2081137bd78d29050ba63b8dab95dff7912eadf1185e80074b2a0", size = 15562538, upload_time = "2025-06-21T12:20:54.322Z" },
{ url = "https://files.pythonhosted.org/packages/77/2b/4014f2bcc4404484021c74d4c5ee8eb3de7e3f7ac75f06672f8dcf85140a/numpy-2.3.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a780033466159c2270531e2b8ac063704592a0bc62ec4a1b991c7c40705eb0e8", size = 18360327, upload_time = "2025-06-21T12:21:21.053Z" },
{ url = "https://files.pythonhosted.org/packages/40/8d/2ddd6c9b30fcf920837b8672f6c65590c7d92e43084c25fc65edc22e93ca/numpy-2.3.1-cp313-cp313-win32.whl", hash = "sha256:39bff12c076812595c3a306f22bfe49919c5513aa1e0e70fac756a0be7c2a2b8", size = 6312330, upload_time = "2025-06-21T12:25:07.447Z" },
{ url = "https://files.pythonhosted.org/packages/dd/c8/beaba449925988d415efccb45bf977ff8327a02f655090627318f6398c7b/numpy-2.3.1-cp313-cp313-win_amd64.whl", hash = "sha256:8d5ee6eec45f08ce507a6570e06f2f879b374a552087a4179ea7838edbcbfa42", size = 12731565, upload_time = "2025-06-21T12:25:26.444Z" },
{ url = "https://files.pythonhosted.org/packages/0b/c3/5c0c575d7ec78c1126998071f58facfc124006635da75b090805e642c62e/numpy-2.3.1-cp313-cp313-win_arm64.whl", hash = "sha256:0c4d9e0a8368db90f93bd192bfa771ace63137c3488d198ee21dfb8e7771916e", size = 10190262, upload_time = "2025-06-21T12:25:42.196Z" },
{ url = "https://files.pythonhosted.org/packages/ea/19/a029cd335cf72f79d2644dcfc22d90f09caa86265cbbde3b5702ccef6890/numpy-2.3.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:b0b5397374f32ec0649dd98c652a1798192042e715df918c20672c62fb52d4b8", size = 20987593, upload_time = "2025-06-21T12:21:51.664Z" },
{ url = "https://files.pythonhosted.org/packages/25/91/8ea8894406209107d9ce19b66314194675d31761fe2cb3c84fe2eeae2f37/numpy-2.3.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:c5bdf2015ccfcee8253fb8be695516ac4457c743473a43290fd36eba6a1777eb", size = 14300523, upload_time = "2025-06-21T12:22:13.583Z" },
{ url = "https://files.pythonhosted.org/packages/a6/7f/06187b0066eefc9e7ce77d5f2ddb4e314a55220ad62dd0bfc9f2c44bac14/numpy-2.3.1-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:d70f20df7f08b90a2062c1f07737dd340adccf2068d0f1b9b3d56e2038979fee", size = 5227993, upload_time = "2025-06-21T12:22:22.53Z" },
{ url = "https://files.pythonhosted.org/packages/e8/ec/a926c293c605fa75e9cfb09f1e4840098ed46d2edaa6e2152ee35dc01ed3/numpy-2.3.1-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:2fb86b7e58f9ac50e1e9dd1290154107e47d1eef23a0ae9145ded06ea606f992", size = 6736652, upload_time = "2025-06-21T12:22:33.629Z" },
{ url = "https://files.pythonhosted.org/packages/e3/62/d68e52fb6fde5586650d4c0ce0b05ff3a48ad4df4ffd1b8866479d1d671d/numpy-2.3.1-cp313-cp313t-manylinux_2_28_aarch64.whl", hash = "sha256:23ab05b2d241f76cb883ce8b9a93a680752fbfcbd51c50eff0b88b979e471d8c", size = 14331561, upload_time = "2025-06-21T12:22:55.056Z" },
{ url = "https://files.pythonhosted.org/packages/fc/ec/b74d3f2430960044bdad6900d9f5edc2dc0fb8bf5a0be0f65287bf2cbe27/numpy-2.3.1-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:ce2ce9e5de4703a673e705183f64fd5da5bf36e7beddcb63a25ee2286e71ca48", size = 16693349, upload_time = "2025-06-21T12:23:20.53Z" },
{ url = "https://files.pythonhosted.org/packages/0d/15/def96774b9d7eb198ddadfcbd20281b20ebb510580419197e225f5c55c3e/numpy-2.3.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:c4913079974eeb5c16ccfd2b1f09354b8fed7e0d6f2cab933104a09a6419b1ee", size = 15642053, upload_time = "2025-06-21T12:23:43.697Z" },
{ url = "https://files.pythonhosted.org/packages/2b/57/c3203974762a759540c6ae71d0ea2341c1fa41d84e4971a8e76d7141678a/numpy-2.3.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:010ce9b4f00d5c036053ca684c77441f2f2c934fd23bee058b4d6f196efd8280", size = 18434184, upload_time = "2025-06-21T12:24:10.708Z" },
{ url = "https://files.pythonhosted.org/packages/22/8a/ccdf201457ed8ac6245187850aff4ca56a79edbea4829f4e9f14d46fa9a5/numpy-2.3.1-cp313-cp313t-win32.whl", hash = "sha256:6269b9edfe32912584ec496d91b00b6d34282ca1d07eb10e82dfc780907d6c2e", size = 6440678, upload_time = "2025-06-21T12:24:21.596Z" },
{ url = "https://files.pythonhosted.org/packages/f1/7e/7f431d8bd8eb7e03d79294aed238b1b0b174b3148570d03a8a8a8f6a0da9/numpy-2.3.1-cp313-cp313t-win_amd64.whl", hash = "sha256:2a809637460e88a113e186e87f228d74ae2852a2e0c44de275263376f17b5bdc", size = 12870697, upload_time = "2025-06-21T12:24:40.644Z" },
{ url = "https://files.pythonhosted.org/packages/d4/ca/af82bf0fad4c3e573c6930ed743b5308492ff19917c7caaf2f9b6f9e2e98/numpy-2.3.1-cp313-cp313t-win_arm64.whl", hash = "sha256:eccb9a159db9aed60800187bc47a6d3451553f0e1b08b068d8b277ddfbb9b244", size = 10260376, upload_time = "2025-06-21T12:24:56.884Z" },
{ url = "https://files.pythonhosted.org/packages/e8/34/facc13b9b42ddca30498fc51f7f73c3d0f2be179943a4b4da8686e259740/numpy-2.3.1-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:ad506d4b09e684394c42c966ec1527f6ebc25da7f4da4b1b056606ffe446b8a3", size = 21070637, upload_time = "2025-06-21T12:26:12.518Z" },
{ url = "https://files.pythonhosted.org/packages/65/b6/41b705d9dbae04649b529fc9bd3387664c3281c7cd78b404a4efe73dcc45/numpy-2.3.1-pp311-pypy311_pp73-macosx_14_0_arm64.whl", hash = "sha256:ebb8603d45bc86bbd5edb0d63e52c5fd9e7945d3a503b77e486bd88dde67a19b", size = 5304087, upload_time = "2025-06-21T12:26:22.294Z" },
{ url = "https://files.pythonhosted.org/packages/7a/b4/fe3ac1902bff7a4934a22d49e1c9d71a623204d654d4cc43c6e8fe337fcb/numpy-2.3.1-pp311-pypy311_pp73-macosx_14_0_x86_64.whl", hash = "sha256:15aa4c392ac396e2ad3d0a2680c0f0dee420f9fed14eef09bdb9450ee6dcb7b7", size = 6817588, upload_time = "2025-06-21T12:26:32.939Z" },
{ url = "https://files.pythonhosted.org/packages/ae/ee/89bedf69c36ace1ac8f59e97811c1f5031e179a37e4821c3a230bf750142/numpy-2.3.1-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:c6e0bf9d1a2f50d2b65a7cf56db37c095af17b59f6c132396f7c6d5dd76484df", size = 14399010, upload_time = "2025-06-21T12:26:54.086Z" },
{ url = "https://files.pythonhosted.org/packages/15/08/e00e7070ede29b2b176165eba18d6f9784d5349be3c0c1218338e79c27fd/numpy-2.3.1-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:eabd7e8740d494ce2b4ea0ff05afa1b7b291e978c0ae075487c51e8bd93c0c68", size = 16752042, upload_time = "2025-06-21T12:27:19.018Z" },
{ url = "https://files.pythonhosted.org/packages/48/6b/1c6b515a83d5564b1698a61efa245727c8feecf308f4091f565988519d20/numpy-2.3.1-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:e610832418a2bc09d974cc9fecebfa51e9532d6190223bc5ef6a7402ebf3b5cb", size = 12927246, upload_time = "2025-06-21T12:27:38.618Z" },
]
[[package]]
name = "pillow"
version = "11.0.0"