https://github.com/zeionara/appall
Tool for horizontally juxtaposing text in terminal
https://github.com/zeionara/appall
Last synced: 3 months ago
JSON representation
Tool for horizontally juxtaposing text in terminal
- Host: GitHub
- URL: https://github.com/zeionara/appall
- Owner: zeionara
- License: apache-2.0
- Created: 2022-12-07T17:31:24.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T21:10:13.000Z (over 2 years ago)
- Last Synced: 2025-02-02T15:16:35.408Z (4 months ago)
- Language: Python
- Size: 88.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Appall 😱
![]()
**a**bridged **p**retty **p**rinting **a**pp for **l**ong **l**ine **l**ogging a.k.a one **app** to log'em **all**
This tiny utility allows you to **horizontally** juxtapose some text in terminal
## Usage
The tool can be used the following way (see `examples` folder):
```py
from appall import AppallingLoggerlogger = AppallingLogger()
logger.log("foo")
logger.log("qux")
logger.loop()logger.log("bar")
logger.log("quux")logger.log("baz")
logger.log("quuz")logger.print(column_width = 10)
```This example produces the following output:
```sh
foo bar baz
qux quux quuz
```## Installation
Install the program using this command:
```sh
pip install appall
```Or clone the repo and add path to the `appall` folder at the end of your `PYTHONPATH`. In this case `environment.yml` file will be useful for creating an environment. This can be done using the following command:
```sh
conda env create -f environment.yml
```## Testing
Test the tool using following command:
```sh
python -m unittest discover test
```