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. 

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.14.tar.gz (86.1 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.14-py3-none-any.whl (116.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: koco_product_sqlmodel-0.1.14.tar.gz
  • Upload date:
  • Size: 86.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for koco_product_sqlmodel-0.1.14.tar.gz
Algorithm Hash digest
SHA256 0dc0ace33a54c9528154a145b6230847cbe53be55e73589eb02f0b6b3f07d134
MD5 1092681469e9e8a84bf3da1b6caa3fe0
BLAKE2b-256 af74f456b64a8a47d17c485c0abbd11386efe0f48e92480609f973f599487712

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for koco_product_sqlmodel-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 06be77b1c8d5cdf404cb0a75572e0eeba394172c5fac7cbd08bd5c0dbe36928b
MD5 d3de24148a17f567097f342fbedef6e6
BLAKE2b-256 9286ca4b0c5cbb45753d6a12913b8c58a37082f3700e2b85c81b999ff457a717

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