BSD Ports

ai/py-anthropic 0.104.0_1 MidnightBSD

Convenient access to the Anthropic REST API via python

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Last update
Commit
dee1e47e52
License
mit
Categories
ai, python

Description

The Anthropic Python library provides convenient access to the Anthropic REST API from any Python application. It includes type definitions for all request params and response fields, and offers both synchronous and asynchronous clients powered by httpx.

The REST API documentation can be found on docs.anthropic.com.

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}anthropic

From mports:

cd /usr/mports/ai/py-anthropic && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}anthropic>0:ai/py-anthropic

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

As this port's Makefile names them.

Build 3

Runtime 8

Build dependencies 3
Run dependencies 8

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
anthropic-0.104.0.tar.gz8493291ae8ef4709e90cc2068c8e8a63c1ecb63cc5360d325a4bef8b296aad76148be3
Master sites 1
  • PYPI

Commit history 1

DateCommitCreditsLog message
dee1e47e52 Lucas Holt ai: add new category and move AI/ML ports from misc
Create the ai category (Artificial intelligence and machine learning) and relocate 42 AI/ML ports from misc into it. - Register ai in Mk/bsd.mport.mk VALID_CATEGORIES and the top-level Makefile - Add ai/Makefile; drop the moved entries from misc/Makefile (also removes the stale linux-claude SUBDIR left over from the claude-code rename) - git mv 42 ports and set their primary CATEGORIES to ai - Rewrite misc/<port> dependency origins to ai/<port> in external dependents (devel/py-beartype, math/py-faiss, multimedia/py-torchcodec, textproc/py-tokenizers) and among the moved ports themselves - Record the origin migrations in MOVED Ports moved: chatgpt-shell-cli, claude-code, claude-code-legacy, clawhub, codex, gemini-cli, github-copilot-cli, grok-cli, lean-ctx, llama-cpp, ollama, …