shuichiro-makigaki / mendeley_cli

CLI for Mendeley
MIT License
4 stars 0 forks source link

Writing to stdout without waiting to receive the full response #7

Open A3EKV opened 2 years ago

A3EKV commented 2 years ago

After the change in the new version that allows to retrieve all the content via pagination, the command take relatively a very long time to output the content to stdout (because I have more than 1400 documents).

One solution is to allow the output to stdout every time a page is received without waiting to fully receive all the content and output it once.

shuichiro-makigaki commented 2 years ago

Mendeley CLI uses tablib package (https://pypi.org/project/tablib/) for supporting various printing formats, and it does not support yielding outputs. This means Mendeley CLI cannot print lines by the streaming style.

However, for a better user experience, I plan to add a cache mechanism. (Under developped at the caching-support branch.) It may be long running-issue, but stay tuned.