Skip to content

Support for --import xml.etree.ElementTree #39

@simonw

Description

@simonw

https://github.com/simonw/neededge-history/blob/main/v1.xml

This should work, but doesn't without a small change:

git-history file neededge.db v1.xml --id url --convert '
tree = xml.etree.ElementTree.fromstring(content)
return [site.attrib for site in tree.iter("site")]
' --import xml.etree.ElementTree

Originally posted by @simonw in #30 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions