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.4.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.4-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: art_showcase-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 e07108c42421bf431e2c84ec4bed6f430f439aa285078000833e807f8ec69985
MD5 4d3bd5f15a3dc121f88691a7f74701fd
BLAKE2b-256 350c90b9425fb077b67909b1101dfc0ccc078a0afb7eab09ff59b836acff93e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: art_showcase-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 431a48de6ed4ce2fb52405233439869eb05094d5ee08608e2fbc44e54e0d1e3a
MD5 695624112b60864b4537d19e4a16fa94
BLAKE2b-256 7ed2fe9c9d97f76bd6c156c7f1982593f180091a6cbf2d91d2550cd68ebb47e1

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