Skip to main content

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.

Release files for koco-product-sqlmodel 0.1.41

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for koco-product-sqlmodel 0.1.41
File Size Uploaded
koco_product_sqlmodel-0.1.41.tar.gz 167.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for koco-product-sqlmodel 0.1.41
File Interpreter ABI Platform
koco_product_sqlmodel-0.1.41-py3-none-any.whl Python 3 none any Details

Total release size: 367.1 kB

Release files / koco_product_sqlmodel-0.1.41.tar.gz

Download URL koco_product_sqlmodel-0.1.41.tar.gz
Size 167.4 kB
Tags Source
SHA-256 checksum
How to use checksums
63db1ecfe1257c0aaad4bda71c372fcc5f8c5db1a3cb6aaa89086a9b807c8d60
BLAKE2b-256 checksum
How to use checksums
4d66ac34678cebad93199c138f48b89dfce92703d8a06acb6a44093eca4bc967
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / koco_product_sqlmodel-0.1.41-py3-none-any.whl

Download URL koco_product_sqlmodel-0.1.41-py3-none-any.whl
Size 199.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ba6d3a1b6d1bc4cfef45e053f4e2446a57d85a152c1dfc6ad22eb03102cb367
BLAKE2b-256 checksum
How to use checksums
a0ff271f1a54739eba99c5bf1f75c2542d316ce384434bc6309d147a6705cc2b
Upload date
Uploaded using Trusted Publishing?
What is 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}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page