Metadata-Version: 2.1
Name: extism-func-gen
Version: 0.1.0
Summary: 
License: MIT
Author: The Extism Authors
Author-email: oss@extism.org
Requires-Python: >=3.11,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: extism (>=0.3.0,<0.4.0)
Requires-Dist: langchain (>=0.0.150,<0.0.151)
Requires-Dist: openai (>=0.27.4,<0.28.0)
Description-Content-Type: text/markdown

# func-gen


## Build

```bash
poetry install
```

## Run

```bash
# Need to set the OpenAI API key
export OPENAI_API_KEY="sk-<paste-key-here>"

# Create a func
poetry run func-gen count_vowels -d "Write a function that counts the number of vowels in an input string"

# Use a func
echo "hello world" | poetry run func-gen count_vowels
# 3
```


