|
6 months ago | |
---|---|---|
opyml | 6 months ago | |
tests | 6 months ago | |
.gitignore | 6 months ago | |
LICENSE-Apache | 6 months ago | |
LICENSE-MIT | 6 months ago | |
README.md | 6 months ago | |
poetry.lock | 6 months ago | |
pyproject.toml | 6 months ago |
An OPML library for Python.
This is a largely identical “port” of the Rust crate.
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.
poetry shell
+ poetry install
).black opyml tests
.mypy opyml
.pytest --cov=opyml --cov-report html
.pdoc opyml
.Dual-licensed with the Apache License, Version 2.0 and MIT license.