rich_grid
Installation
To install rich_grid, run the following command:
pip install rich_grid
Quick Start
from rich import print
grid = Grid(size=(21,21))
PLAYER = Cell(cell_value="@", cell_color="cornflower_blue", rgb_array_color=(100, 149, 237))
EMPTY = Cell(cell_value=" ", debug_value="#", debug_color="black", rgb_array_color=(0, 0, 0))
cells = [[
EMPTY for _ in range(grid.width)
] for _ in range(grid.height)]
cells[grid.height//2][grid.width//2]=PLAYER
scene = grid.render(cells, debug=True, mode="human")
print(scene)
Metadata
Release files for rich-grid 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rich_grid-0.1.3.tar.gz | 2.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rich_grid-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.3 kB
Release files / rich_grid-0.1.3.tar.gz
| Download URL | rich_grid-0.1.3.tar.gz |
|---|---|
| Size | 2.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5cd54df53ed7c657cf9d2c1ec6cfc69104233c354e610dd5d6ebd702d289ad66
|
|
BLAKE2b-256 checksum How to use checksums |
0e43dda16d93d0f37c67c44abb87f57a39361f379998599008de807dcf6bce19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.13.1 Darwin/24.2.0
|
Release files / rich_grid-0.1.3-py3-none-any.whl
| Download URL | rich_grid-0.1.3-py3-none-any.whl |
|---|---|
| Size | 2.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f6aa19366094c2680b2ea13922a7967276451ff3ddb54d21967d30d01f77c94
|
|
BLAKE2b-256 checksum How to use checksums |
8b363be051ed84972abe4ad2dc23f60aef61f9f87889092b4d3968bf58b6ea86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.13.1 Darwin/24.2.0
|