Metadata-Version: 2.1
Name: twin-client-sdk
Version: 0.1.2
Summary: twin client sdk
Home-page: https://github.com/sxhxliang
Author: Shihua Liang
Author-email: sxhx.liang@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# twin client python-sdk

### install

pip3 install TwinClient



## demo


config = TwinClientConfig(
                    owner = "dtos",
                    tenantId=tenantId,
                    dtmsregistry=dtmsregistry,
                    dtmstwindef=dtmstwindef,
                    dtmstwin=dtmstwin
                )

twin_client = TwinClient(config)

- 查询 subtype
query = {
    "subType.type": "people_drug"
}
- "-created"    按created降序
- "created"     按created升序
res = twin_client.twin.where(**query).offset(0).limit(10).sort("-created").select()
print(res)



