Skip to content

📚 Python implementation of the Unke markup language

License

Notifications You must be signed in to change notification settings

timsueberkrueb/unke-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unke

Python implementation of the Unke markup language

Installation

python3 setup.py install    # Use sudo if necessary

Usage

// myfile.unk

Root {
    some_numbers: [4,2,7,3]
    list_items: [
        ListItem {
            id: 1
            enabled: true
            description: "Hello World"
        }
    ]
}
# myfile.py
import unke
doc = unke.load('myfile.unk')
root = doc.root
print(root.props['some_numbers'])
print(root.props['list_items'])
item_1 = root.props['list_items'][0]
print(item_1.props['description'])

Licensing

Licensed under the terms of the MIT license.

About

📚 Python implementation of the Unke markup language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages