Quick pydantic based parser for parsing JATS xml from e.g. EuropePMC
Project description
PyJATS
This is a quick and dirty python tool to deserialise JATS xml into something more useable inside python.
It ain't fast, and probably ain't pretty, but it gets text out of the XML and for now that's enough.
To use it:
from pyjats.parser import parse_xml
article_sections = parse_xml(file_path)
This will only work with a file object because reasons, you should wrap a string (e.g. one you got from an xml request to the EuropePMC API) in a io.StringIO to have it work.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyjats-0.0.2.tar.gz.
File metadata
- Download URL: pyjats-0.0.2.tar.gz
- Upload date:
- Size: 169.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
361bf2fcba56ee1a47eef270b9f6f93991254c18baeb024a8466707b446756f3
|
|
| MD5 |
f71fea749935d721a93f1bc40be088de
|
|
| BLAKE2b-256 |
facf211316d6acb84cd57a086120ecb8d2c87257b241d183128ee6686bdc0389
|
File details
Details for the file pyjats-0.0.2-py3-none-any.whl.
File metadata
- Download URL: pyjats-0.0.2-py3-none-any.whl
- Upload date:
- Size: 169.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0faf88dbe3fd0878959a6c2388e6cc1e5dbdc625f1f165ce333bd31922414552
|
|
| MD5 |
1eb61a14f3836e87f5a96111b85af6bf
|
|
| BLAKE2b-256 |
17ed1e1e8d065cd0520eb8e985992e8a9b15a22fdf9fe11acdaaad9440a2ef12
|