python-humanize / python-humanize/humanize
Suggestion: Add an entrypoint and/or scripts for command-line use
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 756
- フォーク
- 148
- 平均マージ
- 6日 1時間
- マージ済み PR(30日)
- 12
説明
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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、既存の naturalsize API と、パッケージが現在どのようにモジュールやエントリーポイントを公開しているかを確認します。要求された naturalsize コマンドと python -m humanize の例を比較し、binary、format、piped-input の動作も確認します。完了とは、合意した範囲をサポートする、文書化されたコマンドラインの経路があることを意味します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- cli
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100