rechu package¶
Subpackages¶
- rechu.command package
- Subpackages
- Submodules
- rechu.command.alembic module
- rechu.command.base module
- rechu.command.config module
- rechu.command.create module
- rechu.command.delete module
- rechu.command.dump module
- rechu.command.match module
- rechu.command.read module
- Module contents
- rechu.inventory package
- rechu.io package
- rechu.matcher package
- rechu.models package
- Submodules
- rechu.models.base module
- rechu.models.product module
DiscountMatchIndicatorLabelMatchMatchPriceMatchProductProduct.alcoholProduct.brandProduct.categoryProduct.check_merge()Product.clear()Product.copy()Product.descriptionProduct.discountsProduct.genericProduct.generic_idProduct.gtinProduct.has_patternsProduct.idProduct.labelsProduct.merge()Product.portionsProduct.pricesProduct.rangeProduct.replace()Product.shopProduct.shop_metaProduct.skuProduct.typeProduct.volumeProduct.weight
- rechu.models.receipt module
DiscountDiscountItemsProductItemProductItem.amountProductItem.discount_indicatorProductItem.discount_indicatorsProductItem.discountsProductItem.idProductItem.labelProductItem.positionProductItem.priceProductItem.productProductItem.product_idProductItem.quantityProductItem.receiptProductItem.receipt_keyProductItem.unit
Receipt
- rechu.models.shop module
- Module contents
BaseProductProduct.alcoholProduct.brandProduct.categoryProduct.check_merge()Product.clear()Product.copy()Product.descriptionProduct.discountsProduct.genericProduct.generic_idProduct.gtinProduct.has_patternsProduct.idProduct.labelsProduct.merge()Product.portionsProduct.pricesProduct.rangeProduct.replace()Product.shopProduct.shop_metaProduct.skuProduct.typeProduct.volumeProduct.weight
ReceiptShop
- rechu.types package
Submodules¶
rechu.database module¶
Database access.
rechu.settings module¶
Settings module.
- class rechu.settings.Settings(path: str | PathLike[str] = 'settings.toml', environment: bool = True, prefix: tuple[str, ...] = (), fallbacks: tuple[_SettingsFile, ...] = ())[source]¶
Bases:
objectSettings reader and provider.
- get(section: str, key: str) str[source]¶
Retrieve a settings value from the file based on its section name, which refers to a TOML table grouping multiple settings, and its key, potentially with an environment variable override.
- get_comments() dict[str, dict[str, list[str]]][source]¶
Retrieve comments of the settings by section.
This retrieves comments for a setting from the settings file latest in the chain that has comments. Only comments preceding the setting are preserved.
- get_document() TOMLDocument[source]¶
Reconstruct a TOML document with overrides from environment variables, default values and comments from fallbacks.
Module contents¶
Receipt cataloging module.