This could be a overloaded import(something,**kwargs)
If something is
a string that starts with "/rest/exports/kleio/" and a Kleio Server is attached then import is done from the Kleio server
a KleioFile or KleioImportedFile, import from kleio server
*a string import from file or url
a list of the above
a data frame that includes column xml_url and column path, and a parameter rows=[list of int],
get the path of the rows in the list and if they exist in the file system import from path if not and
a Kleio Server is attached import from the kleio server
# direct from url
xml_url = "https://raw.githubusercontent.com/time-link/timelink-py/main/tests/xml_data/b1685.xml"
db = TimelinkDatabase()
db.import(url)
# from Kleio server
valid = tlnb.kleio_server.translation_status(path='',recurse='yes',status='V')
tbnl.import_from_kleio(valid[0])
# url implies Kleio Server
kserver_url = "'/rest/exports/kleio/reference_sources/varia/Devedores.xml'"
tbml.import(server_url)
# from the file system:
file = "tests/xml_data/b1685.xml"
tbnl.import(file)
Add TimelinkDatabase.import(...)
This could be a overloaded import(something,**kwargs)
If something is
https://github.com/time-link/timelink-py/blob/6bdbb706e8dd83cfac66d11e0bc74e2bbc41b542/timelink/api/database.py#L659