Skip to main content

No project description provided

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rich_grid-0.1.3.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rich_grid-0.1.3-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file rich_grid-0.1.3.tar.gz.

File metadata

  • Download URL: rich_grid-0.1.3.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.13.1 Darwin/24.2.0

File hashes

Hashes for rich_grid-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5cd54df53ed7c657cf9d2c1ec6cfc69104233c354e610dd5d6ebd702d289ad66
MD5 80a564a631479b0e73afaaf9b340aeb4
BLAKE2b-256 0e43dda16d93d0f37c67c44abb87f57a39361f379998599008de807dcf6bce19

See more details on using hashes here.

File details

Details for the file rich_grid-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: rich_grid-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.13.1 Darwin/24.2.0

File hashes

Hashes for rich_grid-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7f6aa19366094c2680b2ea13922a7967276451ff3ddb54d21967d30d01f77c94
MD5 0589b7ca662be2d86e8421eee52f783f
BLAKE2b-256 8b363be051ed84972abe4ad2dc23f60aef61f9f87889092b4d3968bf58b6ea86

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page