Covert XML to tabular data according to YAML configuration
Project description
xmltotabular
Python library for converting XML to tabular data.
Current Status
This library is under periodic development. It is useful as it stands (see sul-cidr/patent_data_extractor for the de facto reference implementation), but there is still much to be done before a 1.0
release. Please get in touch if this project could be useful to you, and especially if you'd be interesting in contributing (I would welcome help with documentation and examples for a robust test suite, for example).
Development
With a working version of Python >= 3.6 and Pipenv:
-
Install dependencies.
(note that aPipfile.lock
is not included in this repository -- this library should work with any dependency versions which satisfy what is listed in thePipfile
andsetup.py
, and any necessary pinning should be specified in both)$ pipenv install --dev
-
Install pre-commit hooks.
$ pipenv run pre-commit install
Testing
-
Linting and formatting.
$ pipenv run pre-commit run --all-files
-
Tests
$ pipenv run pytest
-
Coverage
To collect coverage execution data, use:
$ pipenv run coverage run -m pytest
and to get a report on the data, use:
$ pipenv run coverage report -m
or
$ pipenv run coverage html
to create an HTML report in
htmlcov/
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file xmltotabular-0.9.1.tar.gz
.
File metadata
- Download URL: xmltotabular-0.9.1.tar.gz
- Upload date:
- Size: 17.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.8.1 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8248a7c943d83030a36febbe133b1f8c12ca9bc605468034b52345c57029637a |
|
MD5 | b62c1524e72c9c2aec38884e6ba76d29 |
|
BLAKE2b-256 | e6f0673e4beaa7dbd667ff1b6a228aa927a7439e97fb9636647e20f70876f6bc |
File details
Details for the file xmltotabular-0.9.1-py3-none-any.whl
.
File metadata
- Download URL: xmltotabular-0.9.1-py3-none-any.whl
- Upload date:
- Size: 21.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.8.1 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d3432b2f8f23bef3b3d9e17bcce2b42f6ccd69ada71d3cc4c585c473041b73b |
|
MD5 | 8dd386dda9d06c614794a74e135f6e38 |
|
BLAKE2b-256 | 3423e1cb372ec658f0c99860b3e394156e54ffea8cc9e01689c8faae108245fa |