dallecli-1.2.0
توضیحات
A command line application to help wrap the OpenAI Dalle api and other utilities.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dallecli-1.2.0 |
| نام | dallecli |
| نسخه کتابخانه | 1.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Raiyan Yahya |
| ایمیل نویسنده | raiyanyahyadeveloper@gmail.com |
| آدرس صفحه اصلی | https://github.com/raiyanyahya/dallecli |
| آدرس اینترنتی | https://pypi.org/project/dallecli/ |
| مجوز | MIT |
[](https://github.com/raiyanyahya/dallecli/actions) [](https://github.com/raiyanyahya/dallecli/actions) [](https://sonarcloud.io/summary/new_code?id=raiyanyahya_dallecli)[](https://github.com/raiyanyahya/dallecli/actions?query=workflow%3ACodeQL) [](https://www.codacy.com/gh/raiyanyahya/dallecli/dashboard?utm_source=github.com&utm_medium=referral&utm_content=raiyanyahya/dallecli&utm_campaign=Badge_Grade) []
[](https://badge.fury.io/py/dallecli)[](https://pypi.python.org/pypi/dallecli/)[](https://svgshare.com/i/Zhy.svg)[](https://svgshare.com/i/ZjP.svg)
# DalleCli 💠
`dallecli` is a community-maintained cli designed to provide users with the ability to generate, edit and filter images using the DALL-E 2 API provided by OpenAI, all from the command line.
The tool provides three main commands, generate, edit, and filter.
The `generate` command allows the user to generate an image using a prompt, with the option to apply a filter, specify the size, and choose the number of times to generate the image. The generated image can also be saved to a specified file path.
The `edit` command provides the ability to edit an existing image by adjusting the brightness, contrast, and sharpness of the image. The edited image is then saved to a new file.
The `filter` command allows users to apply various filters and effects to an existing image. The user can select from a range of different filters, and the filtered image can be saved to a specified file path.
This is ideal for developers, designers, and anyone who wants to quickly generate and manipulate images without the need for a full-fledged image editing software. I hope you find it useful.
## Configuration
The cli requires you to have an api token to query the OpenAI's api. You can read about and get it here https://platform.openai.com/account/api-keys.
## Installation
Install the dallecli python package directly from pypi.
```console
pip install dallecli
```
I would recommend using pipx instead of pip to install cli applications on you machine.
## Usage
```console
Usage: dallecli [OPTIONS] COMMAND [ARGS]...
💠 Use the Dall.E 2 api to generate, edit & filter images from the cmd line.
Options:
--help Show this message and exit.
Commands:
edit 🎴 Change the brightness, contrast and sharpness of an image.
filter 🦄 Apply filters and effects to an image.
generate 🌸 Generate an image from the OpenAI Dalle api.
update 🔐 Update the OpenAI API key.
```
### Commands and Options
**```generate```**
```console
Usage: dallecli generate [OPTIONS]
🌸 Generate an image from the OpenAI Dalle api
Options:
--prompt TEXT 💬 The prompt to generate the image from.
--size TEXT 📐 The size of the generated image.
--filter 🎨 Apply a filter to the generated image.
--iterations INTEGER 🔄 The number of times to generate the image
--save-path FILE 💾 Save the generated image to the specifiedfile path
--help Show this message and exit.
```
**```edit```**
```console
Usage: dallecli edit [OPTIONS] IMAGE_PATH
🎴 Change the brightness, contrast and sharpness of an image.
Options:
--brightness FLOAT 💡 The brightness of the image
--contrast FLOAT 🌈 The contrast of the image
--sharpness FLOAT 🔪 The sharpness of the image
--help Show this message and exit.
```
**```filter```**
```console
Usage: dallecli filter [OPTIONS] IMAGE_PATH
🦄 Apply filters and effects to an image.
Options:
--filter [grayscale|sepia|blur|contour|detail|edge_enhance|edge_enhance_more|emboss|find_edges|sharpen|smooth|smooth_more|outline|posterize|solarize|invert|flip]
🎨 The filter to apply to the image
--save-path PATH The directory to save the filtered image.
Defaults to the current directory.
--help Show this message and exit.
```
**```update```**
```console
Usage: dallecli update [OPTIONS]
🔐 Update the OpenAI API key.
Options:
--help Show this message and exit.
```
Please feel to create issues or request for features. There will be many features added to the cli.
نیازمندی
| مقدار | نام |
|---|---|
| ==8.1.3 | click |
| ==0.26.5 | openai |
| ==13.3.1 | rich |
| - | idna |
| - | pillow |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >3.5 | Python |
نحوه نصب
نصب پکیج whl dallecli-1.2.0:
pip install dallecli-1.2.0.whl
نصب پکیج tar.gz dallecli-1.2.0:
pip install dallecli-1.2.0.tar.gz