Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pyjats

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyjats

Quick pydantic based parser for parsing JATS xml from e.g. EuropePMC

  • 0.0.2
  • Source
  • PyPI
  • Socket score

Maintainers
1

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc