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.2.0.tar.gz (2.4 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.2.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pynewsml-1.2.0.tar.gz
Algorithm Hash digest
SHA256 b973d6e3a72e06045557cf26e4d084228111b375036a6f88b3bfeb725b86c0c3
MD5 babb8b3f127ec307018ba7be2e6073f6
BLAKE2b-256 2a03b45334db645e002961d7ddb5cfe27d59c4310608dd2e0f84fd74d05f0097

See more details on using hashes here.

Provenance

The following attestation bundles were made for pynewsml-1.2.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.2.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for pynewsml-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb4aa6be8f294eb5b26df9115216ef0f2984620995f69e05004a51d79b0e6025
MD5 a6e91d91999110c00ee4cd72381ede03
BLAKE2b-256 cbcbdd94fe755c0aad47017baee90b12b86d5069a0f2922817914aba04491b42

See more details on using hashes here.

Provenance

The following attestation bundles were made for pynewsml-1.2.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