Crochet Pattern Program <2025>
For amigurumi, provide a sphere/ellipsoid generator that outputs rounds with precise inc/dec counts. Implement a gauge converter . User provides gauge (e.g., 16 sts = 4") and desired size (e.g., 20" wide). Formula: stitches_needed = (desired_width_inches / 4) * gauge_stitches_per_4in
def get_user_parameters(): item = input("Item type: ") yarn_weight = input("Yarn weight: ") desired_width_cm = float(input("Width in cm: ")) stitch_type = input("Main stitch: ") gauge_stitches_per_10cm = float(input("Gauge sts per 10cm: ")) starting_chain = int((desired_width_cm / 10) * gauge_stitches_per_10cm) return ... Support multiple formats for different users: Crochet Pattern Program
"pattern_id": "bean_001", "name": "Simple Beanie", "difficulty": "beginner", "yarn_weight": "worsted", "hook_mm": 5.0, "gauge": "stitch": "sc", "stitches_per_4in": 16, "rows_per_4in": 20 , "sizes": "baby": "head_circumference_in": 16, "starting_ch": 40 , "adult": "head_circumference_in": 22, "starting_ch": 56 , "instructions": [ "step": 1, "text": "Ch starting_ch, join in round", "repeat": null , "step": 2, "text": "Round 1: sc in each ch around", "repeat": null , "step": 3, "text": "Round 2: [sc 2, inc] around", "repeat": "until diameter = 6\"" ] "name": "Simple Beanie"