human readable是一个python库,用于将人类可读值转换为python值。

humanreadable的Python项目详细描述


Summary

human readable是一个python库,用于将人类可读值转换为python值。

PyPI package versionhttps://img.shields.io/pypi/pyversions/humanreadable.svgLinux CI statushttps://img.shields.io/appveyor/ci/thombashi/humanreadable/master.svg?label=Windows%20CITest coverage

Supported Unites

  • 时间(天、小时、分钟、秒…)
  • 位/秒

Usage

Basic usages

Sample Code:^{pr 1}$
Output:^{pr 2}$

Set default unit

Sample Code:^{pr 3}$
Output:^{pr 4}$

Units

Available units for ^{tt1}$
UnitAvailable specifiers (str)
days^{tt2}$/^{tt3}$/^{tt4}$
hours^{tt5}$/^{tt6}$/^{tt7}$
minutes^{tt8}$/^{tt9}$/^{tt10}$/^{tt11}$/^{tt12}$
seconds^{tt13}$/^{tt14}$/^{tt15}$/^{tt16}$/^{tt17}$
milliseconds^{tt18}$/^{tt19}$/^{tt20}$/^{tt21}$/^{tt22}$
microseconds^{tt23}$/^{tt24}$/^{tt25}$/^{tt26}$/^{tt27}$
Available units for ^{tt28}$
UnitAvailable specifiers (str)
bps^{tt29}$/^{tt30}$
Kbps^{tt31}$/^{tt32}$
Kibps^{tt33}$/^{tt34}$
Mbps^{tt35}$/^{tt36}$
Mibps^{tt37}$/^{tt38}$
Gbps^{tt39}$/^{tt40}$
Gibps^{tt41}$/^{tt42}$
Tbps^{tt43}$/^{tt44}$
Tibps^{tt45}$/^{tt46}$

Installation

Install from PyPI

pip install humanreadable

Install from PPA (for Ubuntu)

sudo add-apt-repository ppa:thombashi/ppa
sudo apt update
sudo apt install python3-humanreadable

Dependencies

python 2.7+或3.5+

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Java Hibernate@ManyToMany mapping只在一个方向上在数据库中添加记录   java将文件上载到tomcat服务器外部的文件夹   java将摄像头捕获的图像上传到服务器   java如何创建Rest API并为进程添加时间延迟?   springmodulesvalidation0中缺少java注释包。8a源文件   如何在java中打印SOAP头   Spring security中的java自定义消息,包括UserDetailsService实现和异常   java如何使用Htmlunit中的表单数据登录站点   web如何在WildFly上自动运行java文件   java如何从已经使用另一个方法传递的参数的方法中获取返回值?   java我在JFrame上有一个索引越界。setContentPane   java中的循环序列/系列打印   java maven 3 webapp没有要运行的测试吗?   java CORS不允许POST请求   java再次在派生类中的Jackson中添加字段,该字段在基类中被忽略   爪哇坑测试显示仆从由于超时而异常退出   java寻找第10001个素数   java jboss是否更改web应用程序上下文根?