Skip to content

Commit

Permalink
images
Browse files Browse the repository at this point in the history
  • Loading branch information
CrispenGari committed Feb 9, 2024
1 parent d71dae2 commit 11194a6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.11", "3.10", "3.9", "3.8"]
python-version: ["3.12", "3.11", "3.10", "3.9"]
steps:
- uses: actions/checkout@v4
- name: 🚀 Set up Python ${{ matrix.python-version }}
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ With `tabulato`, you can easily format your data into tables with specified head
- [Defaults](#defaults)
- [Types](#types)
- [Description](#description)
- [License](#license)

### Key features of tabulato include:

Expand Down Expand Up @@ -56,6 +57,8 @@ data = [
colorful_tabulate(headers=headers, data=data, colorful=True, bold_header=True)
```

The above function will result in the following table being created in the terminal.

```shell
+-------------+----------------+------------+---------------------+
| Name | Student Number | DOB | Email Address |
Expand All @@ -71,6 +74,10 @@ colorful_tabulate(headers=headers, data=data, colorful=True, bold_header=True)
+-------------+----------------+------------+---------------------+
```

The colorful table will look as follows:

<p align='center'><img src='/images/demo.jpg' alt='demo' width="400"/></p>

The `colorful_tabulate` is a useful function for visually enhancing tabulated data in terminal output by applying colors and styling.

#### Arguments
Expand Down Expand Up @@ -113,3 +120,7 @@ The `colorful_tabulate` function generates a tabulated representation of data wi
- `header_color` (optional, default=`"BLUE"`): The color of the header.
- `even_row_color` (optional, default=`"GREEN"`): The color of even-numbered rows.
- `odd_row_color` (optional, default=`"YELLOW"`): The color of odd-numbered rows.

### License

This project is licensed under the MIT License - see the [LICENSE](/LISENSE) file for details.
Binary file added images/demo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 11194a6

Please sign in to comment.