Horizontal rule for your terminal - in python3!
Project description
hr-tddschn
Fork of hr.py, with python3 support.
The good old hr in python3.
Why fork?
Version 0.1 of the original hr.py
(the current latest version of hr
on PyPI) doesn't work with python3,
this project adds python3 support.
Intro
Horizontal rule for your terminal - in python3!
Tired of not finding things in your terminal because there's a lot of logs and garbage? Tired of destroying the Enter key by creating a "void zone" in your terminal so that you can see the error that you're trying to debug?
Use the old <hr />
tag, but in your terminal.
Inspiration
The original version of the hr script was implement in bash (https://github.com/LuRsT/hr), and I thought, "why not have a python version?". So here we are!
Install
$ pip install hr-tddschn
Or, if you only want to use it as a CLI app:
$ pipx install hr-tddschn
Then run it with hr
.
How to use it?
From the command-line:
$ hr
################################## # Till the end of your terminal window
$
$ hr '*'
********************************** # Till the end of your terminal window
$
You can also make "beautiful" ASCII patterns
$ hr - '#' -
----------------------------------
##################################
----------------------------------
$ hr '-#-' '-' '-#-'
-#--#--#--#--#--#--#--#--#--#--#--
----------------------------------
-#--#--#--#--#--#--#--#--#--#--#--
From another python script (it could happen, right?)
>>> from hr import hr
>>> hr()
################################## # Till the end of your terminal window
>>> hr('*')
********************************** # Till the end of your terminal window
>>> hr('-', '#', '-')
----------------------------------
##################################
----------------------------------
>>> hr('-#-', '-', '-#-')
-#--#--#--#--#--#--#--#--#--#--#--
----------------------------------
-#--#--#--#--#--#--#--#--#--#--#--
Requirements
The only requirement is python (tested in python 2.7 and python 3.10)
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
Built Distribution
Hashes for hr_tddschn-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8747e00686c91b043f5ac2a7e821b0da086c3e111ddc84bedfed7bde4b4a2431 |
|
MD5 | efe17be6c1394f03a95ca7afe19ee58c |
|
BLAKE2b-256 | e5e12db2314e4838fc8f37112d84918a9aaff335bc94ed58d34cc66c6e6d7693 |