Skip to main content

A simple async and sync Mistral API client

Project description

simple-mistral

Simple Mistral AI API client

Your simple async and sync Mistral client

image info

Installation

You can install the package using pip:

pip install simple-mistral

Or install directly from the source:

git clone https://github.com/alaex777/simple-mistral.git
cd simple-mistral
pip install -e .

Requirements

  • Python 3.7+
  • requests
  • aiohttp (for async support)

Usage

from simple_mistral import MistralClient

# Initialize the client
client = MistralClient(api_key="your-api-key")

# Synchronous request
response = client.send_request(
    message="What is Python?"
)

# Asynchronous request
response = await client.send_request_async(
    message="What is Python?"
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_mistral-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

simple_mistral-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file simple_mistral-0.1.0.tar.gz.

File metadata

  • Download URL: simple_mistral-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for simple_mistral-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9c0680238949bf1f89802f767c4a6e1eb03db4df74cb9987c39449c2e624e5d0
MD5 e215bffcab15949a48ef7ac087552ba4
BLAKE2b-256 65f4f7e98a40e226b76a41cad889d9bda6651945e0de21b856dae0793d25ca73

See more details on using hashes here.

File details

Details for the file simple_mistral-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: simple_mistral-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for simple_mistral-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 404f8fe508a119f7cc60fa27fc1d64f0c9c11a227bdf6eac49213fb93c609544
MD5 8cc8e8554fb97e4d38b81a7c0cf18765
BLAKE2b-256 eac8617970ef860022d259212e54efa4a0629a3db914581cb0cae7a0345e7d06

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