Skip to main content

Library for accessing the anthropic API

Project description

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

Project details


Release history Release notifications | RSS feed

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.7.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: anthropic-0.2.7.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.7.tar.gz
Algorithm Hash digest
SHA256 dafdd617c79122bb97bc53634519e8dcba17b7e765a5a2372c77f6e3744127e5
MD5 94eb793978faf9872f87b9edd48fe6d8
BLAKE2b-256 60d59254b8a32718b609300aab4e23e5b547d7faa1e8a089cc15bb0f0f8463f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: anthropic-0.2.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b5d807b54c43ad4812a82b8389412507d62574b06af79c25dc2433233f1ab50f
MD5 51380459b9996dcffbf3a235ba7ca111
BLAKE2b-256 a16d16b0bad5209d2fac1f7af5932a12e1171d8ac8d04380cfc6de70c19ceb41

See more details on using hashes here.

Supported by

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