Skip to main content

A NewsML parsing library

Project description

pynewsml

A NewsML parsing library

Installation

pip install pynewsml

Usage

from pynewsml import NewsML

with open('path/to/newsml.xml', mode='r') as fp:
    xml_content = fp.read()

newsml = NewsML(xml_content)
news = newsml.news_items[0]

print(news.news_lines.headline)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pynewsml-1.4.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pynewsml-1.4.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file pynewsml-1.4.0.tar.gz.

File metadata

  • Download URL: pynewsml-1.4.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pynewsml-1.4.0.tar.gz
Algorithm Hash digest
SHA256 6bccfb22c00da03c2973e1fe3b4d6bcf60893675f3a97495b5941825d9b1add1
MD5 d29fa58cd28b6c2f911076780c4a700c
BLAKE2b-256 e2c1b545869e49c51d634e4cc56ec8eed377ec090b4fab63a7028746c2708431

See more details on using hashes here.

Provenance

The following attestation bundles were made for pynewsml-1.4.0.tar.gz:

Publisher: publish.yml on jcoelho93/pynewsml

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pynewsml-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: pynewsml-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pynewsml-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5cf2127841f23a832f9205e0f9d9c2807ca82880dce8f8b6d4d3dc93f4794d59
MD5 808dd400abf18646709c7323b2ae725b
BLAKE2b-256 1ce4360c04d27fa12d3c1cf7f9fb6b7c78caeef7f2466cdbaae85ddbfc8262dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for pynewsml-1.4.0-py3-none-any.whl:

Publisher: publish.yml on jcoelho93/pynewsml

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page