Skip to content

module level tools, runnable from a CLI? #35

@timlnx

Description

@timlnx

For reference, the json library has json.tool to handle input streams. You can run it on a shell prompt to pretty print json

curl http://something.json | python -m json.tool

Wondering if there's anything useful bitmath could do like this?

$ python -m bitmath.best 1024
KiB(1)

^ this would actually simplify my own personal frequent use case where I get a number in bytes printed in one shell,and I can't quite tell how big it is. Usually I'll just open another shell, import bitmath and then print out Byte(some_number).best_prefix().

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions