Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

colours #59

Closed
tevpg opened this issue May 11, 2023 · 1 comment
Closed

colours #59

tevpg opened this issue May 11, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@tevpg
Copy link
Collaborator

tevpg commented May 11, 2023

Use colours to increase clarity & visual appeal

What library?

Python supports text colour on the terminal. Based on the JH injunction against installing additional py packages, the best option appears to be colorama which is part of base Python

Usage is pretty straightforward:

import colorama
print( colorama.Fore.YELLOW, colorama.Back.BLUE, "Here is some text", colorama.Style.RESET_ALL )

Style guide

Yah, this is important! If we use colours inconsistently, then we create an effect that's unappealing at best and nausea-inducing at worst. Style guide started here in the wiki.

@tevpg
Copy link
Collaborator Author

tevpg commented May 11, 2023

I will prototype this in current work on additional summary statistics, or possibly accounting audit.

tevpg added a commit that referenced this issue May 12, 2023
This implements colours using colorama (per issue #59), though more to do.  However it also makes tweaks through much of the code as part of that and also fixes a bug issue #60 so though it best to get it into main before any more branches.
@ironwoodcall ironwoodcall added the enhancement New feature or request label May 12, 2023
@tevpg tevpg self-assigned this May 12, 2023
@tevpg tevpg closed this as completed May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants