R
Railway2y ago
Billy

File I/O Python

Hey I'm trying to write/open files with Python. Specifically using dataframe-image (dfi.export) and Image.open(). Is Railway equipped with any sort of temporary file storage system (CSVs and PNGs in my case)? If so, what are best practices? Project ID: f18343ec-ab6f-4f93-beeb-d57c935e4e38
6 Replies
Percy
Percy2y ago
Project ID: f18343ec-ab6f-4f93-beeb-d57c935e4e38
Brody
Brody2y ago
if they are only temp files, then you can save the files in the container, but any temp files will be lost on redeploy
Billy
BillyOP2y ago
any special syntax/setup to save files in the container? further, if i wanted to outsource file storage, do u recommend s3 or an alternative?
Brody
Brody2y ago
No? Save files to a /tmp folder if files are only temporary I personally use b2 cloud storage from backblaze
Billy
BillyOP2y ago
i think its something specific to dataframe-image package export function. fwiw, i had this issue on heroku too and had to install a chromepack plugin to use dfi.export.
Want results from more Discord servers?
Add your server