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
File details
Details for the file koco_product_sqlmodel-0.1.10.tar.gz
.
File metadata
- Download URL: koco_product_sqlmodel-0.1.10.tar.gz
- Upload date:
- Size: 618.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e225c6ed9b878901d0ff8df54f4e2d7f499fc79dd070596169996eff6e9f328f |
|
MD5 | 2b52f1075b2bf30346862fa7144fe0bf |
|
BLAKE2b-256 | 7dd56ffe82110ee57754c0f75da064df3efb714ba2414cc360a6e09cae9dc8e6 |
File details
Details for the file koco_product_sqlmodel-0.1.10-py3-none-any.whl
.
File metadata
- Download URL: koco_product_sqlmodel-0.1.10-py3-none-any.whl
- Upload date:
- Size: 114.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ae232cc2f4c5295e69b333994c1177ebb424d4907a5d9b6dc16c6069e7abeb7 |
|
MD5 | 5300ad566cf1a48936c9172cc3bd4471 |
|
BLAKE2b-256 | d632ea2d148b5f67b92bf1707ac416c3fad9f95e5a15d1a55019f082c3101743 |