question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dump for multi-documents

See original GitHub issue

Hi there,

Is this feature supported? I didn’t find it in the docs.

Had to do a temp string variable and append to it from the safeLoadAll() array joining it with ---\n

If needed I can do a PR.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
puzrincommented, Jul 16, 2020

IMO it’s too trivial and almost never needed. You could do:

[docs_to_dump].map(doc => yaml.safeDump(doc)).join('---\n');
3reactions
puzrincommented, Nov 28, 2020

Close (no need to spoil api when trivial solution exists)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add multiple docs in yaml file | PyYAML - Stack Overflow
According to the docs: If you need to dump several YAML documents to a single stream, use the function yaml.dump_all . yaml.dump_all accepts ......
Read more >
Departure from previous API — Python YAML package ...
Dumping a multi-documents YAML stream¶. The “normal” dump_all expected as first element a list of documents, or something else the internals of the...
Read more >
Examples | arangodump | Programs & Tools - ArangoDB
By default, arangodump will dump both structural information and documents from all non-system collections. To adjust this, there are the following command-line ...
Read more >
oledump.py - Didier Stevens
You can select a stream to dump its content: ... no exception, nothing. i tried it on multiple documents both binary and zipped...
Read more >
YAML: The Missing Battery in Python
Dumping Python Objects to YAML Documents. Choose the Dumper Class; Dump to a String, a File, or a Stream; Dump Multiple Documents ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found