Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Automatic to_<tag> Python method #9

Merged
merged 1 commit into from
Jul 22, 2018
Merged

Automatic to_<tag> Python method #9

merged 1 commit into from
Jul 22, 2018

Conversation

msoeken
Copy link
Owner

@msoeken msoeken commented Jul 22, 2018

In the Python interface a write_<tag> command can be used to write the file contents to a Python variable using, e.g.,:

f = cli.write_html(log=True)["contents"]

This PR automatically adds to_<tag> methods to the Python interface for each write_<tag> method, making the code simpler, e.g.:

f = cli.to_html()

Make sure to implement the write method from the store API that writes into an output stream.

@msoeken msoeken merged commit 07a674d into master Jul 22, 2018
@msoeken msoeken deleted the to_tag branch July 22, 2018 17:45
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant