Catalog PyPI
Back to packageRELEASE DETAILS

0.1.0a1

PyPI

ag-llm

Add your description here

Published27 Jan 2026
Direct dependencies1
Transitive dependenciesNot calculated

README

Version 0.1.0a1 documentation

ag-llm

A Python package that integrates LLM functionality directly into your Python shell experience.

Installation

uv install ag-llm

Or alternatively:

pip install ag-llm

Usage

Once installed, you can use ag directly in your Python shell with a simple syntax:

import ag
ag/"how are you"

This sends your query to the default LLM and streams the response directly in your terminal with beautiful markdown rendering thanks to Streamdown.

Features

  • Direct Python Integration: Use natural Python syntax with the / operator
  • Streaming Responses: Get real-time output as the model generates responses
  • Markdown Rendering: Beautifully formatted output with code highlighting
  • IPython Integration: Automatically hooks into IPython for seamless usage
  • Simple Setup: Just import and start querying

Requirements

  • Python >= 3.8
  • llm for LLM integration
  • streamdown for markdown rendering

Configuration

The package uses the default configuration from the llm package for model selection. You can configure your preferred model using:

llm models default your-model-name

See the LLM documentation for more configuration options.

Example

import ag

# Simple query
ag/"What is the capital of France?"

# More complex query
ag/"Explain quantum computing in simple terms"

How It Works

When you use ag/"your query", the package:

  1. Sends your query to the configured LLM model via the llm package
  2. Streams the response token by token
  3. Renders the output using Streamdown for beautiful formatting
  4. Handles all the complexity behind the scenes

Development

To develop on this package:

git clone [repository-url]
cd ag-llm
uv install

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
llm
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
llm>=0.16runtime

Distribution files

2 collected
ag_llm-0.1.0a1-py3-none-any.whl

bdist_wheel · 21.36 KB · Python py3

Source file
ag_llm-0.1.0a1.tar.gz

sdist · 19.26 KB · Python source

Source file

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:15 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:bfc90d3cc0cea1664ff5c1aad380eca71bdb94b8a8b5df29eeebbf85e07783e8

Other collected versions

View all collected versions →