Skip to main content

A simple library for custom showcasing of fonts from the 'art' PyPi package , it is helpful when trying to choose a font

Project description

ART SHOWCASE

  • A library for custom showcasing of fonts from the 'art' Pypi package , it is helpful when trying to choose a font .
  • It contains one function showcase()
  • You can use it in a Python file or on a command line

Installation using pip

pip install art-showcase

Dependencies


Command line usage

  • You'll need Python already installed and added to path
python -m art_showcase  HelloWorld --limit 10  --random 
  • The command above will showcase 10 fonts at random s

  • See all available commands by typing :

python -m art_showcase -h
  • The above command gives you :
usage: __main__.py [-h] [-l LIMIT] [-ew ENDSWITH] [-sw STARTSWITH] [-c CONTAINS] [-s SLEEP] [-r] text

positional arguments:
  text                  The text to use during the showcase

options:
  -h, --help            show this help message and exit
  -l, --limit LIMIT     The maximum number of fonts to showcase . 0 is equal to no limit
  -ew, --endswith ENDSWITH
                        The string a font name should end with in order to be showcased
  -sw, --startswith STARTSWITH
                        The string a font name should start with in order to be showcased
  -c, --contains CONTAINS
                        The string a font name should contain in order to be showcased
  -s, --sleep SLEEP     The time in seconds to wait before showing the next font
  -r, --random          If set , this option enables the showcase to be randomized

Quick start

  • Let's get you started !
from art_showcase import showcase 

# showcase a maximum 5 fonts only , limit = 0 returns everthing font that meets the specs
fonts_showcased = showcase( "Hellothere", limit = 2 )
# fonts_showcased =  ['1943', '1row']


# Set the pause time in seconds in between fonts
fonts_showcased = showcase("Hellothere" , sleep = 0.1 , limit = 3 )
# fonts_showcased = ['1943', '1row', '3-d']


# Set constraints for the fonts to showcase

# Check if a font name contains the text provided
fonts_showcased = showcase( "Hellothere",
							contains = "re",
							sleep = 0.1,
							  )
# fonts_showcased = ['barbwire', 'fire_font-s', 'fireing', 'future_1', 'future_2', 'future_3', 'future_4', 'future_5', 'future_6', 'future_7', 'future_8', 'greek', 'green_be', 'ogre', 'rectangles', 'red_phoenix', 'rev', 'stforek', 'threepoint', 'trek']

# Check if a font name starts the text provided
fonts_showcased = showcase( "Hellothere",
							startswith = "3",
							sleep = 0.1,
							  )
# fonts_showcased = ['3-d', '3d_diagonal', '3x5']



# Check if a font name endswith the text provided
fonts_showcased = showcase( "Hellothere",
							endswith = "zy",
							sleep = 0.1,
							  )
# fonts_showcased = ['fuzzy']


# Randomize the showcase output
fonts_showcased = showcase( "Hellothere",
							startswith = "3",
							sleep = 0.1,
							randomize =  True
							  )
# fonts_showcased will be a random list containing these values :
#  ['3x5', '3d_diagonal', '3-d']



# Add the font names you want to showcase specifically 
# Note that they must be in the list art.FONT_NAMES
fonts_showcased = showcase( "Hellothere", fonts = ["fuzzy" , "os2"])
Thanks for reading , or installing or whatever . Have a good one. Cheers !

Adios!

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

art_showcase-0.0.3.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

art_showcase-0.0.3-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file art_showcase-0.0.3.tar.gz.

File metadata

  • Download URL: art_showcase-0.0.3.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for art_showcase-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a9a37b8824ee589abb1e981fd1315482995f1b724a2e4e12e5fa881b913a3514
MD5 7e7f081d968169647fa3396af182e1e0
BLAKE2b-256 b317674ead5e30d8391f2dfcd2aaf53867ed4990ae9b35f3ead12e78c004c6d6

See more details on using hashes here.

File details

Details for the file art_showcase-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: art_showcase-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for art_showcase-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b4dc71e79ae84bb9328404cdcc5756a03217ae110ba1d740194e696863d48ba9
MD5 767b78568497cf24774d2b5100a972c5
BLAKE2b-256 c25a1100ebaac1df1456af86cacfcdda4fdd819ba415e6d97d12b219b2094693

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