Skip to content
This repository has been archived by the owner on Oct 31, 2020. It is now read-only.
/ boxcli Public archive

Create simple and beautiful boxes in the terminal with ease.

License

Notifications You must be signed in to change notification settings

NightShade256/boxcli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boxcli

Documentation Status

Create simple and beautiful boxes in the terminal.

Installation

The preferred method of installation is through pip.

Just execute, pip install -U boxcli

That will install boxcli, or if you already have boxcli it will update it to the latest version, pretty neat right?

Changelog

2.0.0

  1. Remove redudant exception from codebase, DifferentLengthError.

  2. Use rich for cross-platform colour support.

  3. Allow custom border colours with the RGB class.

Usage

You can use boxcli in your application very easily. Here is an example:

import boxcli

# Create a box factory.
factory = boxcli.BoxFactory(
    20,
    5,
    boxcli.BoxStyles.ROUND,
    colour=boxcli.RGB((255, 255, 0)),
)

# Create a box.
box = factory.get_box("This is the title of the box", "This is the content of the box")

# Print it! as easy as that.
print(box)

With the 1.4.0 update of boxcli, you can now specify the colour of the box border too.

In-depth documentation can be found here.

Features

  1. There are 8 different inbuilt box styles.

  2. Custom box styles support.

  3. Colour (with option for custom RGB colours) support for box border.

  4. Support for non-latin alphabet characters.

  5. Specify title positions and content aligment according to your need.

Contributing

Pull requests are welcome!

Acknowledgements

This package is a port of the package box-cli-maker written by Delta456 in Go.

License

boxcli is licensed under the MIT license.

About

Create simple and beautiful boxes in the terminal with ease.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages