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"
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
Built Distribution
Hashes for koco_product_sqlmodel-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27a83ed55ab0aa7523e702639174b44e9aecc4fd158261303f4d500588b2090a |
|
MD5 | fc767c750d3edd0a776df34d3af39c47 |
|
BLAKE2b-256 | 67f6d184dc697edf55fd3edb877bb4eb66ec7ec9f48203085f70788a099e6d30 |
Hashes for koco_product_sqlmodel-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8efee35c780d7133e86ed0ca4bfdccf2c6eba148f30101c952e95b580ba6fe31 |
|
MD5 | 07dba551fa0600601d0ee1f665d71eed |
|
BLAKE2b-256 | 013ab87ec284349c7d05a7cf2baeb71df69a89cc9e2341a86548634bb6d09dfc |