squiral
square spiral
Welcome to Squiral!
Here is an example:
21 22 23 24 25
20 7 8 9 10
19 6 1 2 11
18 5 4 3 12
17 16 15 14 13
squiral is a simple and lightweight Python library for generating square spiral patterns.
With squiral, you can easily create a wide range of square spiral designs, from simple to complex.
squiral is easy to use and integrate into existing projects,
making it a great tool for data visualization, computer graphics, and other applications.
With squiral, you can quickly and easily generate square spiral patterns
that are both beautiful and functional.
Whether you're working on a personal project or a professional one,
squiral's square spiral generator is the perfect tool
for adding unique and visually striking designs to your work.
The basic idea behind printing this matrix is
to start from the middle of the matrix and then moving:
right >> down >> left >> up
and not returning to the same row again.
Install
PyPI
pip install squiral
GitHub
pip install git+https://github.com/sadikkuzu/squiral.git
Usage
In console:
buddha@dharma:~$ squiral 7
43 44 45 46 47 48 49
42 21 22 23 24 25 26
41 20 7 8 9 10 27
40 19 6 1 2 11 28
39 18 5 4 3 12 29
38 17 16 15 14 13 30
37 36 35 34 33 32 31
buddha@dharma:~$ squiral --help
usage: squiral [-h] size
positional arguments:
size squiral size
optional arguments:
-h, --help show this help message and exit
In python:
>>> import squiral as sq
>>> sq.printout(sq.produce(5))
21 22 23 24 25
20 7 8 9 10
19 6 1 2 11
18 5 4 3 12
17 16 15 14 13
>>>
Contributing
To learn more about making a contribution to squiral, please see our Contributing guide
Many Thanks To Our Contributors
Metadata
Release files for squiral 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| squiral-0.6.1.tar.gz | 4.0 kB | Without provenance | Details for squiral-0.6.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| squiral-0.6.1-py3-none-any.whl | Python 3 | none | any | Details for squiral-0.6.1-py3-none-any.whl |
Total release size: 9.6 kB
Release files / squiral-0.6.1.tar.gz
| Download URL | squiral-0.6.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b88790d491d6cf418c358e8a06fc661e3219a58799dc931fa0f92a0ceca4c495
|
|
BLAKE2b-256 checksum How to use checksums |
38c5411501277561f19dcac7152924c9dffbb815dfcfa538109723d47f494f8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / squiral-0.6.1-py3-none-any.whl
| Download URL | squiral-0.6.1-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
60b6e440ef9343570de7d2b10c21e103c8133bf19019511003568fd94183116c
|
|
BLAKE2b-256 checksum How to use checksums |
ed8498512f8530aabeda36bf9dd3a7b3350ba54a4d367b6a182689489ac30040
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for squiral 0.6.1
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.