Skip to main content

Utility for creating framed text in the terminal

Project description

framed_text

framed_text is a Python library for creating framed text with customizable frames and colors.

Full documentation can be found on ReadTheDocs

Features

  • Display text output surrounded by a frame
  • Customize the frame with different colors
  • Optional title that can be colored and styled
  • Status: Print text with a status icon preceeding it
  • LabeledData: A string that consists of a label with different types of data following it
    • Both LabeledData and Status objects can be customized
  • A version of framed text, but just for a title (or divider)
  • Shorten text to fit on a single line
  • Display progress bars and spinners

Installation

framed_text can be installed from PyPI using pip:

pip install framed-text

Then import the necessary modules:

# Main classes. See documentation for more details
from framed_text import (
    FramedText,
    FramedHeader,
    LabeledData,
    Status,
    ShortenText,
    ProgressBar,
    Spinner
)

Additionally, the following objects are available to be imported:

  • framed_text.AnyLabeledData
  • framed_text.AnyStatus
  • framed_text.InvalidColorError
  • framed_text.BaseStatus

Quickstart

The Quick-Start Guide can be found on ReadTheDocs

Credits

Thank you to the following:

  • prompt_toolkit: Main inspiration for making FramedText as well as the source for the ASCII characters.
  • termcolor: Most of the coloring is done by this package. Huge thanks to the devs for this amazing package!
  • Sphinx: Used for building the documentation.
  • ReadTheDocs: Used for hosting the documentation.

License

Copyright (C) 2026  AstroLightz

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

framed_text-2026.6.4.19.15.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

framed_text-2026.6.4.19.15-py3-none-any.whl (40.3 kB view details)

Uploaded Python 3

File details

Details for the file framed_text-2026.6.4.19.15.tar.gz.

File metadata

  • Download URL: framed_text-2026.6.4.19.15.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for framed_text-2026.6.4.19.15.tar.gz
Algorithm Hash digest
SHA256 7f8607a818cf6f02d35e6d282dfa443af79049ced16c30d5950ac55960c20c9f
MD5 768d2e0e4cc5ce96d2f3a57f040b5b09
BLAKE2b-256 b8d69bfc09db5efda9496c0543bdf1c46f6f634d3c9b723a1e0679e68f99634d

See more details on using hashes here.

File details

Details for the file framed_text-2026.6.4.19.15-py3-none-any.whl.

File metadata

File hashes

Hashes for framed_text-2026.6.4.19.15-py3-none-any.whl
Algorithm Hash digest
SHA256 3bd18781dfa17d0a723b3a2675d22b905918c7646e2c7a22bf9af1b3a1c10930
MD5 69f4a2ebea26c11f933a84e53d80351e
BLAKE2b-256 afd405435d20c2d60773fa2a3f428e104951d7a14f409b8e5abf54a63e0a8aa4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page