Skip to content

Latest commit

 

History

History

python

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

UtaFormatix Data in Python

PyPI version

Serialization/Deserialization of UtaFormatix Data Format implemented in Python.

Install

pip install utaformatix-data

Example

import ufdata 

# parse JSON text
jsonstr = "..." # load from somewhere
data = ufdata.load(jsonstr) # type: ufdata.UfData

# access memebers
print(data.project.tracks[0].notes[-1].lyric)

# dump to JSON text
dumped = data.dump()

# versions
print(data.format_version) # version of the data loaded
print(ufdata.get_current_data_version()) # version of the format used by current library version