PA

PACman: Automatically convert prompts to Python functions

Hacker News

PACman: Automatically convert prompts to Python functions

I made a package to automatically convert prompts stored in a yaml file to pure python functions. A lot of prompt-heavy code is hard to grasp due to mixed use of large multi-line strings and orchestrating code. Some prompt libraries automate portions of these away, but we lose flexibility in prompting. By extrapolating the prompt config to a yaml file and generating pure Python functions from it, we can focus our business code on orchestrating the input/outputs of prompt functions. Another benefit of moving prompts to YAML files is that it's easy to move prompts between languages, and to track prompt changes via git.

Share card

Actual performance

1points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
58%58% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: code · Missing: mac, agents, macos
51%51% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: io · Missing: https docs, excited, just released
48%48% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: way · Missing: mobile apps, ios, personal
47%47% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
43%43% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
19%19% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
9%9% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

A
A lib to parse Python functions for ChatGPT and call them automatically33%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A lib to parse Python functions for ChatGPT and call them automatically

Hacker News1
Ma
MakePip – Automatically Publish Python to PyPi56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

MakePip – Automatically Publish Python to PyPi

Hacker News8
Py
Py2pddl – Convert Python classes to PDDL files33%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Py2pddl – Convert Python classes to PDDL files

Hacker News5
Te
Teyit – Automatically format your Python unittest assertions58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Teyit – Automatically format your Python unittest assertions

Hacker News8
We
We automatically fix your Python code for you62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

We automatically fix your Python code for you

Hacker News19
Mo
Modguard – Enforce modular Python automatically72%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Modguard – Enforce modular Python automatically

Hacker News3
Cu
CustomStringParser ( Python)54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CustomStringParser ( Python)

Hacker News1
Lu
Lusernews is an implementation of lamernews in python48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Lusernews is an implementation of lamernews in python

Hacker News1
Do
Do/While in Python55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Do/While in Python

Hacker News4
Ga
Gatos, conCATenative functions for python54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Gatos, conCATenative functions for python

Hacker News1