Skip to main content

Project Description

spiffyline is a terminal utility package that provides formatting, coloring to terminal output via abstraction of ANSI SGR codes.

Features:

  • Abstraction of ANSI SGR codes for ease of use
  • Predefined colors for quick formatting
  • Theme class to combine SGR codes to reuse
  • Utility methods to make adding formatting and color simple and concise

Ussage:

from spiffyline.theme import Theme
from spiffyline.logger import Logger

# Theme with bold and red text
my_theme = Theme.BOLD + Theme.fg_color( 230, 0, 0 )

print(  my_theme + "Hello World!" + Theme.RESET )

# One can also use the Logger class for more concise code

l = Logger()
l.log( "Hello World!", my_theme )

# Or to record certain logging events

l.log( "Error", my_theme, flags=[ "error", ] )
print( l.events[ "error" ] ) # => 1

Please download the API Documentation from GitHub

Release files for spiffyline 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spiffyline 1.0
File Size Uploaded
spiffyline-1.0.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spiffyline 1.0
File Interpreter ABI Platform
spiffyline-1.0-py3-none-any.whl Python 3 none any Details

Total release size:9.1 kB

Release files / spiffyline-1.0.tar.gz

Download URL spiffyline-1.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f8f048ce02ff646cb339c9d2369a1d641937028e107ef17f4bf28ad66982e60e
BLAKE2b-256 checksum
How to use checksums
6e08e091b77f258db0b69acdc0f557a83376b903a85de8523256fda1c55a49c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.2

Release files / spiffyline-1.0-py3-none-any.whl

Download URL spiffyline-1.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
93ea08dfcca4ca18a48950ca31a238dd41c6b123003c8dcd059aaa3f8bdd8a0e
BLAKE2b-256 checksum
How to use checksums
fc961822b276cfda35c18c5115999febf9aa77f6fe6ffb893e2e309220879369
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.2

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page