Current collected state Current
Observed since 20 Oct, 18:05 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Utility functions to serialize xml from object
python library to parse BaseRowClient of acdh-baserow-pyutils or any array of objects.
python -m venv envpip install acdh_obj2xml_pyutils (not yet published)pip install acdh_baserow_pyutils (not yet published)run.pyfrom acdh_obj2xml_pyutils import ObjectToXml
br_input = [{"id": "test1", "filename": "test1"},{"id": "test2", "filename": "test2"}]
tei = ObjectToXml(br_input=br_input)
output = [x for x in tei.make_xml(save=True)]
print(output)
with BaseRowClient
from acdh_obj2xml_pyutils import ObjectToXml
from acdh_baserow_pyutils import BaseRowClient
br_client = BaseRowClient(br_base_url="add url", br_table_id='add id', br_token='add token')
br_input = [x for x in br_client.yield_rows()]
tei = ObjectToXml(br_input=br_input)
output = [x for x in tei.make_xml(save=True)]
print(output)
both versions will create an 'out' directory containing xml files. Important Note! To create filenames the data input must contain a variable with filennames. Default variable is called 'filename' but can be customized by providing an argument to class ObjectToXml().
data input as array of objectsdefault out as stringvariable for filenames as stringpath for jinja2 templateDownload counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.7 | 28 Jun 2024 | 2 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 18:05 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:bdde5bee994fb6dd6525ade0240c274fc3b5d16bdd0c0e8ba919de67b531a5cd