Skip to content

An OPML library for Python.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-Apache
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

a-takahashi223/opyml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An OPML library for Python.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-Apache
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages