NOTICE: All information contained herein is, and remains
the property of TechnoCore.
The intellectual and technical concepts contained
herein are proprietary to TechnoCore and dissemination of this information or reproduction of this material
is strictly forbidden unless prior written permission is obtained
from TechnoCore.
ObjTextFHFeatures is a Python module that processes and structures product feature descriptions from a database. It reads a raw feature string, cleans and splits it into individual features, and then updates the database with both the structured feature set and a consolidated description.
trader.meta_product or trader.product_notes tables.Feature1 to Feature15).trader.meta_product table with the structured features and a pipe-separated description string.__init__(self, db_connection: DatabaseConnection = 0, page=0)Initializes the ObjTextFHFeatures object, inheriting from ObjTextFHInstalment.
DatabaseConnection object for database operations.read_features(self, param_1)Reads, cleans, and structures the features for a given product code, then updates the database.
Import(self)Imports and processes features for all products that have feature notes but no structured description in the meta_product table.
Process(self, param_1="", ...)The main entry point for processing features for a single product.
To process and update the features for a specific product:
import ObjTextFHFeatures
# Initialize the object with a database connection
features_processor = ObjTextFHFeatures.ObjProcessText(db_connection=db)
# Process features for product code "21856"
features_processor.Process("21856")