Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hadiagdam/figlet
Recreation of figlet using python
https://github.com/hadiagdam/figlet
Last synced: 21 days ago
JSON representation
Recreation of figlet using python
- Host: GitHub
- URL: https://github.com/hadiagdam/figlet
- Owner: HadiAgdam
- Created: 2024-08-15T13:26:39.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-01-09T12:33:02.000Z (about 1 month ago)
- Last Synced: 2025-01-09T13:45:57.252Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
_ _ _____ _ _ ___ __ __ ___ ____ _ ____
| | | | ____| | | | / _ \ \ \ / // _ \| _ \| | | _ \
| |_| | _| | | | | | | | | \ \ /\ / /| | | | |_) | | | | | |
| _ | |___| |___| |___| |_| | \ V V / | |_| | _ <| |___| |_| |
|_| |_|_____|_____|_____|\___/ \_/\_/ \___/|_| \_|_____|____/
```
# Figlet ConverterThis project converts text into a styled format using a custom `convert` function inspired by the `figlet` tool. The project includes two main files: `figlet.py` for the conversion logic and `main.py` for executing the conversion via command-line input.
## Files
- **figlet.py**: Contains the `convert` function that processes text into a styled format.
- **main.py**: A command-line interface for the `convert` function, allowing users to input text and receive styled output.
- **chars.txt**: A text file containing the character mapping used by `convert` to style the text.## Requirements
- Python 3.x
## Installation
1. Clone the repository or download the project files.
2. Ensure that `figlet.py`, `main.py`, and `chars.txt` are in the same directory.## Usage
To convert text using the command line:
```bash
python3 main.py "your text here"
```### Example
```bash
python3 main.py "hello world"
```This command will output the styled version of "Hello World" in your terminal.
## Customization
- **chars.txt**: Customize the `chars.txt` file to define how each character should be styled.
- **convert function**: Modify the `convert` function in `figlet.py` to change how text is processed and styled.