Skip to main content

Crossy words: word matrix

Library that generates the word matrix in a way to have multiple words in one 5x5 matrix.

Available methods

getMatrix(lang="en")

Parametrs:

  • lang - language of words in the matrix. Values: "en", "ru". By default - "en".

Result:

  • a list of lists representing a 5x5 matrix
  • a dictionary of coordinates of specific word {word: [coordinates in matrix]}

printMatrix(matrix) - prints generated matrix

printWords(matrix) - prints generated words with coordinates of letters in the matrix

Installation

pip install crossywords

Example

import crossywords as cw

matrix, words = cw.getMatrix("en")  # getting a matrix and words in it

cw.printMatrix(matrix)  # printing matrix
print()
cw.printWords(words)  # printing words in it

Output:

t a t s o
r h l k b
s o w k t
g a n h n
e t h i a

think - [[4, 1], [4, 2], [4, 3], [3, 4], [2, 3]]
thank - [[2, 4], [3, 3], [4, 4], [3, 4], [2, 3]]
own - [[2, 1], [2, 2], [3, 2]]
show - [[2, 0], [1, 1], [2, 1], [2, 2]]
talk - [[0, 2], [0, 1], [1, 2], [1, 3]]
start - [[0, 3], [0, 2], [0, 1], [1, 0], [0, 0]]

Metadata

Release files for crossywords 0.0.6

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

Source distribution (sdist)

Source distribution for crossywords 0.0.6
File Size Uploaded Provenance
crossywords-0.0.6.tar.gz 4.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 10.9 kB

Release files / crossywords-0.0.6.tar.gz

Download URL crossywords-0.0.6.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c554a1b443954f6df5f90787f4252bff540b887c85581c9d8c4e6077c823ab6a
BLAKE2b-256 checksum
How to use checksums
16545340b14ecc106417af74559efcaa4bc9c53303eec5133b31c90a906b24c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

Release files / crossywords-0.0.6-py3-none-any.whl

Download URL crossywords-0.0.6-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c6d364137be19e70c9cae777413d974f4d17eddbab82df911738967afaf75f3
BLAKE2b-256 checksum
How to use checksums
32f386ba3c230411c22478a2e901fd82d5c958746a3de3d045a4ac7865e33874
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

Security for crossywords 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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