Suggestion: Add an entrypoint and/or scripts for command-line use
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by inspecting the existing naturalsize API and how the package currently exposes modules or entry points. Compare the requested naturalsize command and python -m humanize examples, including binary, format, and piped-input behavior; done means a documented command-line path supports the agreed scope.
Written by the indexing model from the issue text.
Description
Thank you for your great project!
Google always guides me to https://stackoverflow.com/a/15485265, which suggests humanize.naturalsize(). I'm ok to type in ipython, and copy & paste import humanize and humanize.naturalsize().
But it'd be more than great if this small task could be simplified in something like these ways.
$ naturalsize 8589934592
8.6 GB
$ naturalsize --binary 8589934592
8.0 GiB
$ echo 8589934592 | python -m humanize naturalsize --format "%.3f"
8.590 GB
There are tools such as numfmt, but pip install is easier for me as a Windows user. :)
I'd open a PR if I found some time for this. But I can't promise my contribution. So, I'm filing just an idea here.
- Dominant language
- Python
- Stars
- 757
- Forks
- 148
- Avg merge
- 6d 1h
- Merged PRs (30d)
- 12
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from python-humanize/humanize
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
python-humanize/humanize#379 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
python-humanize/humanize#366 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
python-humanize/humanize#356 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
python-humanize/humanize#277 · 1 comment ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
python-humanize/humanize#270 · 6 comments ·
All issues in python-humanize/humanize
Similar issues
-
Add: hunch Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
DiamondLightSource/dodal#2211 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
openml/openml-python#1749 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sipyourdrink-ltd/bernstein#6191 ·