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.3.1.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.3.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pynewsml-1.3.1.tar.gz
Algorithm Hash digest
SHA256 098952323b3f4a62a1073578399044a376abe54ffcb6f47f956bb383f7f5165b
MD5 8df597d46799bebbe7ee462cd26821d9
BLAKE2b-256 26db29933d916fe60dbdac0bb18e4ea6a35e53fc190ec989b63acecd4c6d011d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pynewsml-1.3.1-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.9

File hashes

Hashes for pynewsml-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0caabc879d04923d7c1792c55d2ec7dc7c6f70d77a608de67fb7f58d18c5634f
MD5 deece5238c7fcfb52b112623604a41e4
BLAKE2b-256 8e268c5e86c32fa99f82729a19d44ce180c9e43733dae4b0f5ac540a0ba8d617

See more details on using hashes here.

Provenance

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