Show HN: Simple Python script to automatically upload CSV files to a database
1–4 of 4 posts
Re: Show HN: Simple Python script to automatically upload CSV files to a database
#2The script will clean the file name and column headers and create the SQL statements to create the db table and upload the file to the database, automatically.
I used this script almost everyday at my past job to upload data from other teams and departments.
I recorded a tutorial on youtube for anyone that wants to try to build it out (links in the README). Hope this is helpful either as a way to easily upload files to a db or as practice getting better building python scripts to automate your work.
Re: Show HN: Simple Python script to automatically upload CSV files to a database
#3I don't know if you "know" Django ORM or pyDAL... If use a database abstraction module you could extend your project easily to other databases.
Re: Show HN: Simple Python script to automatically upload CSV files to a database
#4Didn't see the videos, but I want to thank you for your post. I don't know if you "know" Django ORM or pyDAL... If use a database abstraction module you could extend your project easily to other databases.