Skip to main content

Anthropic Python SDK

This python repo provides access to Anthropic's safety-first language model APIs.

For more information on our APIs, please check out Anthropic's documentation.

How to use

pip install .
export ANTHROPIC_API_KEY=<insert token here>
python examples/basic_sync.py
python examples/basic_stream.py
python examples/count_tokens.py

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anthropic-0.2.6.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anthropic-0.2.6-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file anthropic-0.2.6.tar.gz.

File metadata

  • Download URL: anthropic-0.2.6.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for anthropic-0.2.6.tar.gz
Algorithm Hash digest
SHA256 253dca8484bca13eab08afa6b1e1d3f3451d6b65cc2be31c5cd4dac1a49a03f7
MD5 495aa4b9a8a9f01a223cec1fbf5a9f23
BLAKE2b-256 db53dccdb772beb36f6aa90f3e763a7fd10350c60113081daecbbc4ed99d53c8

See more details on using hashes here.

File details

Details for the file anthropic-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: anthropic-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for anthropic-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 bf4b69a9d25d573162accbe8aa9e022331c67a82519250ac30573ad506a1f663
MD5 fb48bc31a2d4a471aa143b6a8c63c271
BLAKE2b-256 b33cfc3e36069ede0c4458ec4efed8cab0df2e5984a1b97345fd7ea2cb6ae690

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.6

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page