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
${PYTHON_PKGNAMEPREFIX}hatch-fancy-pypi-readme>=0: devel/py-hatch-fancy-pypi-readme${PYTHON_PKGNAMEPREFIX}hatchling>=0: devel/py-hatchling${PYTHON_PKGNAMEPREFIX}wheel>0: devel/py-wheel
Runtime 8
${PYTHON_PKGNAMEPREFIX}anyio>=3.5.0: devel/py-anyio${PYTHON_PKGNAMEPREFIX}distro>=1.7.0: sysutils/py-distro${PYTHON_PKGNAMEPREFIX}docstring_parser>=0.15: textproc/py-docstring_parser${PYTHON_PKGNAMEPREFIX}httpx>=0.25.0: www/py-httpx${PYTHON_PKGNAMEPREFIX}jiter>=0.4.0: textproc/py-jiter${PYTHON_PKGNAMEPREFIX}pydantic2>=1.9.0: devel/py-pydantic2${PYTHON_PKGNAMEPREFIX}sniffio>=0: devel/py-sniffio${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.14: devel/py-typing-extensions
Build dependencies 3
Run dependencies 8
Required by 1
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| anthropic-0.104.0.tar.gz | 849329 | 1ae8ef4709e90cc2068c8e8a63c1ecb63cc5360d325a4bef8b296aad76148be3 |
Master sites 1
- PYPI