Skip to main content

Convert your text to print function in any language

Project description

About

This is a quick and easy tool to convert your big ascii words to print statements in any programming language.

Example:
Say you have the words: Hello, World!

And you converted it to big ascii characters, like this:

 ___  ___  _______   ___       ___       ________                ___       __   ________  ________  ___       ________     
|\  \|\  \|\  ___ \ |\  \     |\  \     |\   __  \              |\  \     |\  \|\   __  \|\   __  \|\  \     |\   ___ \    
\ \  \\\  \ \   __/|\ \  \    \ \  \    \ \  \|\  \             \ \  \    \ \  \ \  \|\  \ \  \|\  \ \  \    \ \  \_|\ \   
 \ \   __  \ \  \_|/_\ \  \    \ \  \    \ \  \\\  \  ___        \ \  \  __\ \  \ \  \\\  \ \   _  _\ \  \    \ \  \ \\ \  
  \ \  \ \  \ \  \_|\ \ \  \____\ \  \____\ \  \\\  \|\  \        \ \  \|\__\_\  \ \  \\\  \ \  \\  \\ \  \____\ \  \_\\ \ 
   \ \__\ \__\ \_______\ \_______\ \_______\ \_______\ \  \        \ \____________\ \_______\ \__\\ _\\ \_______\ \_______\
    \|__|\|__|\|_______|\|_______|\|_______|\|_______|\/  /|        \|____________|\|_______|\|__|\|__|\|_______|\|_______|
                                                    |\___/ /                                                               
                                                    \|___|/                                                                

But you want to have it used in a print statement, like this:

print(r' ___  ___  _______   ___       ___       ________                ___       __   ________  ________  ___       ________ ')
print(r'|\  \|\  \|\  ___ \ |\  \     |\  \     |\   __  \              |\  \     |\  \|\   __  \|\   __  \|\  \     |\   ___ \ ')
print(r'\ \  \\\  \ \   __/|\ \  \    \ \  \    \ \  \|\  \             \ \  \    \ \  \ \  \|\  \ \  \|\  \ \  \    \ \  \_|\ \ ')
print(r' \ \   __  \ \  \_|/_\ \  \    \ \  \    \ \  \\\  \  ___        \ \  \  __\ \  \ \  \\\  \ \   _  _\ \  \    \ \  \ \\ \ ')
print(r'  \ \  \ \  \ \  \_|\ \ \  \____\ \  \____\ \  \\\  \|\  \        \ \  \|\__\_\  \ \  \\\  \ \  \\  \\ \  \____\ \  \_\\ \ ')
print(r'   \ \__\ \__\ \_______\ \_______\ \_______\ \_______\ \  \        \ \____________\ \_______\ \__\\ _\\ \_______\ \_______\ ')
print(r'    \|__|\|__|\|_______|\|_______|\|_______|\|_______|\/  /|        \|____________|\|_______|\|__|\|__|\|_______|\|_______| ')
print(r'                                                    |\___/ / ')
print(r'                                                    \|___|/ ')

Well then in that case I got you convered!
All you need to do, is make a text file, and paste you huge ass words there.
You can get those huge ass words from this website:
http://www.network-science.de/ascii/

Then, import my tool:

from text2output import *

Then, run it:

text2output("helloworld.txt", lang="python3", line_prefix="         ", file_prefix='# Output hello world')

You'll get a new file called "helloworld_new.txt" there would be your good stuff.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for text2output, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size text2output-1.1.0.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View
Filename, size text2output-1.1.0-py3-none-any.whl (3.4 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page