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.
- Product Title
- ASIN Code
- Image (url)
- URL
- Manufacturer
- Contributors
- Publication Date
- Product Group
- Registrants Name
- Default Positions
- Current Positions
- Note
- Features
- Python 3.8.4 or higher
- Google Cloud Platform
- GnuPG
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.
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
[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.
- Access to
http://0.0.0.0:8888/
- Enter keywords or ISBN/ASIN code in the search window and press the search button
- Displays a list of items related to the keywords you have entered
- Select any item from the list of items and press the Select button
- The item's details are displayed
- Edit the contents of the item's details form
- Press the Register button and you will be registered with Airtable
flake8 *.py
pytest . -vv --ignore-glob="venv/**/*" --durations=0
- Chief Engineer: Yusuke Watanabe
- Product Manager: Tomoya Kashimada
- Business Owner: Shin'ichiro Suzuki