Skip to main content

Python package that generates Patterns.

Project description

My Package

A Python Package for generating Patterns

Installation

pip install patternify

Usage Examples

Example 1 - Square Pattern

from patternify import square

print(square(5)) # normal pattern '*'
print(square(8,pattern='#')) # prints pattern with '#'
Output

*****
*****
*****
*****
*****

********
*######*
*######*
*######*
*######*
*######*
*######*
********


Example 2 - Hollow Square Pattern

from patternify import hollow_square

print(hollow_square(7,space='~'))
print(hollow_square(5,pattern='#',space='~'))
Output

*******
*~~~~~*
*~~~~~*
*~~~~~*
*~~~~~*
*~~~~~*
*******

#####
#~~~#
#~~~#
#~~~#
#####

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

patternify-0.0.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

patternify-0.0.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file patternify-0.0.1.tar.gz.

File metadata

  • Download URL: patternify-0.0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for patternify-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2909bfd7ec92fcdc3c2bfdb3488ddd39889978a1c14170943878fb61eb6d454b
MD5 cbf669aa09262a3abf670f252e0413f4
BLAKE2b-256 4773ab201f94ed062fe3ea62bca0921a7a800186a4881fa49773060d2d93776a

See more details on using hashes here.

File details

Details for the file patternify-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: patternify-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for patternify-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 196fb2cbf59f44c500f8d1e011b1f22031ac92528db0daf8d5cdc5bcfc1e952b
MD5 cafe846080343692accd537aacce31f4
BLAKE2b-256 8d3b66bd031e83aa033d56753c154fd31607ba95d57a8eb380096eacd8c4c20b

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