Format CLI output like HTML.
Project description
stylepy
stylepy is a Python module that provides utilities for formatting text in various styles and complexities.
Installation
You can install stylepy via pip:
pip install stylepy
Usage Examples for stylepy Module
Headings
from stylepy import h1, h2, h3, h4, h5, h6
h1("Heading 1")
h2("Heading 2")
h3("Heading 3")
h4("Heading 4")
h5("Heading 5")
h6("Heading 6")
Listings
from stylepy import ordered_list, bullet_list
items = ["Item 1", "Item 2", "Item 3"]
ordered_list(items)
bullet_list(items)
Blockquote
from stylepy import blockquote
items = ["Quote 1", "Quote 2", "Quote 3"]
blockquote(items)
Span
from stylepy import span
span("This text is bold")
Pretty JSON
from stylepy import pretty_json
data = {"key": "value"}
pretty_json(data)
Tabular List
from stylepy import tabular_list
data = [
("Header 1", "Header 2"),
("Value 1", "Value 2"),
("Value 3", "Value 4")
]
tabular_list(data)
Time Complexity
from stylepy import timeComplexity
timeComplexity("O(n^2)", "Worst-case time complexity")
Space Complexity
from stylepy import spaceComplexity
spaceComplexity("O(n)", "Space complexity")
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
stylepy-0.8.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
stylepy-0.8-py3-none-any.whl
(5.1 kB
view details)
File details
Details for the file stylepy-0.8.tar.gz.
File metadata
- Download URL: stylepy-0.8.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0c836adf35e9eedcd2bbeaa82c53fe090ed72a4c9fd6d0efb862be458fa2293
|
|
| MD5 |
52109a1d99e69915a5a0522d68f667ca
|
|
| BLAKE2b-256 |
c2364f8b6cd02150f4f6fc43daf113c2b332a85cf1c00a16a1ab1a156c6d870c
|
File details
Details for the file stylepy-0.8-py3-none-any.whl.
File metadata
- Download URL: stylepy-0.8-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7240ea806db5bb63c57a8894cc89a83644152689b805eb20e59340c93b56a4ea
|
|
| MD5 |
415824cc5f8ba23119eddb733d1bf1c3
|
|
| BLAKE2b-256 |
bccf9790be486137c7f5dd62c65276c03ad6e89160a04540c5d668837bcb2264
|