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.1.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.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

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

Hashes for simple_mistral-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ba31290fdb346a0619851b0d86faa5b6cb70ef14d0fae06f60b69518e89f6d08
MD5 02e9ccc0c1a9e5cebd3b0c2c7a62302a
BLAKE2b-256 39fcfe5c8b723e07afe47b6646d2345021a545911c630a3b7121723c146cb60f

See more details on using hashes here.

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

Hashes for simple_mistral-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4faba480ece02f8388fb6a8149e4465354ac986fa72b835aaafd9c501d400ae1
MD5 c36cb17c67405198bc044b9fc9850d7e
BLAKE2b-256 f91ceb042320bc1318be3cc2db2a781fa11a06c26358fa7a5d52b7a8dd4eef77

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