Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Mistral Python Client

This client is inspired from cohere-python

You can use the Mistral Python client to interact with the Mistral AI API.

Installing

pip install mistralai

From Source

This client uses poetry as a dependency and virtual environment manager.

You can install poetry with

pip install poetry

poetry will set up a virtual environment and install dependencies with the following command:

poetry install

Run examples

You can run the examples in the examples/ directory using poetry run or by entering the virtual environment using poetry shell.

API Key Setup

Running the examples requires a Mistral AI API key.

  1. Get your own Mistral API Key: https://docs.mistral.ai/#api-access
  2. Set your Mistral API Key as an environment variable. You only need to do this once.
# set Mistral API Key (using zsh for example)
$ echo 'export MISTRAL_API_KEY=[your_key_here]' >> ~/.zshenv

# reload the environment (or just quit and open a new terminal)
$ source ~/.zshenv

Using poetry run

cd examples
poetry run python chat_no_streaming.py

Using poetry shell

poetry shell
cd examples

>> python chat_no_streaming.py

Metadata

Release files for eidolon-ai-mistralai 0.1.6a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eidolon-ai-mistralai 0.1.6a0
File Size Uploaded Provenance
eidolon_ai_mistralai-0.1.6a0.tar.gz 11.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for eidolon-ai-mistralai 0.1.6a0
File Interpreter ABI Platform
eidolon_ai_mistralai-0.1.6a0-py3-none-any.whl Python 3 none any Details

Total release size: 27.3 kB

Release files / eidolon_ai_mistralai-0.1.6a0.tar.gz

Download URL eidolon_ai_mistralai-0.1.6a0.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3acfdad10419d7c23a45a95cd8e6c1cd093ee61bb614fc37b0035f5a2c18742b
BLAKE2b-256 checksum
How to use checksums
dae2acfa2a794545e053732eee4e5cc12b1c59e569453fc5ec5dd75531eff2ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.2 Darwin/23.2.0

Release files / eidolon_ai_mistralai-0.1.6a0-py3-none-any.whl

Download URL eidolon_ai_mistralai-0.1.6a0-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d40744b8064c3bc98b360f24dde902efd6ed06629e1c61596a0e0f0095ed056e
BLAKE2b-256 checksum
How to use checksums
588d2b62769330a06d7a3bafbd26ecd2334f3ca8da5d0298e7ae287fda840d2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.2 Darwin/23.2.0

Security for eidolon-ai-mistralai 0.1.6a0

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.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page