Skip to main content

CDES Food Service Extension - Cannabis ingredient and recipe data models for culinary applications

Project description

CDES-FS: Cannabis Data Exchange Standard - Food Service Extension

Food service SDK for cannabis-infused culinary applications. Part of the CDES ecosystem.

Features

  • COA Integration - Link recipes to lab test data
  • Terpene Pairing - Flavor suggestions based on terpene profiles
  • Dosage Calculation - Precise THC/CBD per serving
  • Recipe Management - Cannabis-infused recipe database
  • Compliance - Food safety and lot tracking

Use Cases

  • Cannabis-infused restaurants and cafes
  • Edible manufacturers
  • Catering services with cannabis offerings
  • Recipe development with precise dosing
  • Flavor pairing based on terpene science

Installation

pip install cdes-fs

Quick Start

from cdes_fs import (
    CannabisIngredient, Recipe, TerpeneProfile,
    IngredientType, RecipeCategory
)
from decimal import Decimal

# Create a cannabis ingredient with COA reference
butter = CannabisIngredient(
    name="Cannabis-Infused Butter",
    ingredient_type=IngredientType.BUTTER,
    thc_mg_per_gram=Decimal("10.0"),
    coa_reference=CannabisCOAReference(
        coa_id="COA-2026-001",
        batch_number="BATCH-001",
        strain_name="Blue Dream"
    )
)

# Get terpene-based food pairing suggestions
profile = TerpeneProfile(
    coa_reference=butter.coa_reference,
    limonene=Decimal("0.8"),
    myrcene=Decimal("0.5")
)
pairings = profile.suggest_pairings()
# ["citrus desserts", "seafood", "mangoes", "tropical fruits"]

# Create a recipe with automatic dosage calculation
recipe = Recipe(
    name="Cannabis Lemon Bars",
    category=RecipeCategory.DESSERT,
    servings=12,
    cannabis_ingredients=[(butter, Decimal("50.0"))]  # 50g of butter
)
dosage = recipe.calculate_total_dosage()
# 500mg total THC / 12 servings = ~42mg per serving (high_dose_warning=True)

Documentation

License

MIT License - see LICENSE for details.

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

cdes_fs-0.1.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cdes_fs-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file cdes_fs-0.1.0.tar.gz.

File metadata

  • Download URL: cdes_fs-0.1.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for cdes_fs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4befc533a33b085e186fc11311e0c049be89b02c1fd988926299c28ad99673fd
MD5 c105f03bf45a572dfcee149fee97f551
BLAKE2b-256 15c1f680918e7d0dcec3be183087afcc6e24f37d48ea846fe16d2190ff2bfa3b

See more details on using hashes here.

File details

Details for the file cdes_fs-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cdes_fs-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for cdes_fs-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2addaa2c2af70fe78b691516bcfd2f2e391c2ad2f47895106a25b37149c80ec
MD5 52b5a2a658961d1e5264bdc7ff77227f
BLAKE2b-256 0013af459927be76fafa63f6038958ae8ac7a45100c69735042d44607b923b0d

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