OPML library for Python. https://pypi.org/project/opyml/
Go to file
Bauke 7cd53f56ad
Update authors email.
2022-09-26 00:12:28 +02:00
opyml Version 0.1.2! 2022-09-25 23:44:31 +02:00
tests Initial commit! 🌠 2021-10-25 14:54:11 +02:00
.gitignore Initial commit! 🌠 2021-10-25 14:54:11 +02:00
LICENSE-Apache Initial commit! 🌠 2021-10-25 14:54:11 +02:00
LICENSE-MIT Update license year. 2022-09-25 23:39:33 +02:00
README.md Rewrite readme. 2022-09-25 23:44:09 +02:00
poetry.lock Update dependencies and Poetry config. 2022-09-25 23:40:57 +02:00
pyproject.toml Update authors email. 2022-09-26 00:12:28 +02:00

README.md

OPyML 🐍

OPML library for Python.

Features

  • Supports all OPML versions.
  • Minimal use of dependencies.
  • 100% typed and tested.

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)

Development

  • Install dependencies with 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.

Feedback

Found a problem or want to request a new feature? Email helllo@holllo.org and I'll see what I can do for you.

License

Distributed under the Apache License 2.0 and MIT licenses, see LICENSE-Apache and LICENSE-MIT for more information.