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
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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size text2output-1.1.0-py3-none-any.whl (3.4 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size text2output-1.1.0.tar.gz (2.4 kB) | File type Source | Python version None | Upload date | Hashes View |
Hashes for text2output-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 377296802ef654b3cf852fac17e6d7c876ec5ac1e8653b3e26a053988e822ec5 |
|
MD5 | 3f7c37df81cc0a27730407ff3d233ec2 |
|
BLAKE2-256 | 89e1535ba9a2006ac529b4637fedcf49506ede18922e38403962d0340154252d |