llm-claude-3


Namellm-claude-3 JSON
Version 0.8 PyPI version JSON
download
home_pageNone
SummaryLLM access to Claude 3 by Anthropic
upload_time2024-11-04 18:47:08
maintainerNone
docs_urlNone
authorSimon Willison
requires_pythonNone
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # llm-claude-3

[![PyPI](https://img.shields.io/pypi/v/llm-claude-3.svg)](https://pypi.org/project/llm-claude-3/)
[![Changelog](https://img.shields.io/github/v/release/simonw/llm-claude-3?include_prereleases&label=changelog)](https://github.com/simonw/llm-claude-3/releases)
[![Tests](https://github.com/simonw/llm-claude-3/actions/workflows/test.yml/badge.svg)](https://github.com/simonw/llm-claude-3/actions/workflows/test.yml)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/llm-claude-3/blob/main/LICENSE)

LLM access to Claude 3 by Anthropic

## Installation

Install this plugin in the same environment as [LLM](https://llm.datasette.io/).
```bash
llm install llm-claude-3
```

## Usage

First, set [an API key](https://console.anthropic.com/settings/keys) for Claude 3:
```bash
llm keys set claude
# Paste key here
```

Run `llm models` to list the models, and `llm models --options` to include a list of their options.

Run prompts like this:
```bash
llm -m claude-3.5-sonnet 'Fun facts about pelicans'
llm -m claude-3.5-haiku 'Fun facts about armadillos'
llm -m claude-3-opus 'Fun facts about squirrels'
```
Images are supported too:
```bash
llm -m claude-3.5-sonnet 'describe this image' -a https://static.simonwillison.net/static/2024/pelicans.jpg
llm -m claude-3-haiku 'extract text' -a page.png
```

## Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:
```bash
cd llm-claude-3
python3 -m venv venv
source venv/bin/activate
```
Now install the dependencies and test dependencies:
```bash
llm install -e '.[test]'
```
To run the tests:
```bash
pytest
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "llm-claude-3",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Simon Willison",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/1b/3b/b83b107d993ee77584893c97161faa64f164e96d15d90c6db081d32136c0/llm_claude_3-0.8.tar.gz",
    "platform": null,
    "description": "# llm-claude-3\n\n[![PyPI](https://img.shields.io/pypi/v/llm-claude-3.svg)](https://pypi.org/project/llm-claude-3/)\n[![Changelog](https://img.shields.io/github/v/release/simonw/llm-claude-3?include_prereleases&label=changelog)](https://github.com/simonw/llm-claude-3/releases)\n[![Tests](https://github.com/simonw/llm-claude-3/actions/workflows/test.yml/badge.svg)](https://github.com/simonw/llm-claude-3/actions/workflows/test.yml)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/llm-claude-3/blob/main/LICENSE)\n\nLLM access to Claude 3 by Anthropic\n\n## Installation\n\nInstall this plugin in the same environment as [LLM](https://llm.datasette.io/).\n```bash\nllm install llm-claude-3\n```\n\n## Usage\n\nFirst, set [an API key](https://console.anthropic.com/settings/keys) for Claude 3:\n```bash\nllm keys set claude\n# Paste key here\n```\n\nRun `llm models` to list the models, and `llm models --options` to include a list of their options.\n\nRun prompts like this:\n```bash\nllm -m claude-3.5-sonnet 'Fun facts about pelicans'\nllm -m claude-3.5-haiku 'Fun facts about armadillos'\nllm -m claude-3-opus 'Fun facts about squirrels'\n```\nImages are supported too:\n```bash\nllm -m claude-3.5-sonnet 'describe this image' -a https://static.simonwillison.net/static/2024/pelicans.jpg\nllm -m claude-3-haiku 'extract text' -a page.png\n```\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n```bash\ncd llm-claude-3\npython3 -m venv venv\nsource venv/bin/activate\n```\nNow install the dependencies and test dependencies:\n```bash\nllm install -e '.[test]'\n```\nTo run the tests:\n```bash\npytest\n```\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "LLM access to Claude 3 by Anthropic",
    "version": "0.8",
    "project_urls": {
        "CI": "https://github.com/simonw/llm-claude-3/actions",
        "Changelog": "https://github.com/simonw/llm-claude-3/releases",
        "Homepage": "https://github.com/simonw/llm-claude-3",
        "Issues": "https://github.com/simonw/llm-claude-3/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5b4db0c1666ce08310317673cdd77009ae00b8acb553d627c2bb2bbc1f81c44d",
                "md5": "34ecfcbce283a2b7cbd6c9efc7ab1473",
                "sha256": "3f8930c2a2d23a86a4c15e04f8ef530d81c7445395b72c866967296c7f842e52"
            },
            "downloads": -1,
            "filename": "llm_claude_3-0.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "34ecfcbce283a2b7cbd6c9efc7ab1473",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 8716,
            "upload_time": "2024-11-04T18:47:06",
            "upload_time_iso_8601": "2024-11-04T18:47:06.047201Z",
            "url": "https://files.pythonhosted.org/packages/5b/4d/b0c1666ce08310317673cdd77009ae00b8acb553d627c2bb2bbc1f81c44d/llm_claude_3-0.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1b3bb83b107d993ee77584893c97161faa64f164e96d15d90c6db081d32136c0",
                "md5": "32e13ed9f855760da4ba5324c8eba6ac",
                "sha256": "a7886e4f4693d9aa109c332352129b363c8bab62dc2f2d9293fb2873436474df"
            },
            "downloads": -1,
            "filename": "llm_claude_3-0.8.tar.gz",
            "has_sig": false,
            "md5_digest": "32e13ed9f855760da4ba5324c8eba6ac",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 9172,
            "upload_time": "2024-11-04T18:47:08",
            "upload_time_iso_8601": "2024-11-04T18:47:08.525649Z",
            "url": "https://files.pythonhosted.org/packages/1b/3b/b83b107d993ee77584893c97161faa64f164e96d15d90c6db081d32136c0/llm_claude_3-0.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-04 18:47:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "simonw",
    "github_project": "llm-claude-3",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "llm-claude-3"
}
        
Elapsed time: 2.19559s