This is an example application of Flask-SQLAlchemy horizontal sharding.
ENV=tmp
python3 -m venv $HOME/.venv/$ENV
$HOME/.venv/$ENV/bin/python -m pip install -U pip -r requirements.txt
FLASK_APP=app.py FLASK_DEBUG=1 $HOME/.venv/$ENV/bin/flask run
Post your account.
ACCOUNT_ID=me
ACCOUNT_NAME=Me
curl -d id=$ACCOUNT_ID \
-d name=$ACCOUNT_NAME \
http://localhost:5000/accounts
Get account.
curl http://localhost:5000/accounts/$ACCOUNT_ID