Skip to main content

An OPML library for Python.

Project description

opyml

An OPML library for Python.

This is a largely identical "port" of the Rust crate.

Example

from opyml import OPML, Outline

# Create OPML documents from scratch.
document = OPML()
document.body.outlines.append(Outline(text="Example"))

# Convert documents to XML.
xml = document.to_xml()

# Parse OPML documents from XML.
document = OPML.from_xml(xml)

For complete examples check out the tests/ directory.

Development

  • Install dependencies with Poetry (poetry shell + poetry install).
  • Format code with black opyml tests.
  • Check types with mypy opyml.
  • Run tests and collect coverage with pytest --cov=opyml --cov-report html.
  • Generate documentation with pdoc opyml.

License

Dual-licensed with the Apache License, Version 2.0 and MIT license.

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

opyml-0.1.1.tar.gz (10.6 kB view hashes)

Uploaded Source

Built Distribution

opyml-0.1.1-py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 3

Supported by

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