Contents

anthropic 0.81.0

0

The official Python library for the anthropic API

The official Python library for the anthropic API

Stars: 2780, Watchers: 2780, Forks: 458, Open Issues: 105

The anthropics/anthropic-sdk-python repo was created 3 years ago and the last code push was 13 hours ago.
The project is very popular with an impressive 2780 github stars!

How to Install anthropic

You can install anthropic using pip

pip install anthropic

or add it to a project with poetry

poetry add anthropic

Package Details

Author
None
License
MIT
Homepage
None
PyPi:
https://pypi.org/project/anthropic/
GitHub Repo:
https://github.com/anthropics/anthropic-sdk-python

Classifiers

  • Software Development/Libraries/Python Modules
No  anthropic  pypi packages just yet.

Errors

A list of common anthropic errors.

Code Examples

Here are some anthropic code examples and snippets.

GitHub Issues

The anthropic package has 105 open issues on GitHub

  • feat(beta): support class methods and instance methods for tool helpers
  • fix(streaming): safely handle dicts in accumulate_event
  • fix(beta): strip betas from individual batch request params
  • fix(compaction): also filter out server_tool_use blocks before compaction
  • fix(tool_runner): propagate container_id for programmatic tool calling
  • fix(bedrock): fix region inference when aws_profile is used
  • feat(bedrock): add support for passing boto3.Session
  • feat(bedrock): add support for AWS_BEARER_TOKEN_BEDROCK
  • fix(streaming): handle raw dicts in accumulate_event to prevent AttributeError
  • fix(streaming): handle out-of-order content blocks in accumulation
  • fix: strip schema field from tool definitions to prevent 500 errors
  • feat: add thinking_tokens to usage models and streaming accumulation
  • fix(tests): make mock_aws_config Windows compatible
  • feat(bedrock): add support for count_tokens
  • fix(streaming): check request body for beta flags during accumulation

See more issues on GitHub