As often, "it depends". If there are only a few CSV files that don't change and your app has only read-only access, you could deploy them with your code. Of course, the only way to update/change those CSV files would be by redeploying your app.
If you want to dynamically write into the CSV files or create new files at runtime, you must choose a different solution. As you mentioned, Cloud Storage is a very reasonable choice. Easy read/write access for your GAE app or other clients / services. You can even load these files directly and fast into things like Big Query or ML APIs, or when you need to prepare / massage the data via Pub Sub and Data Flow. Alternative solution could be Google Drive, basically the same but higher level, requires Google or G Suite account for access, is eventually slower for BQ and other parts in GCP, but it has mobile apps and a web user-interface to upload/download CSV files, and desktop sync apps for Windows and Mac. If the CSV has less than 2 million cells you could store the values as Google Sheet file in Drive instead of CSV (e.g. a user adds rows using a web-browser or mobile app, Google Apps Script copies data from another source etc.), and easily convert the data to CSV when needed. If the original data is already in G Suite and/or you are doing a lot of things in G Suite, Drive/Sheet might be your preferable solution. If not, I would think that Cloud Storage is more suitable (and scalable). Am Donnerstag, 13. Juli 2017 10:40:28 UTC+2 schrieb udit sharma: > > I am new to development and GAE. I have hosted a small app on GAE made > using Python Flask. I want to integrate an ML model into it, which will > take some CSV files as an input for its computations. I want to know where > should I save those file so that I can access them while deploying the > code. > > Should I save them in the same folder of the code and take as an input > directly or > Should I go for Cloud storage > <https://cloud.google.com/appengine/docs/flexible/python/using-cloud-storage> > ? > > I want to know the perfect choice for my use case. Files are not big. Any > help would be great for me! > -- HATZIS Edelstahlbearbeitung GmbH Hojen 2 87490 Haldenwang (Allgäu) Germany Handelsregister Kempten (Allgäu): HRB 4204 Geschäftsführer: Paulos Hatzis, Charalampos Hatzis Umsatzsteuer-Identifikationsnummer: DE 128791802 http://www.hatzis.de/ -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/cec6d82e-0c11-4554-9352-5b621a9a22f0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
