python client for dtm
Project description
dtmcli
a client for distributed transaction manager 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dtmcli-0.1.tar.gz
(3.2 kB
view hashes)
Built Distribution
dtmcli-0.1-py3-none-any.whl
(3.7 kB
view hashes)