Skip to main content

An easy to use API and CLI wrapper for chatGPT and other AIGC API base on utype

Project description

uGPT

uGPT is an API and CLI wrapper for chatGPT and other AIGC API base on utype to make integration easier

  • Version: 0.1.1 [test]
  • Author: @voidZXL
  • License: MIT

Features

  • provide type-hints for OpenAI's API and enforce them at runtime using utype, increasing integration experience and reducing bugs
  • provide easy to use commands for common AIGC tasks

Installation

pip install -U ugpt

uGPT requires Python >= 3.7

CLI Usage

use a simple command to start a chat session with chatGPT

ugpt chat 

NOTICE: in the first time, you will be asked for an API key, you can get that in here

if you need to set a request proxy, you can just use

ugpt set --proxy=http://127.0.0.1:7890

or update your API key using

ugpt set --key=<YOUR-NEW-API-KEY>

Image generation

you can generate image with prompt in a single command

ugpt draw "an orca whale in the sea"

... more are coming

API Usage

uGPT provided a developer-friendly wrapper for OpenAI's API, All the API params and responses are type-hinted and enforced at runtime using utype, increasing integration experience and reduce bugs

such as image.py

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

uGPT-0.1.2.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uGPT-0.1.2-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file uGPT-0.1.2.tar.gz.

File metadata

  • Download URL: uGPT-0.1.2.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for uGPT-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c7370861d3cf44a03a9eda9542047f51f2518fd14dce98a37be46d8139119b99
MD5 4783ffbe1dff90e54c793a487fa8f6a7
BLAKE2b-256 07ecf36f38bbd16db2aa89cb7b12910c3d286a3e6e259f7de1360bd1679a1197

See more details on using hashes here.

File details

Details for the file uGPT-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: uGPT-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for uGPT-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9993df6f8aeb3686fb39544d5e7a5a9c8b2f7f5b88e3acabbe18cade0a3d455b
MD5 a8a4f410434fe6f8514a466646019686
BLAKE2b-256 fc35c4a91a8c3a8035c47bceff2fb98e44d6dbf0fbf063955a250da24e46a552

See more details on using hashes here.

Supported by

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