查看货币汇率的cli应用程序。

exch的Python项目详细描述


#**`exch`**

![特拉维斯CI稳定性徽章](https://travis-ci.org/anshulc95/exch.svg?分支=主)
![Python版本支持的徽章](https://img.shields.io/pypi/pyversions/exch.svg)
![当前生成标记的代码覆盖率](https://codecov.io/gh/anshulc95/exch/branch/master/graph/badge.svg)
[![PYPI版的应用程序徽章](https://img.shields.io/pypi/v/exch.svg)(https://pypi.pypython.org/pypi/exch)



>一个从命令行直接查看货币汇率的应用程序。


功能:
*离线支持
*default curreny
*列出可用货币




*安装
````
>$pip
是的install exch
```

## basic usage

```
$ exch -a 99 -b USD -t INR
99.0 USD = 6372.61 INR

$ exch --amount 199 --base EUR --target JPY
199.0 EUR = 25613.29 JPY
```


## Commands
|Short|Long|Description|Example|
|---|---|---|---|
|`-t`|`--target`|Currency you're converting to.|`exch -t INR`|
|`-b`|`--base`|Currency you're converting from.|`exch -b EUR`|
|`-a`|`--amount`|Amount of money to convert|`exch -a 99`|
|`-st`|`--set_target`|Set the new tagert currency|`exch -t CAD -st`|
|`-sb`|`--set_base`|Set the new tagert currency|`exch -b USD -sb`|
||`--help`|Show help message.|`exch --help`|
|`currencies`||List the Currencies that are available.|`exch currencies`|
|`sync`||Get the latest exchange rates for local use|`exch sync`|

## Advance usage

### Default amount is 1

```
$ exch -b USD -t PHP
1.0 USD = 51.23 PHP
```

### Default currencies

When no base or target鉴于,该程序采用默认货币。
````
$exch
1.0美元=64.02 inr
````


/>br/>br/>br/>br/>`-sb`为基本目标,`-st`为目标目标,将使用的货币设为默认值,`-sb`为基本目标,`-st`为目标目标,`
````
``````
`$exch-A 99-B欧元-T NZD-B欧元-T NZD-sb-st
99.0欧元=168.00新西兰元


<$exch
1.0欧元
1.0欧元
语言
*[python3](https://www.python.org/)

*[使用的库:
*[单击](http://click.pocoo.org/6/)-用于生成命令行界面
*[请求](http://docs.python-requests.org/en/master/)-用于api调用

请参阅[contribution.md](contribution.md)

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

推荐PyPI第三方库


热门话题
java如何在数据库中插入行时自动发送电子邮件?   从进程输出读取的Java问题   java质疑StyledDocument和JTextPane之间的关系,以及接口的正确使用   java错误getPlayer(args[0]);   java如何使Spring引导在重新打包的WAR中包含清单文件?   Java中的除法与模   java使用2d数组和JfreeChart制作散点图   java扩展SonarQube FindBugs插件和自定义FindBugs插件   javaspring:hibernate+ehcache   具有不正确的equals和HashCode实现的java HashMap   java Jaspersoft报告网。旧金山。jasperreports。发动机例外:net。旧金山。jasperreports。发动机填满JRepressionEvalException:计算表达式时出错   java如果输入与其变量不匹配,如何添加错误   在java中使用简单数组[]实现队列   无法启动上下文路径/hsx上的java FAIL应用程序