充气可以让你计算出不同年份的钱值多少钱
inflate的Python项目详细描述
:money_with_wings:充气
inflate是一个python构建的命令行界面,它可以让您快速计算通货膨胀是如何影响一笔钱的直观和视觉上令人满意的包。
安装
运行pip install inflate
。通过运行inflate --version
验证是否安装了最新版本。
用法
>>> inflate [OPTIONS] START END [AMOUNT][AMOUNT] in [START] is worth [INFLATED AMOUNT] in [END]([INCLUSIVE/EXCLUSIVE])
选项是
-c, --country TEXT Country [either US/UK], default is UK
-i, --inclusive Include ending year, default no
-a, --average Show average annualised inflation, default no
--version Show the version and exit.
--help Show this message and exit.
示例:
>>> inflate -c US -i 1998199950$50.0 in 1998 is worth $51.51 in 1999(inclusive). >>> inflate -a 1998200050 £50.0 in 1998 is worth £51.46 in 2000(exclusive). The average inflation across this period was 1.46%.
当前功能
- [X]能够“逆向”工作,也就是说,如果你想知道2018年10美元在2000年值多少钱,你可以通过
inflate -c US 2018 2000 10
- [x]在PyPI上打包并发布
未来功能/作品
- []添加更详细的分析视图,显示整个时间段的平均通胀率。
- []充实测试模块