显示克罗地亚库纳人汇率的cli工具
hnbex-cli的Python项目详细描述
HNB汇率cli
==
显示克罗地亚国家银行(Croatian National Bank)的克罗地亚库纳(HRK)汇率。数据从http://hnbex.eu/获取。感谢'good code
<;http://goodcode.io/>;``提供此服务。
……图片::https://img.shields.io/badge/author-%40ihabunek-blue.svg?maxage=3600&;style=flat square
:目标:https://mastodon.social/@ihabunek
…图片::https://img.shields.io/github/license/ihabunek/hnbex-cli.svg?maxage=3600&;style=flat square
:目标:https://opensource.org/licenses/gpl-3.0
…图片::https://img.shields.io/pypi/v/hnbex-cli.svg?maxage=3600&;style=flat square
:目标:https://pypi.pypi.python.org/pypi/hnbex-cli
安装
>
<安装需要**python 3.3或更高版本。
>绘制图表需要[gnuplot](http://www.gnuplot.info/)。
>从apt包库
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~这对Debian,U有效Buntu和其他衍生产品。
回购协议使用My`keybase.io<;https://keybase.io/ihabunek>;``ukey.
代码块:
echo"deb http://bezdomni.net/packets/./";sudo tee/etc/apt/sources.list.d/bezomni.list
curhttps://keybbase.io/ihabunek/pgp_keys.asc/sudo apt key add-
>sudo apt update
>sudo apt update
>sudo apt update sudo apt instapython3 hnbex cli
>>>;从python包的python包索引
>>~~~~~~~~~~
巧妙地安装到虚拟环境中。代码块:
pip install hnbex cli
usage
----
commands:
*`` daily`-显示所有货币的每日汇率
*`` range`-显示给定日期范围内的单一货币汇率
*`` chart`-绘制单一货币的汇率图
*`` convert`-convert b在货币之间
每天
~~~~
显示给定日期所有货币的汇率(如果未给定,则日期默认为今天):
…代码块:
$hnbex Daily 2017-07-03
…代码块:
2017-07-03 HNB汇率
1 0.993132 0.996120 0.999108
huf 100 2.390306 2.397498 2.404690
日元100 5.783341 5.800743 5.81818145
挪威克朗1 0.772153 0.774476 0.776799
瑞典克朗1 0.764812 0.767113 0.769414
瑞士法郎1 6.756313 6.776643 6.796973
英镑1 8.410575 8.435883 8.461191
美元1 6.474949 6.494432 6.513915
欧元1 7.385326 7.407549 7.429772
印尼国家电力公司1 1.748834 1.754096 1.759358
范围
~~~
代码块:
HNBEX范围:2017-07-03 2017-06-20美元
…代码块:
2017-06-20至2017-07-03美元HNB汇率
2017-06-20 1 6.583721 6.603532 6.623343
2017-06-21 1 6.615156.635056 6.654961+0.48%
2017-06-26.628631 6.628631 6.648577 6.668577 6.668577 6.648577 6.648577 6.648577 6.668523 0.00%
2017-06-24 1 6.617416 6.617416 6.637328 6.637328 6.657240-0.17%
2017-06-25 1 6.06-25 1 6.617416 1 6.617416 6.617416 6.637416 6.628631 6.628631 6.648577 6.668577 6.668523 0.00%
2017-06-06-23 1 6 6.62868631 6.628631 6.628631 6 6.648577 6.648577 6 6 6 6 6.605447 6.625323 6.645199-0.18%
2017-06-28 1 6.560526 6.580267 6.600008-0.68%
2017-06-291 6.500769 6.520330 6.539891-0.91%
2017-06-30 1 6.470754 6.490225 6.509696-0.46%
2017-07-01 1 6.474949 6.494432 6.513915+0.06%
2017-07-02 1 6.474949 6.494432 6.513915 0.00%
2017-07-03 1 6.474949 6.494432 6.513915 0.00%
/>chart
~~~~~
此命令要求安装[gnuplot](http://www.gnuplot.info/)。
代码块:
HNBEX图表美元
…代码块:
6.42+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
+-+*+-+
6.38+-+x*x**x++
x**x*x**x*
6.36+-+***+-+
|*x*x**x*x x*x
6.34+-+***+-+
x
6.32+-+*+-+
6.3+-+*+-+
x
6.28+-+x*+-+
x*x**x****|
6.26+-+x****+-+
6.24+-+x****-+
*x*x**x+++
6.22++--++-+-+--X-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
09/21 09/28 10/05 10/12
日期
还支持图形图表:
。代码块:
hnbex图表美元——模板qt
,显示图表:
…图像:。/chart_qt.png
convert
~~~~~~~
hrk与其他货币之间的转换:
…代码块:
$hnbex转换150 hrk美元
…代码块:
150.0 hrk=23.82美元
使用2017-08-21定义的中间汇率1美元=6.296589 hrk
转换为hrk时,可以指定目标货币:
。代码块:
$hnbex转换500日元
…代码块:
500.0 jpy=28.85 hrk
代码块:
$hnbex转换500日元
…代码块:
<28.85
代码块:
$hnbex转换500日元-p 10
…代码块:
28.8487150000
==
显示克罗地亚国家银行(Croatian National Bank)的克罗地亚库纳(HRK)汇率。数据从http://hnbex.eu/获取。感谢'good code
<;http://goodcode.io/>;``提供此服务。
……图片::https://img.shields.io/badge/author-%40ihabunek-blue.svg?maxage=3600&;style=flat square
:目标:https://mastodon.social/@ihabunek
…图片::https://img.shields.io/github/license/ihabunek/hnbex-cli.svg?maxage=3600&;style=flat square
:目标:https://opensource.org/licenses/gpl-3.0
…图片::https://img.shields.io/pypi/v/hnbex-cli.svg?maxage=3600&;style=flat square
:目标:https://pypi.pypi.python.org/pypi/hnbex-cli
安装
>
<安装需要**python 3.3或更高版本。
>绘制图表需要[gnuplot](http://www.gnuplot.info/)。
>从apt包库
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~这对Debian,U有效Buntu和其他衍生产品。
回购协议使用My`keybase.io<;https://keybase.io/ihabunek>;``ukey.
代码块:
echo"deb http://bezdomni.net/packets/./";sudo tee/etc/apt/sources.list.d/bezomni.list
curhttps://keybbase.io/ihabunek/pgp_keys.asc/sudo apt key add-
>sudo apt update
>sudo apt update
>sudo apt update sudo apt instapython3 hnbex cli
>>>;从python包的python包索引
>>~~~~~~~~~~
巧妙地安装到虚拟环境中。代码块:
pip install hnbex cli
usage
----
commands:
*`` daily`-显示所有货币的每日汇率
*`` range`-显示给定日期范围内的单一货币汇率
*`` chart`-绘制单一货币的汇率图
*`` convert`-convert b在货币之间
每天
~~~~
显示给定日期所有货币的汇率(如果未给定,则日期默认为今天):
…代码块:
$hnbex Daily 2017-07-03
…代码块:
2017-07-03 HNB汇率
1 0.993132 0.996120 0.999108
huf 100 2.390306 2.397498 2.404690
日元100 5.783341 5.800743 5.81818145
挪威克朗1 0.772153 0.774476 0.776799
瑞典克朗1 0.764812 0.767113 0.769414
瑞士法郎1 6.756313 6.776643 6.796973
英镑1 8.410575 8.435883 8.461191
美元1 6.474949 6.494432 6.513915
欧元1 7.385326 7.407549 7.429772
印尼国家电力公司1 1.748834 1.754096 1.759358
范围
~~~
代码块:
HNBEX范围:2017-07-03 2017-06-20美元
…代码块:
2017-06-20至2017-07-03美元HNB汇率
2017-06-20 1 6.583721 6.603532 6.623343
2017-06-21 1 6.615156.635056 6.654961+0.48%
2017-06-26.628631 6.628631 6.648577 6.668577 6.668577 6.648577 6.648577 6.648577 6.668523 0.00%
2017-06-24 1 6.617416 6.617416 6.637328 6.637328 6.657240-0.17%
2017-06-25 1 6.06-25 1 6.617416 1 6.617416 6.617416 6.637416 6.628631 6.628631 6.648577 6.668577 6.668523 0.00%
2017-06-06-23 1 6 6.62868631 6.628631 6.628631 6 6.648577 6.648577 6 6 6 6 6.605447 6.625323 6.645199-0.18%
2017-06-28 1 6.560526 6.580267 6.600008-0.68%
2017-06-291 6.500769 6.520330 6.539891-0.91%
2017-06-30 1 6.470754 6.490225 6.509696-0.46%
2017-07-01 1 6.474949 6.494432 6.513915+0.06%
2017-07-02 1 6.474949 6.494432 6.513915 0.00%
2017-07-03 1 6.474949 6.494432 6.513915 0.00%
/>chart
~~~~~
此命令要求安装[gnuplot](http://www.gnuplot.info/)。
代码块:
HNBEX图表美元
…代码块:
6.42+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
+-+*+-+
6.38+-+x*x**x++
x**x*x**x*
6.36+-+***+-+
|*x*x**x*x x*x
6.34+-+***+-+
x
6.32+-+*+-+
6.3+-+*+-+
x
6.28+-+x*+-+
x*x**x****|
6.26+-+x****+-+
6.24+-+x****-+
*x*x**x+++
6.22++--++-+-+--X-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
09/21 09/28 10/05 10/12
日期
还支持图形图表:
。代码块:
hnbex图表美元——模板qt
,显示图表:
…图像:。/chart_qt.png
convert
~~~~~~~
hrk与其他货币之间的转换:
…代码块:
$hnbex转换150 hrk美元
…代码块:
150.0 hrk=23.82美元
使用2017-08-21定义的中间汇率1美元=6.296589 hrk
转换为hrk时,可以指定目标货币:
。代码块:
$hnbex转换500日元
…代码块:
500.0 jpy=28.85 hrk
代码块:
$hnbex转换500日元
…代码块:
<28.85
代码块:
$hnbex转换500日元-p 10
…代码块:
28.8487150000