Skip to main content

advanced-askai

Linting

MacOS_Tests Ubuntu_Tests Win_Tests

This package allows you to have a chat conversation with AI right from your terminal.

Results are streamed to the console.

It has api bindings to allow programatic access and can be used for other tools.

The api key is stored using the secure keyring package. Right now we only support OpenAI's chatbot, but in the future I hope to include support for anthropics.

The only stable api in this package is located at advanced_askai.api

Binding to any other module in this library is subject to break.

Help

usage: Ask OpenAI for help with code

positional arguments:
  prompt                Prompt to ask OpenAI

options:
  -h, --help            show this help message and exit
  --input-file INPUT_FILE
                        Input file containing prompts
  --json                Print response as json
  --set-key SET_KEY     Set OpenAI key
  --output OUTPUT       Output file
  --advanced            bleeding edge model: gpt-4o
  --model MODEL
  --verbose
  --no-stream
  --assistant-prompt ASSISTANT_PROMPT
  --assistant-prompt-file ASSISTANT_PROMPT_FILE
                        File containing assistant prompt
  --max-tokens MAX_TOKENS
                        Max tokens to return
  --code                Code mode: enables aider mode
  --check               Sends the response back to the chatbot for a second opinion

See advanced_askai.api.*

Develope

To develop software, run . ./activate.sh

Windows

This environment requires you to use git-bash.

Linting

Run ./lint.sh to find linting errors using pylint, flake8 and mypy.

Releases

  • 1.0.3 - Treat interactive exit case-insensitively.
  • 1.0.2 - Fixes openai dependency break: openai>=1.3.7,<=1.55.3
  • 1.0.1 - If the max tokens goes negative, just set it to 16000.

Metadata

Release files for advanced-askai 1.0.3

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

Built distribution (wheel)

Table of built distributions (wheels) for advanced-askai 1.0.3
File Interpreter ABI Platform Actions
advanced_askai-1.0.3-py3-none-any.whl Python 3 none any Details for advanced_askai-1.0.3-py3-none-any.whl

Release files / advanced_askai-1.0.3-py3-none-any.whl

Download URL advanced_askai-1.0.3-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
211222b147d6126798e784019f1c2370cba478dffd692b404a8319c6decd2c2b
BLAKE2b-256 checksum
How to use checksums
a214f93c882a5a9c9cff0e0db12d37c3c40579c42567ef9599a0f936ab976a44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for advanced-askai 1.0.3

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