Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Bits #27

Open
keyneston opened this issue Nov 5, 2015 · 1 comment
Open

Support for Bits #27

keyneston opened this issue Nov 5, 2015 · 1 comment

Comments

@keyneston
Copy link

Hey, humanize supports Bytes, but it would be quite nice if it also supported Bits.

The major difference is just in the capitalization. Specifically instead of 8MB it would be 8Mb.

@edigaryev
Copy link

Have you tried humanize.SI()?

The example below will return 1 Gb/s:

humanize.SI(1_000_000_000, "b/s")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants