housepaint
What is it?
housepaint is a demonstration library for a talk on publishing Python packages. A silly little thing with limited
utility, it allows you to recolor an entire function's worth of text with beautiful, simple decorators.
Requirements
housepaint requires Python >= 3.6.
As of version 0.0.1 it has no dependencies outside the Python standard library, except for pytest in dev.
Installation
Via poetry:
poetry add housepaint
Via pip:
pip install housepaint
Usage
from housepaint import BG, FG, paint, Style
@paint(foreground=FG.GREEN, background=BG.BLACK, styles=Style.BOLD)
def success_example() -> None:
print("This")
print("Should")
print("All")
print("Be")
print("Green")
success_example()
Will result in all of the print output of the function success_example being in bold, green font on a black background.
Limitations
This library relies on ANSI escape codes to recolour text. If your printed text has ANSI codes there's a good chance it won't work out well for you.
Can I use this in my project?
Yes, please do! The code is all open source and BSD-3-Clause licensed.
Metadata
Release files for housepaint 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| housepaint-0.0.10.tar.gz | 3.7 kB | Without provenance | Details for housepaint-0.0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| housepaint-0.0.10-py3-none-any.whl | Python 3 | none | any | Details for housepaint-0.0.10-py3-none-any.whl |
Total release size: 8.1 kB
Release files / housepaint-0.0.10.tar.gz
| Download URL | housepaint-0.0.10.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c06f2d9735649ec0386188c2638dfc2663e5a14bd55c70328fad6f8b12b92671
|
|
BLAKE2b-256 checksum How to use checksums |
5194317c0fcbf8fb37f41d0fd909c858ab0c61f6b89deeb010e28d53cb667a1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.8.2 Linux/5.4.0-1046-azure
|
Release files / housepaint-0.0.10-py3-none-any.whl
| Download URL | housepaint-0.0.10-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86d1b3373256f3a3c1eb0f8c0ab12e7d68dced5f4890fe33474fbfd6957bdacc
|
|
BLAKE2b-256 checksum How to use checksums |
f43afde5f6a895a6c46bcefb8ff4a24880e2072ddf4a8cd11617b76492096057
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.8.2 Linux/5.4.0-1046-azure
|
Security for housepaint 0.0.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.