A simple async and sync Mistral API client
Project description
simple-mistral
Simple Mistral AI API client
Your simple async and sync Mistral client
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
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
simple_mistral-0.1.1.tar.gz
(3.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple_mistral-0.1.1.tar.gz.
File metadata
- Download URL: simple_mistral-0.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba31290fdb346a0619851b0d86faa5b6cb70ef14d0fae06f60b69518e89f6d08
|
|
| MD5 |
02e9ccc0c1a9e5cebd3b0c2c7a62302a
|
|
| BLAKE2b-256 |
39fcfe5c8b723e07afe47b6646d2345021a545911c630a3b7121723c146cb60f
|
File details
Details for the file simple_mistral-0.1.1-py3-none-any.whl.
File metadata
- Download URL: simple_mistral-0.1.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4faba480ece02f8388fb6a8149e4465354ac986fa72b835aaafd9c501d400ae1
|
|
| MD5 |
c36cb17c67405198bc044b9fc9850d7e
|
|
| BLAKE2b-256 |
f91ceb042320bc1318be3cc2db2a781fa11a06c26358fa7a5d52b7a8dd4eef77
|