Skip to main content

General Utilities

Project description

hamel

Hamel’s python utilities for rapid development.

Install

pip install hamel

How to use

!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   |
!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.
  --description DESCRIPTION  the description of your application that will be
                             read by the LLM.
  --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.
!fetch_site --help
usage: fetch_site [-h] [--to_html] url output_dir

Fetch content from the specified URL and save it to the given directory. Saves
the content as a markdown file unless `to_html` is True.

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_html   Write output as HTML instead of markdown. (default: False)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hamel-0.0.16.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

hamel-0.0.16-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file hamel-0.0.16.tar.gz.

File metadata

  • Download URL: hamel-0.0.16.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for hamel-0.0.16.tar.gz
Algorithm Hash digest
SHA256 03587df5a3da60416177f22051e550edcd51446e1a5475c1aaedf3ef014f1743
MD5 d39092362a9eb8237da790f788772f18
BLAKE2b-256 d7642f8c8573876fb80101cb5492937ba88279c87e3aa3c8d9e1447789831cc8

See more details on using hashes here.

File details

Details for the file hamel-0.0.16-py3-none-any.whl.

File metadata

  • Download URL: hamel-0.0.16-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for hamel-0.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 91a1b4f1756261e0d5d4aefc65a1dde7403dd5818ed863e46c6c64afd01646ba
MD5 7b2c56c085bc15faa069ce658093c7fb
BLAKE2b-256 26c218aa5b17067c0f25b4daf622a95db7c4c25d751b6a86784379b6e634793c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page