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 and properly configured entry point so that hr is added to your $PATH after installation.
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_tddschn 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 python2.7+ or python3 (tested in 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
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
File details
Details for the file hr-tddschn-0.1.9.tar.gz.
File metadata
- Download URL: hr-tddschn-0.1.9.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.2 Darwin/21.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5256b0749735615964fdb1ae4b5b4463bd9c060cfbf9ce9fa50147a6a2522cf
|
|
| MD5 |
70292462d3a99db187965b93193e6c41
|
|
| BLAKE2b-256 |
44a47ad64c9b1b2390cce232251e6608a57501344ef3578e351f5a07d0633792
|
File details
Details for the file hr_tddschn-0.1.9-py2.py3-none-any.whl.
File metadata
- Download URL: hr_tddschn-0.1.9-py2.py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.2 Darwin/21.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad754fc959f10ab16dee016d14e943ae52ac7635ddf9b2696e0527c7c5d2e905
|
|
| MD5 |
444acc8899d97350454771cece9f9ca6
|
|
| BLAKE2b-256 |
50b233431bf2d411496161ef0ca8d40dc84385888057d4e8368f6bb0f3979ea3
|