Python API to Talk to a Zim Database
Installation After the full ZIM installation, copy the file zimapi.py from the ZIM directory to wherever directory is needed to run Python. Globals No globals available for Python at this point. Constructors import zimapi import os zim = zimapi.Zimapi() zim = zim.connect(dbname=”database name”[, host=”host address”][,port=port number][, user=”ZIM”][, password = “”]) print(zim.state) zim.close() Alternatively: import zimapi…
Leia mais