OPML library for Python. https://pypi.org/project/opyml/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Bauke 8fb985923f
Add a link to the examples directory.
2 months ago
examples Add a CSV to OPML example. 2 months ago
opyml Version 0.1.2! 2 months ago
tests Initial commit! 🌠 1 year ago
.gitignore Initial commit! 🌠 1 year ago
LICENSE-Apache Initial commit! 🌠 1 year ago
LICENSE-MIT Update authors email, again. 2 months ago
README.md Add a link to the examples directory. 2 months ago
poetry.lock Update dependencies and Poetry config. 2 months ago
pyproject.toml Update authors email. 2 months ago

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)

See also the examples directory.

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.