【文件属性】:
文件名称:dawa-sdk:python中的Dawa API包装器
文件大小:11KB
文件格式:ZIP
更新时间:2021-04-05 04:45:56
Python
达瓦-SDK
===================
Python-Dawa API
dawa-sdk是dawa api的简单客户端。 它使用[Dawa Web API]( 。它主要用于数据复制,但稍后将包括搜索。
安装
pip install dawa-sdk
使用
from dawa import API
api = API ()
复写
def replicate ():
# Due to the amount of data on some endpoint, this returns a generator
def txid ():
# Returns an integer
用法
# Get current txid and store somewhere
txid = api . txid ()
# Get initial replication
vejs
【文件预览】:
dawa-sdk-master
----setup.py(954B)
----.gitignore(1KB)
----.pytest_cache()
--------v()
----requirements.txt(30B)
----LICENSE(0B)
----setup.cfg(61B)
----dawa()
--------enums.py(2KB)
--------__init__.py(47B)
--------api.py(4KB)
--------endpoints.py(9KB)
--------exceptions.py(561B)
----README.md(1KB)
----.idea()
--------.gitignore(47B)
--------dawa-sdk.iml(597B)
--------misc.xml(256B)
--------vcs.xml(167B)
--------modules.xml(268B)
----tests()
--------test_kommune.py(404B)
--------__init__.py(0B)
--------test_vejstykke.py(395B)
--------test_txid.py(122B)
--------test_postnummer.py(412B)