Metadata-Version: 2.1
Name: hamel
Version: 0.0.6
Summary: General Utilities
Home-page: https://github.com/hamelsmu/hamel
Author: Hamel Husain
Author-email: hamel.husain@gmail.com
License: Apache Software License 2.0
Keywords: nbdev jupyter notebook python
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: Apache Software License
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastcore
Requires-Dist: pandas
Requires-Dist: openai
Provides-Extra: dev

# hamel

<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

[Hamel’s](https://hamel.dev) python utilities for rapid development.

## Install

``` sh
pip install hamel
```

## How to use

``` python
!oai_list_models --owned openai --limit 15
```

    | Name                    | Created Dt   |
    |:------------------------|:-------------|
    | gpt-4                   | 2023-06-27   |
    | gpt-4-0314              | 2023-06-27   |
    | gpt-4-0613              | 2023-06-12   |
    | gpt-3.5-turbo-0613      | 2023-06-12   |
    | gpt-3.5-turbo-16k-0613  | 2023-05-30   |
    | gpt-3.5-turbo-16k       | 2023-05-10   |
    | tts-1                   | 2023-04-19   |
    | gpt-3.5-turbo-0301      | 2023-02-28   |
    | gpt-3.5-turbo           | 2023-02-28   |
    | whisper-1               | 2023-02-27   |
    | text-embedding-ada-002  | 2022-12-16   |
    | text-davinci-003        | 2022-11-27   |
    | curie-similarity        | 2022-04-28   |
    | babbage-search-document | 2022-04-28   |
    | ada-code-search-text    | 2022-04-28   |

``` python
!oai_new_func --help
```

    usage: oai_new_func [-h] [--name NAME] [--description DESCRIPTION] [--url URL]
                        [--email EMAIL]

    Generate minimal scaffolding for an OpenAI Plugin.

    options:
      -h, --help                 show this help message and exit
      --name NAME                the name of your app for the LLM, ex: `todo`. By
                                 default, this is inferred from the name of your git
                                 repo. (default: )
      --description DESCRIPTION  the description of your application that will be
                                 read by the LLM. (default: )
      --url URL                  The url of your function endpoint. (default:
                                 http://localhost:8000)
      --email EMAIL              The email associated with your app. By default this
                                 is inferred by git. (default: )

``` python
!fetch_site --help
```

    usage: fetch_site [-h] [--to_markdown] url output_dir

    Fetch content from the specified URL and save it to the given directory. Saves
    the content as a markdown file if `to_markdown` is True. Otherwise, it saves the
    content as an HTML file.

    positional arguments:
      url            The site that you want to fetch documents from
      output_dir     The output directory to write documents to,

    options:
      -h, --help     show this help message and exit
      --to_markdown  Write output as markdown (recommended) (default: False)
