Skip to main content

topenai

GitHub last commit (branch) GitHub Workflow Status (with event)

topenai (terminal openai) — a simple command line interface tool to interact with OpenAI.

Installation

pip install topenai

How to get an OpenAI API key

OpenAPI models

To install the latest testing version (may contain more bugs), run:

pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ topenai

Features

  • Multiple chat threads
  • Chat history
  • Rename, delete and switch sessions

Usage

Run topenai in your terminal

  • Enter /new to start a new chat (/n)
  • /switch <chat_id> to change chat (/s)
  • /list to list all chats (/l)
  • /rename <old_id> <new_id> to rename a chat (/r)
  • /delete <chat_id> to delete a chat (/d)
  • /apikey to change API key
  • /model to change model
  • /help to display this help message (/h)
  • /exit to exit (/e)

Known issues

  • UUIDs of sessions instead of readable names
  • Rename is not working

Developing Setup

If you want to set this package up for directly editing it's source code (for contributing):

  1. Clone the package

     git clone https://github.com/vladzima/topenai
    
  2. Create a dynamic link This will make the package dynamically update with your local changes:

     pip install -e .
    

TODO

  • Make chat history more accesible
  • Allow OpenAI API fune-tuning parameters
  • Migrate to official OpenAI python API client

Metadata

Release files for topenai 0.0.8

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

Source distribution (sdist)

Source distribution for topenai 0.0.8
File Size Uploaded Provenance
topenai-0.0.8.tar.gz 6.0 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 12.1 kB

Release files / topenai-0.0.8.tar.gz

Download URL topenai-0.0.8.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d0d5fca85d18da2385c9a30454bf112f7b18d92e4d87c2a8c5b3a153065cf52f
BLAKE2b-256 checksum
How to use checksums
eaf8febbfac6ca11c49c3f3180ec39ca00e8b50dfaba368710ddf70d1353c404
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / topenai-0.0.8-py3-none-any.whl

Download URL topenai-0.0.8-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c112cf1d5a2b463f23a8b97b81e8463f0c28355687384e3d81d0de7024079942
BLAKE2b-256 checksum
How to use checksums
0cecbb7be7a1cda0b08ed24039f951aa364d1836c7766e84c5bf9915871681c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Security for topenai 0.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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