Skip to main content

No project description provided

Project description

Cohere Python Library

fern shield

The Cohere Python Library provides convenient access to the Cohere API from applications written in Python.

Installation

pip install --upgrade cohere

Usage

from cohere.client import Client

client = Client(
    client_name="YOUR_CLIENT_NAME",
    token="YOUR_TOKEN",
)

Async Client

from cohere.client import AsyncClient

client = AsyncClient(
    client_name="YOUR_CLIENT_NAME",
    token="YOUR_TOKEN",
)

Beta Status

This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning the package version to a specific version. This way, you can install the same version each time without breaking changes.

Contributing

While we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us!

On the other hand, contributions to the README are always very welcome!

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

cohere-5.0.0a1.tar.gz (43.6 kB view details)

Uploaded Source

Built Distribution

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

cohere-5.0.0a1-py3-none-any.whl (96.2 kB view details)

Uploaded Python 3

File details

Details for the file cohere-5.0.0a1.tar.gz.

File metadata

  • Download URL: cohere-5.0.0a1.tar.gz
  • Upload date:
  • Size: 43.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.7.17 Linux/5.15.0-1053-azure

File hashes

Hashes for cohere-5.0.0a1.tar.gz
Algorithm Hash digest
SHA256 3c4ce8d55d5f9f22f8938588dbd964746ef9b4f52e13a91cd2509e55d01a6d86
MD5 56c107260e973bfa5d63b5196c1e7326
BLAKE2b-256 f54a95630a840977062c43778190cb6e8314a07b0123ec5936278aa0f5f23561

See more details on using hashes here.

File details

Details for the file cohere-5.0.0a1-py3-none-any.whl.

File metadata

  • Download URL: cohere-5.0.0a1-py3-none-any.whl
  • Upload date:
  • Size: 96.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.7.17 Linux/5.15.0-1053-azure

File hashes

Hashes for cohere-5.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 e939c2087336769536fbb101894b3ff5c692a8dcc1a0bef185a38057bcf9132c
MD5 3a0c477f2c4eccac5ba17b0145febc40
BLAKE2b-256 9fc0a520009f09d252e20c0a95d5bd5a41d10ca047a942cc0cc8ba75bb967c28

See more details on using hashes here.

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