Skip to main content

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?"
)

Release files for simple-mistral 0.1.2

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

Source distribution (sdist)

Source distribution for simple-mistral 0.1.2
File Size Uploaded
simple_mistral-0.1.2.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for simple-mistral 0.1.2
File Interpreter ABI Platform
simple_mistral-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.6 kB

Release files / simple_mistral-0.1.2.tar.gz

Download URL simple_mistral-0.1.2.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bc44ac91bd712d29dab805b4b46dccfe63847560b3ae6e8563d99c0faf2d862b
BLAKE2b-256 checksum
How to use checksums
a0ab3881616ddabb8970d2f4f485031b66673572694fcd093786892f4f86f795
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.22

Release files / simple_mistral-0.1.2-py3-none-any.whl

Download URL simple_mistral-0.1.2-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cafd902e1383c301ff715b7337a951a1285f22a43bce74515db915644c3b01af
BLAKE2b-256 checksum
How to use checksums
75c00a5c83effc8a92680baa382ebc7261f15d35754ffe86c9bc56d47aa9aa75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.22

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

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