Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Signed-off-by: NxPKG <[email protected]>
  • Loading branch information
NxPKG authored Feb 10, 2024
1 parent 27da523 commit b5b980d
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions scriptit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
"""
Scriptit: A collection of tools for writing interactive terminal applications.
"""
from scriptit import color, shape, size, RefreshPrinter

__version__ = "1.0.0"
# Example usage of color module
print(color.colorize("Hello, Scriptit!", color.Colors.green))

# Import submodules
from . import color
from . import shape
from . import size
# Example usage of shape module
shape.draw_rectangle(10, 5)

# Public API
__all__ = ["color", "shape", "size"]
# Example usage of size module
print(size.to_hr(1024))

# Example usage of RefreshPrinter
p = RefreshPrinter()
for i in range(100):
p.add("Dummy Report:")
p.add(" iteration: " + str(i))
p.refresh()
time.sleep(1)

0 comments on commit b5b980d

Please sign in to comment.