Skip to main content

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.

Read more

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)

Metadata

Release files for hr-tddschn 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hr-tddschn 0.1.9
File Size Uploaded
hr-tddschn-0.1.9.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hr-tddschn 0.1.9
File Interpreter ABI Platform
hr_tddschn-0.1.9-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 8.8 kB

Release files / hr-tddschn-0.1.9.tar.gz

Download URL hr-tddschn-0.1.9.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d5256b0749735615964fdb1ae4b5b4463bd9c060cfbf9ce9fa50147a6a2522cf
BLAKE2b-256 checksum
How to use checksums
44a47ad64c9b1b2390cce232251e6608a57501344ef3578e351f5a07d0633792
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.2 Darwin/21.4.0

Release files / hr_tddschn-0.1.9-py2.py3-none-any.whl

Download URL hr_tddschn-0.1.9-py2.py3-none-any.whl
Size 4.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ad754fc959f10ab16dee016d14e943ae52ac7635ddf9b2696e0527c7c5d2e905
BLAKE2b-256 checksum
How to use checksums
50b233431bf2d411496161ef0ca8d40dc84385888057d4e8368f6bb0f3979ea3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.2 Darwin/21.4.0

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page