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.5.tar.gz (5.6 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.5-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: anthropic-0.2.5.tar.gz
  • Upload date:
  • Size: 5.6 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.5.tar.gz
Algorithm Hash digest
SHA256 318eb0dd4ba8f4e4cf86a656417ffc34f3ad87973051f85b0934400ca8e6a128
MD5 e2f7bc1a6e47ba4af3ecc0122a0e14bd
BLAKE2b-256 3b5071e5daa0e8876de49c92c3e0cabbe86e402d66075245c227a48947917c15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: anthropic-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 6.1 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a840fbc7e0da005d2ca1a5db09860d7e6f70a18a003c54a1f050bcd6bdb993ee
MD5 7b7820a8c6259b5d0b3e3d2823b7dcac
BLAKE2b-256 009d0a87a0c1cdf4f49d869e9394f6946be4d0baa3906c3b3a002eb0093e08fe

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

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