Skip to content

web-slate/stylepy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stylepy

PyPI version

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")

Releases

No releases published

Packages

No packages published

Languages