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.2.tar.gz (1.9 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.2-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rich_grid-0.1.2.tar.gz
  • Upload date:
  • Size: 1.9 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.2.tar.gz
Algorithm Hash digest
SHA256 a15a2581291778449a7f91c587e3c0b7d70f8c53aa21bd79e53dc5ad3a1e2d9f
MD5 626f873b0880223fd6d8bef8673f2ae4
BLAKE2b-256 b453a65f33e9e0a84550842675b188d0bf797e6ae777103acf3acc48aa5a8b72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rich_grid-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ad2f822e3667befc0c920e4d59b729e4554eab732ee4fa241277782414be5a6e
MD5 8408f3647e5f0922e2ce6978cd459881
BLAKE2b-256 6f381834db72156eeb7936ba65fdece30ce23cac142db4b9a52fae228495d84f

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