A Python package for generating various patterns.
Project description
PatternPalette
PatternPalette is a Python package for generating a variety of patterns, including star patterns, number patterns, grid patterns, and more. It provides an easy-to-use interface for creating these patterns, which can be useful for educational purposes, graphical representations, or just for fun.
Installation
You can install PatternPalette from PyPI using pip:
pip install PatternPalette
## Features
- **Star Pattern**: Generates a symmetrical star pattern.
- **Number Pattern**: Prints incremental numbers in each row.
- **Grid Pattern**: Displays a grid with `+` and `-` characters.
- **Pyramid Pattern**: Creates a pyramid shape made of stars.
- **Inverted Pyramid Pattern**: Forms an inverted pyramid shape made of stars.
- **Diamond Pattern**: Displays a diamond shape made of stars.
- **Right-Angle Triangle Pattern**: Shows a right-angle triangle shape made of stars.
- **Hollow Square Pattern**: Produces a square shape with stars on the border and spaces inside.
- **Fibonacci Pattern**: Prints the first `n` Fibonacci numbers in a line.
- **Number Pyramid Pattern**: Creates a pyramid of numbers.
- **Hollow Diamond Pattern**: Displays a diamond shape made of stars with hollow space inside.
## Usage
# Generate various patterns
from pattern_palette import PatternPalette
# Generate various patterns
PatternPalette.star_pattern(5)
PatternPalette.number_pattern(5)
PatternPalette.grid_pattern(4, 5)
PatternPalette.pyramid_pattern(5)
PatternPalette.inverted_pyramid_pattern(5)
PatternPalette.diamond_pattern(5)
PatternPalette.right_angle_triangle_pattern(5)
PatternPalette.hollow_square_pattern(5)
PatternPalette.fibonacci_pattern(10)
PatternPalette.number_pyramid_pattern(5)
PatternPalette.hollow_diamond_pattern(5)
## Open Source Repository Link
https://github.com/AdityaSrivastavDS/PatternPalette
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file patternpalette-0.2.tar.gz.
File metadata
- Download URL: patternpalette-0.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8104d9b2458a154ab700675278b138bd53ee83941bef2e0378511235a5817eb1
|
|
| MD5 |
7fca1bbd20b7bfbd955e220deba9232e
|
|
| BLAKE2b-256 |
3652461f67c79b512c7ffc4a6285a3a267015d2b6c8e0a2a888ccc10322b30c1
|
File details
Details for the file PatternPalette-0.2-py3-none-any.whl.
File metadata
- Download URL: PatternPalette-0.2-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebb8a948f0b0e40220fd0f3ee9cae01dd89517aabde0786b88a0370c368d209f
|
|
| MD5 |
c45f8b41b96cdcbe5039aa8dbf0a3eeb
|
|
| BLAKE2b-256 |
a499fee3bdad4ccd1bc847f43e43aa72d7b29ec15ba38ac7020ef73b3bf6ba4e
|