acdh-obj2xml-pyutils
python library to parse BaseRowClient of acdh-baserow-pyutils or any array of objects.
HowTo developer
- create python environment
python -m venv env - install
pip install acdh_obj2xml_pyutils(not yet published) - install
pip install acdh_baserow_pyutils(not yet published) - create python file e.g.
run.py
add code
from 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().
Arguments
- br_input
data input as array of objects - save_dir
default out as string - filename
variable for filenames as string - template_path
path for jinja2 template
Metadata
Release files for acdh-obj2xml-pyutils 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| acdh_obj2xml_pyutils-0.0.7.tar.gz | 4.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| acdh_obj2xml_pyutils-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 kB
Release files / acdh_obj2xml_pyutils-0.0.7.tar.gz
| Download URL | acdh_obj2xml_pyutils-0.0.7.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae1e218493d630d8a05fc1be5b7f15d0479f32b9fc4550dbfa0d0e6c815cdf5a
|
|
BLAKE2b-256 checksum How to use checksums |
2e3f6c68f839482701ea034d8bf915fcdb82d62bad082d55f638aa20f2e28b44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / acdh_obj2xml_pyutils-0.0.7-py3-none-any.whl
| Download URL | acdh_obj2xml_pyutils-0.0.7-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0ff1ef56c8ea9e4c8c0fe4278672354eb246e9043c812edd3ea568e0d7f0915
|
|
BLAKE2b-256 checksum How to use checksums |
89ae7aabff3ce1f32a067acb408267fbb5631d189ef5da3412daee03ac7aedac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for acdh-obj2xml-pyutils 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.