Skip to main content

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

Metadata

Release files for uGPT 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uGPT 0.1.2
File Size Uploaded
uGPT-0.1.2.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for uGPT 0.1.2
File Interpreter ABI Platform
uGPT-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 15.5 kB

Release files / uGPT-0.1.2.tar.gz

Download URL uGPT-0.1.2.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c7370861d3cf44a03a9eda9542047f51f2518fd14dce98a37be46d8139119b99
BLAKE2b-256 checksum
How to use checksums
07ecf36f38bbd16db2aa89cb7b12910c3d286a3e6e259f7de1360bd1679a1197
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Release files / uGPT-0.1.2-py3-none-any.whl

Download URL uGPT-0.1.2-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9993df6f8aeb3686fb39544d5e7a5a9c8b2f7f5b88e3acabbe18cade0a3d455b
BLAKE2b-256 checksum
How to use checksums
fc35c4a91a8c3a8035c47bceff2fb98e44d6dbf0fbf063955a250da24e46a552
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page