how to create data to dump into yaml file

S

sibteym

hi
I have to create a yaml file using my list of objects.shall i need to
create a string using my objects and then load and dump that string or
is there any other way to create the yaml file.

i want a yaml file to be created from [Text, Author,......]in this format
Text:
- value1
- value2
- value 3
Author:
name: bookName


Thanks
Sibtey Mehdi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top