# Как я скрестил 3D-печать, Python и мессенджер MAX (и что из этого вышло)

DevFeed: [Как я скрестил 3D-печать, Python и мессенджер MAX (и что из этого вышло)](<https://devfeed.tech/articles/3d-python-max-150136.md>)

Original publisher: [Read original article](<https://habr.com/ru/articles/1111550/>)

Author: m0ska

Published: 2026-11-24T04:27:45Z

Content type: article

Language: ru

Sources: [Tagir Valeev](<https://devfeed.tech/sources/tagir-valeev.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [ChatGPT](<https://devfeed.tech/topics/chatgpt.md>)

Tags: [3d](<https://devfeed.tech/tags/3d.md>), [3d-1ef1da7787b2](<https://devfeed.tech/tags/3d-1ef1da7787b2.md>), [3d-6a2b764b75a9](<https://devfeed.tech/tags/3d-6a2b764b75a9.md>), [3d-7cbc352a3a47](<https://devfeed.tech/tags/3d-7cbc352a3a47.md>), [api](<https://devfeed.tech/tags/api.md>), [bot](<https://devfeed.tech/tags/bot.md>), [chatgpt](<https://devfeed.tech/tags/chatgpt.md>), [code](<https://devfeed.tech/tags/code.md>), [crm](<https://devfeed.tech/tags/crm.md>), [g-code](<https://devfeed.tech/tags/g-code.md>), [gigacode](<https://devfeed.tech/tags/gigacode.md>), [max](<https://devfeed.tech/tags/max.md>), [python](<https://devfeed.tech/tags/python.md>), [stl](<https://devfeed.tech/tags/stl.md>), [tag-0f37bd74f710](<https://devfeed.tech/tags/tag-0f37bd74f710.md>), [tag-17e34f8df30a](<https://devfeed.tech/tags/tag-17e34f8df30a.md>), [tag-2919f56a7912](<https://devfeed.tech/tags/tag-2919f56a7912.md>), [tag-58dd4e3269f9](<https://devfeed.tech/tags/tag-58dd4e3269f9.md>), [tag-63e8b0099cd7](<https://devfeed.tech/tags/tag-63e8b0099cd7.md>), [tag-8428e3ef40cf](<https://devfeed.tech/tags/tag-8428e3ef40cf.md>), [tag-c359203e8db3](<https://devfeed.tech/tags/tag-c359203e8db3.md>), [tag-f3a3f7da3a76](<https://devfeed.tech/tags/tag-f3a3f7da3a76.md>)

## AI overview

"Заказики и MAX" is a Windows desktop mini-CRM for a home 3D-printing workshop. Its Python app receives MAX bot messages and files, stores orders and models, and parses G-code to extract filament weight and print time for pricing. The formula combines material cost (with a configurable waste factor), labor, machine wear, electricity, and extra services; settings include hourly rates and prices for PLA, ABS, PETG, and TPU. The author describes using Windows DPAPI to protect the bot token and, when pysqlcipher3 is installed, the database key; a chat ID whitelist can restrict bot access. The app uses CustomTkinter and SQLite, handles MAX's certificate requirements with a bundled CA file, and is packaged as a PyInstaller executable. The author presents it as a tool for a home workshop, not an industrial CRM.

## Source excerpt

Всем привет! Кто печатает на заказ, знает эту боль: клиент присылает STL-ку в мессенджере, ты открываешь слайсер, считаешь время, вес, вспоминаешь, сколько стоит пластик, добавляешь амортизацию сопла... А потом понимаешь, что забыл умножить на коэффициент брака, и в итоге работаешь за еду. Я устал считать это в уме и на калькуляторе. Так родилось приложение "Заказики и MAX" -- десктопный мини-CRM для домашней 3D-мастерской, который сам забирает заказы из чата, парсит G-code и считает стоимость. И да, значительную часть кода я написал вместе с нейросетями (GigaCode, ChatGPT). Читать далее