TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Simple Python script to automatically upload CSV files to a database

1 点作者 falco925超过 4 年前

2 条评论

falco925超过 4 年前
Just wanted to share a simple py script that I built to automate uploading multiple csv files to a postgres database.<p>The 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.<p>I used this script almost everyday at my past job to upload data from other teams and departments.<p>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.
bitfhacker超过 4 年前
Didn&#x27;t see the videos, but I want to thank you for your post.<p>I don&#x27;t know if you &quot;know&quot; Django ORM or pyDAL... If use a database abstraction module you could extend your project easily to other databases.
评论 #25296655 未加载