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.12.tar.gz (85.7 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.12-py3-none-any.whl (115.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: koco_product_sqlmodel-0.1.12.tar.gz
  • Upload date:
  • Size: 85.7 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.12.tar.gz
Algorithm Hash digest
SHA256 d501e08dbac21db8c6d59f7513c8436bac8ec9bc9c1d4da34edb3900f3c54587
MD5 8650791effb9fb33f9ba1f0662ac92c6
BLAKE2b-256 804eefa6769b48fd72a84388386a315a54ca70de930a24885b6f9f1c99e3bb54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for koco_product_sqlmodel-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 3f8985781658f312a4f533a80ec94efc46a5028432cf1748c78d0f2e9ec52093
MD5 124a714e5d494dd96c0c5de0d7112217
BLAKE2b-256 a6553129aae51deab2543520d281ce6cf72a83e5192bb1124a78006127e9c084

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