[!IMPORTANT] Cohere python and typescript SDKs now also support bedrock and sagemaker! This is part of an effort to make it as frictionless as possible to get started with and switch between Cohere providers.
As such, package will soon be deprecated. Please see the platform support docs for code snippets and the status of this transition or go straight to the python and typescript repos to start using bedrock/sagemaker straight away
Cohere Python SDK (AWS SageMaker & Bedrock)
This package provides functionality developed to simplify interfacing with the Cohere models via AWS SageMaker Marketplace and the Cohere models via AWS Bedrock in Python >=3.9
Installation
The package can be installed with pip:
pip install --upgrade cohere-aws
Install from source:
python setup.py install
Quick Start
To use this library, you need to configure your AWS credentials. You can do this by running aws configure. Once that's set up, please refer to one of the Jupyter notebooks to get started. Here is the one for our medium command model
Note: by default we assume region configured in AWS CLI (aws configure get region), to override use region_name parameter, e.g.
client = Client(region_name='us-east-1')
Metadata
Release files for cohere-aws 0.8.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cohere-aws-0.8.18.tar.gz | 17.5 kB | Without provenance | Details for cohere-aws-0.8.18.tar.gz |
Release files / cohere-aws-0.8.18.tar.gz
| Download URL | cohere-aws-0.8.18.tar.gz |
|---|---|
| Size | 17.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d4e7dbb6caca8c4d79eaa7e1bae6c136aac79b2501a215166545a4d422341f8
|
|
BLAKE2b-256 checksum How to use checksums |
3ad4c0ce0a65c054a7a56483143bc7633f2e2d02cdad33bcfb6763ebc2d338ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.17
|
Security for cohere-aws 0.8.18
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.