Skip to main content

pretty_poly - a package for displaying polyomino tilings

This is a Python package for displaying polyomino tilings, expressed as lists of lists of (x, y) tuples, in various ways.

Example use

>>> from pretty_poly import make_ascii
>>> print(make_ascii([[(0, 0), (0, 1), (0, 2), (1, 1)], [(0, 3), (1, 3), (2, 3), (1, 2)], [(1, 0), (2, 0), (3, 0), (2, 1)], [(3, 1), (3, 2), (2, 2)]]))
+-+-+-+-+
| |     |
+ +-+ +-+
|   | | |
+ +-+-+ +
| | |   |
+-+ +-+-+
|     |
+-+-+-+

Example output

You can see some examples of images created using this package:

  • Colored squares PNG
  • Outlines PNG
  • Thick outlines PNG

These files were created by the code in examples/make.py

How to cite this code:

@misc{pretty_poly,
  author = {Jack Grahl},
  title = {pretty_poly - a package for displaying polyomino tilings},
  year = {2021},
  howpublished = {\url{https://github.com/jwg4/pretty_poly}},
  commit = {...}
}

Metadata

Release files for pretty_poly 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pretty_poly 0.6.0
File Size Uploaded
pretty_poly-0.6.0.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pretty_poly 0.6.0
File Interpreter ABI Platform
pretty_poly-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.2 kB

Release files / pretty_poly-0.6.0.tar.gz

Download URL pretty_poly-0.6.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9836538e774a9b552f7d6290cf5a4146cce20b902bf5bd404fe8743d45b96306
BLAKE2b-256 checksum
How to use checksums
cf463afbcb0d2167faaa876a554ce5c8a0c7913cf453ca8e98373c905b074bfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.0 CPython/3.13.2 Windows/10

Release files / pretty_poly-0.6.0-py3-none-any.whl

Download URL pretty_poly-0.6.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
053deec70697071594432fa9e3d26b04ce4af87a45aaf24b53078fd6a685b08c
BLAKE2b-256 checksum
How to use checksums
8fca389495c8110382815c1978bafba9f39063dc444edd9d1acdfdaf63b41aa9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.0 CPython/3.13.2 Windows/10
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page