Skip to main content

Python module containing the SQLMODEL for the KOCO MOTION product description in the catalog database. Used import into the flask project and the later to define API-project

Project description

koco-product-sqlmodel

This project separates the product describing SQLMODEL from other modules making later use of it. It shall be implemented into the CatalogDB-project and into a separate API project.

Scope

The module will contain all necessary sqlmodel-classes and functions to make an interaction with a KOCO-product-database possible. It shall be available under MIT-license on pip.

Dependencies

The module depends on Tiangolo's sqlmodel-package, which is also licensed under MIT-License.

Environmental Variables

Database information and credentials are provided as environmental variables. Following variables are defined:

MARIADB_USER=the_db_user_name
MARIADB_PW=the_db_user_password
MARIADB_URI=the_mariadb_uri
MARIADB_DATABASE=name_of_the_product_database
MARIADB_CONNECTOR_STRING=mariadb+mariadbconnector://${MARIADB_USER}:${MARIADB_PW}@${MARIADB_URI}/${MARIADB_DATABASE}
FASTAPI_SECURITY_SECRET_KEY=generate a key with "openssl rand -hex 32"
DB_BACKUP_FOLDER_URL="PATH_TO_BACKUP_FOLDER" #Note the folder must exist. It will not be created by the app. 
PRODUCT_FILE_FOLDER="PATH_TO_PRODUCT_FILES" #Folder contains all product files with blake2shashed filename.

There is an .env_example-file available in the repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

koco_product_sqlmodel-0.1.37.tar.gz (92.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

koco_product_sqlmodel-0.1.37-py3-none-any.whl (125.9 kB view details)

Uploaded Python 3

File details

Details for the file koco_product_sqlmodel-0.1.37.tar.gz.

File metadata

File hashes

Hashes for koco_product_sqlmodel-0.1.37.tar.gz
Algorithm Hash digest
SHA256 9d7162b43ce318d4446ece4907d43579bd1c29e36f3f68b31e7aa4af5cf72b94
MD5 64e8f0d470695a525274f4b7f60257b4
BLAKE2b-256 a04de166105ed0fa44d85cdf797a718805687d0728ac33138d0f8954326f1cef

See more details on using hashes here.

File details

Details for the file koco_product_sqlmodel-0.1.37-py3-none-any.whl.

File metadata

File hashes

Hashes for koco_product_sqlmodel-0.1.37-py3-none-any.whl
Algorithm Hash digest
SHA256 07553405cd2ee60bab703707c971a99d4645cb56d4b87d923e19880ba3bee5df
MD5 fa787b359aeea4ca29821b5290623dae
BLAKE2b-256 9df1844ef460d2892902610b62888e4ac7828ae6093b26d6e0f66f00491467fa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page