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.39.tar.gz (92.9 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.39-py3-none-any.whl (126.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: koco_product_sqlmodel-0.1.39.tar.gz
  • Upload date:
  • Size: 92.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for koco_product_sqlmodel-0.1.39.tar.gz
Algorithm Hash digest
SHA256 d275be878ba819135325fef41d16bd8cb049fc28f69d9e020b5204a0ca59b395
MD5 7c2004320d8caffb6e6ef15cdefb68c2
BLAKE2b-256 55a043e8d8b457e4c3f2c16379f4c27ebff508677f559d5adaec70480d3fd4c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: koco_product_sqlmodel-0.1.39-py3-none-any.whl
  • Upload date:
  • Size: 126.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for koco_product_sqlmodel-0.1.39-py3-none-any.whl
Algorithm Hash digest
SHA256 e50e9882c4eebe27f9153d3680e5bfa4ad285f277dfa744e9f897f7a95925d21
MD5 6b7fc1bd8a27f9178272bb37188e4507
BLAKE2b-256 997e88b25c24655805ea6c1f36eb87084f0a27e5b35d5731fb374a3578d88796

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