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.9+
  • requests (for sync requests)
  • aiohttp (for async requests)

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.2.tar.gz (3.8 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.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple_mistral-0.1.2.tar.gz
  • Upload date:
  • Size: 3.8 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.2.tar.gz
Algorithm Hash digest
SHA256 bc44ac91bd712d29dab805b4b46dccfe63847560b3ae6e8563d99c0faf2d862b
MD5 717a9c7e9f963590334c5e81dbcfdacd
BLAKE2b-256 a0ab3881616ddabb8970d2f4f485031b66673572694fcd093786892f4f86f795

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_mistral-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cafd902e1383c301ff715b7337a951a1285f22a43bce74515db915644c3b01af
MD5 bb8ef2acc3293b47bc1a9639c6b6f0d7
BLAKE2b-256 75c00a5c83effc8a92680baa382ebc7261f15d35754ffe86c9bc56d47aa9aa75

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