Percentages and ratios
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
Research direction
Start by comparing the proposed ratio and percent API with precisedelta's precision customization. Verify ratio and percent inputs, truncation, optional decimal precision, and the requested percent-string formatting; completion should include coverage in the project's existing tests.
Written by the indexing model from the issue text.
Description
Hello, thanks a lot for this great package !
If I'm not mistaken there is no feature yet to humanize a ratio (between 0 and 1) or a percentage (between 0-100).
It could be a great addition ! It can be just one function to handle both, with two possible inputs (ratio= or percent=). The outcome would in both cases, be a truncated percent string with optional decimal coma up to a given precision, as in 12,5%. Customization of precision with a number of decimal could be similar to precisedelta's precision customization with the units.
- 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 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
python-humanize/humanize#270 · 6 comments ·
-
help wanted
Difficulty 4/5 3-5 days Newbie friendliness 35/100
python-humanize/humanize#263 · 3 reactions ·
All issues in python-humanize/humanize
Similar issues
-
triage/confirmed
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
agentscope-ai/agentscope#2775 ·
-
comp/desktop P3 type/bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
NousResearch/hermes-agent#118866 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100