- pipenv
pip3 install pipenv
- redis
apt install redis-server
- ffmpeg
apt install ffmpeg
cp .env.template .env
then edit as needed
Need to run 2 program
pipenv install
pipenv run flask run
&
pipenv run celery -A tasks worker -c 1 -l info
pip3 install pipenv
apt install redis-server
apt install ffmpeg
cp .env.template .env
then edit as needed
Need to run 2 program
pipenv install
pipenv run flask run
&
pipenv run celery -A tasks worker -c 1 -l info
盡量避免用 import *
,原因是
env
這個 object,當你 import * 的時候可能就會被 re-assign 了,但你沒注意到用 os.system
直接跑 script 可能會出錯,建議做一下 error handling,也在 flask 的 handler 做一下,方便使用者知道出了什麼錯
別一直用 += 串 string,用 fstring 會比較好,原因是:
+=
的操作等同於創造新的 object 比較消耗資源,可以在每次 concat 後用 id()
看,可以發現每次都是不同 object環境變數應該只被單一 module 讀取一次,存成變數後提供給其他 module 讀取,原因是:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.