semvec/pypi-packages huggingface dataset:
ask-openai 0.1.7
Explain exceptions using OpenAI / GPT-3
Requires Python: >=3.7,<4.0

This package `ask_openai` provides a single minimal implementation
of a function decorator `ask`.

If the decorated function raises an error,
the decorator asks OpenAI / GPT-3 to explain it to you.

Use as follows:

```Python
import os
from ask_openai import ask

ask = ask(api_key=os.environ['OPENAI_API_KEY'], logger=print)


@ask
def f(x):
    return 1 / 0
```

This will print something like:

```commandline
OpenAI explanation: Division by zero is an error because a number cannot be divided by 0.
```
dbt-yamd-generator 0.0.8
For generating dbt yaml and md files

# dbt_Yamd(Alpha Version)
A Yaml and Markdown file generator for dbt a.k.a dbt_yamd.

## Usage with Make File

```
# run the command below in your cli which triggers a user input request.

dbt_yamd 

- The first prompt is for the path to your dbt catalog.json file
- The next prompt is for the dbt project name.
- Next is the path to the folder or file to generate yaml/md for.
- The final prompt asks to generate templated md files - Yes/No.
```

# Requirements

The requirements for this package to work as inteneded is to ensure you have successully run your dbt model and also have run the dbt command "dbt docs generate". This package uses the catalog file generated by dbt to create a yaml file for dbt models.

# **Important information !!!!**

These are information the user of this program needs to be aware of to get optimum usage of this code. 

1. Before running this package ensure you have ran your dbt model successfully.
2. Ensure you are using the right dbt profile which is expected to be the one used for local.
3. Its adviceable to use the virtual environment as seen in the Makefile.
4. **As this is work in progress it is advisebale to use this when you dont have a yaml and md file yet as this will  overwrite your yaml and md files in your folder.**


# dbt_yamd_generator

simple library written for automatically generating the yaml and md files needed for dbt models as stated in the style guide.