q-lako is a service to quickly register equipments and books.
q-lako is a service to quickly register equipments and books.
q-lako is a web app that helps you to manage books and supplies purchased on Amazon.
Get the following information on purchased books and supplies to help you register supplies.
python3 -m venv venv
source venv/bin/activate
export ARCHFLAGS="-arch x86_64"
pip install --upgrade pip
pip install --upgrade --use-feature=2020-resolver -r requirements.txt
The reason why ARCHFLAGS
needs to be specified is due to Apple’s bugs in Xcode12.
It is recommended to explicitly specify the resolver options until pip
version 20.3.
.env
and .env.gpg
Write the API Key to .env
and encrypt it.
Keep your passphrase in a secure location like YubiKey.
Prepare .env
airtable_base_id="airtable_base_id"
airtable_api_key="airtable_api_key"
amazon_partner_tag="amazon_partner_tag"
amazon_access_key="amazon_access_key"
amazon_secret_key="amazon_secret_key"
Encrypt .env
to create .env.gpg
gpg --symmetric --cipher-algo AES256 .env
Use your passphrase to decrypt .env.gpg
.
gpg --quiet --batch --decrypt --output=.env .env.gpg
settings.ini
[THEME-COLOR]
theme_color_blue=#4caaba
theme_color_gray=#393e46
[AIRTABLE]
airtable_table_name=q-lako
python main.py
If you start it locally, it will start in Debug mode.
http://0.0.0.0:8888/
flake8 *.py
pytest . -vv --ignore-glob="venv/**/*" --durations=0