How to store text data with Python?

I need to store some text data with Python.
Key1:value1
Key2:value2

I’ve decided to use StringTables asset, and StringTableLibrary for operating with my asset.
https://docs.unrealengine.com/5.0/en-US/PythonAPI/class/StringTableLibrary.html

But StringTableLibrary has only get_keys functions, and don’t have set_keys.

Maybe i choose wrong type of asset.
Anyway, how to store some text information with Python in some asset?

I do not know about the stringtablelibrary.

You can probably access:

import unreal

#access asset metadata
eas = unreal.get_editor_subsystem(unreal.EditorAssetSubsystem)
asset = eas.load_asset("/game/NewBlueprint")
eas.set_metadata_tag(asset,"tag_name","tag_value")
eas.save_asset(asset)

#access a NewVar map variable on a custom blueprint
# get the generated class of the Blueprint (note the _C)
bp_gc = unreal.load_object(None, "/Game/NewBlueprint.NewBlueprint_C")
# get the Class Default Object (CDO) of the generated class
bp_cdo = unreal.get_default_object(bp_gc)
# set the default property values
bp_cdo.get_editor_property("NewVar")["map entry name"] = "map entry value"
#bp_cdo.set_editor_property("MyBoolProp", True)