-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow compile
function to take a string as input
#4
Comments
compile
function to take a string as input
I need to generate tens of thousands of individual pdfs, all that reference a unique path. To do that, I generate a My use case is a workaround to this issue: typst/typst#295 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This seems like a very handy feature, and it would also make the package more "Pythonic" IMO. By more "Pythonic", consider for instance the built-in with open(file, 'r') as f:
data = json.load(f) while the data = json.load([VALID_JSON_STRING]) Making @ok-nick regarding your particular issue, have you considered using a RAM disk/temp filesystem as a workaround? If on Linux, mounting a dir as a |
That'd be a good workaround for now, I'll have to try it out. |
I think this feature request is really useful for automation/scripting tasks that need to generate a (maybe simple) document without messing with temp files. |
Pull requests are welcome. |
Would it be possible to have a
compile
function that take a string as a parameter ?The text was updated successfully, but these errors were encountered: