This is my first REAL package.
Project description
Welcome to my OpenAI Playground!
Making Open AI even easier.
STILL ACTIVELY DEVELOPING
How to play
-
pip install easy-open-ai -
in your working folder, create
.envfile withOPENAI_API_KEY=, or make such environment variable -
enjoy!
from easy_open_ai import...Version 0.1.6
-
get_picture(text, save=True)(as b64_json string) -
get_n_pictures(text, n=3) -
get_answer(question) -
correct_grammar(text)
Version 0.1.7
-
get_picture_url(text)(url lives 1 hour) -
get_n_pictures_urls(text, n=3) -
is_harmful_text(text)(sometimes ignores censorship escaping: '@' instead of 'a', etc) -
how_many_text_tokens(text)(most of this package works with text no longer than 1024 text-tokens, it's recommended for validating the text length) -
sum_up_as_haiku(text) -
get_poem(text) -
get_answer_as_poem(question) -
autocomplete_text(text) -
translate_text(text, language='Ukrainian') -
get_answer_with_instruction(question,instruction, chaos_coefficient=0.5, model="gpt-3.5-turbo", max_tokens=1024)
Version 0.1.8
ADDED LIVE TEXT DISPLAYING
get_answer_with_instruction_stream(question)(it's a generator)
to get chatGPT-like live text generation, add
_streamto the name, for example,aget_answer_as_poem_stream(question)!not all of the available text functions have this yet
-
Version 0.1.9
- Automatic documentation for your function and FastAPI endpoints in a python file with
docstring file_name.pyterminal command (ordocstring path\to\file_name.py). If the docstring is already present, it will NOT overwrite it.
More easy functions coming soon!
For async version of a function, add a in front, for example, aget_picture(text) instead of get_picture(text).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file easy_open_ai-0.2.0.tar.gz.
File metadata
- Download URL: easy_open_ai-0.2.0.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bdb18b9fd1b27ce44b073699ba23d9a6b31fbda33595701a0bb6f607e5867f6b
|
|
| MD5 |
0ae7c43b920a078368f25f09a0e051a1
|
|
| BLAKE2b-256 |
d2585d031fb7711ec636ca2306443826c2573bc6b13359ca754dcd85c9b8fe7c
|
File details
Details for the file easy_open_ai-0.2.0-py3-none-any.whl.
File metadata
- Download URL: easy_open_ai-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6caabaccfe348796cb269edf7c1bf0a4dffd231fc892e72bc06b4dc2c41f54e
|
|
| MD5 |
0401f6038fc31dbeaabef3003ccbc552
|
|
| BLAKE2b-256 |
514c19d2ae5d01c9f77c289d04e111262dd2522e947b0a87b39a03b17d680069
|