Metadata-Version: 2.1
Name: dtmcli
Version: 0.1
Summary: python client for dtm
Home-page: https://github.com/yedf/dtmcli-py
Author: yedf
Author-email: 
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE

# dtmcli [![Version][version-badge]][version-link] ![MIT License][license-badge]


a client for distributed transaction manager [dtm](https://github.com/yedf/dtm)


`dtmcli` 是分布式事务管理器dtm的客户端sdk


### 使用方式

```
def tcc_trans(t):
    req = {"amount": 30}
    t.call_branch(req, svc + "/TransOutTry", svc + "/TransOutConfirm", svc + "/TransOutCancel")
    t.call_branch(req, svc + "/TransInTry", svc + "/TransInConfirm", svc + "/TransInCancel")
```


### 安装

```
$ pip install dtmcli
```


### License

[MIT](https://github.com/yedf/dtmcli/blob/master/LICENSE)


[version-badge]:   https://img.shields.io/badge/version-0.1-brightgreen.svg
[version-link]:    https://pypi.python.org/yedf/dtmcli-py/
[license-badge]:   https://img.shields.io/github/license/yedf/dtmcli-py.svg

