pipalacademy / feather-python-runtime

Python runtime for Feather
MIT License
0 stars 0 forks source link

Behavior decisions #5

Open nikochiko opened 2 years ago

nikochiko commented 2 years ago

This issue is to document non-obvious situations encountered while building that may take up time.

nikochiko commented 2 years ago

In the initial spec, we saw three ways to present input. What to do when both code and files are given?

notes: might be different depending on if main.py is given, or we could throw an error immediately.

nikochiko commented 2 years ago

relates to #2 while accepting multipart data, we have two sources for the name of the file:

nikochiko commented 2 years ago

When x-feather-entrypoint header is submitted for code input. Do we raise an error, use that filename to write to the temporary file, or ignore it?

IMO, writing to temporary file is internal behavior that the user shouldn't be concerned with. If they want a file with a particular name, they should use the multiple files format.

Then, we can either ignore it or raise an error.