Name | mitta_mistralai JSON |
Version |
0.1.3b2
JSON |
| download |
home_page | |
Summary | Fork of MistralAI client library with httpx allowed to be 0.27.0+. Will track with official Mistral release until this is addressed in the main package. |
upload_time | 2024-03-04 04:35:26 |
maintainer | |
docs_url | None |
author | Kord Campbell |
requires_python | >=3.9,<4.0 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Mistral Python Client
## Mitta Build
**NOTE**: This fork will track with Mistral's client library until that library is updated with a newer dependency for httpx. This library allows httpx version >= 0.27.0. No other changes, other than import names, have been made to this library. This library has been tested for embeddings and chat completions.
The source code is located [here](https://github.com/MittaAI/client-python). This is NOT a client library for [Mitta](https://mitta.ai).
## Carry On
This client is inspired from [cohere-python](https://github.com/cohere-ai/cohere-python)
You can use the Mistral Python client to interact with the Mistral AI API.
## Installing
```bash
pip install mitta_mistralai
```
### From Source
This client uses `poetry` as a dependency and virtual environment manager.
You can install poetry with
```bash
pip install poetry
```
`poetry` will set up a virtual environment and install dependencies with the following command:
```bash
poetry install
```
## Run examples
You can run the examples in the `examples/` directory using `poetry run` or by entering the virtual environment using `poetry shell`.
### API Key Setup
Running the examples requires a Mistral AI API key.
1. Get your own Mistral API Key: <https://docs.mistral.ai/#api-access>
2. Set your Mistral API Key as an environment variable. You only need to do this once.
```bash
# set Mistral API Key (using zsh for example)
$ echo 'export MISTRAL_API_KEY=[your_key_here]' >> ~/.zshenv
# reload the environment (or just quit and open a new terminal)
$ source ~/.zshenv
```
### Using poetry run
```bash
cd examples
poetry run python chat_no_streaming.py
```
### Using poetry shell
```bash
poetry shell
cd examples
>> python chat_no_streaming.py
```
Raw data
{
"_id": null,
"home_page": "",
"name": "mitta_mistralai",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "Kord Campbell",
"author_email": "kordless@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/14/73/191f5d7f7c70d23ab559eb0d712fcfbe27ff4da99030e92ed5b4957dc026/mitta_mistralai-0.1.3b2.tar.gz",
"platform": null,
"description": "# Mistral Python Client\n\n## Mitta Build\n**NOTE**: This fork will track with Mistral's client library until that library is updated with a newer dependency for httpx. This library allows httpx version >= 0.27.0. No other changes, other than import names, have been made to this library. This library has been tested for embeddings and chat completions.\n\nThe source code is located [here](https://github.com/MittaAI/client-python). This is NOT a client library for [Mitta](https://mitta.ai).\n\n\n## Carry On\nThis client is inspired from [cohere-python](https://github.com/cohere-ai/cohere-python)\n\nYou can use the Mistral Python client to interact with the Mistral AI API.\n\n## Installing\n\n```bash\npip install mitta_mistralai\n```\n\n### From Source\n\nThis client uses `poetry` as a dependency and virtual environment manager.\n\nYou can install poetry with\n\n```bash\npip install poetry\n```\n\n`poetry` will set up a virtual environment and install dependencies with the following command:\n\n```bash\npoetry install\n```\n\n## Run examples\n\nYou can run the examples in the `examples/` directory using `poetry run` or by entering the virtual environment using `poetry shell`.\n\n### API Key Setup\n\nRunning the examples requires a Mistral AI API key.\n\n1. Get your own Mistral API Key: <https://docs.mistral.ai/#api-access>\n2. Set your Mistral API Key as an environment variable. You only need to do this once.\n\n```bash\n# set Mistral API Key (using zsh for example)\n$ echo 'export MISTRAL_API_KEY=[your_key_here]' >> ~/.zshenv\n\n# reload the environment (or just quit and open a new terminal)\n$ source ~/.zshenv\n```\n\n### Using poetry run\n\n```bash\ncd examples\npoetry run python chat_no_streaming.py\n```\n\n### Using poetry shell\n\n```bash\npoetry shell\ncd examples\n\n>> python chat_no_streaming.py\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "Fork of MistralAI client library with httpx allowed to be 0.27.0+. Will track with official Mistral release until this is addressed in the main package.",
"version": "0.1.3b2",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e72ddf0e527f3826f3254eab898e7495480dd165761899ff816af56147ff8385",
"md5": "bf3fa79671866d226d74fab1b07cbd5f",
"sha256": "670df2a48a8ebe4a13062fd67746000dc3280866f6ecd4de934854b9ca2cb60a"
},
"downloads": -1,
"filename": "mitta_mistralai-0.1.3b2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "bf3fa79671866d226d74fab1b07cbd5f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9,<4.0",
"size": 16157,
"upload_time": "2024-03-04T04:35:25",
"upload_time_iso_8601": "2024-03-04T04:35:25.315821Z",
"url": "https://files.pythonhosted.org/packages/e7/2d/df0e527f3826f3254eab898e7495480dd165761899ff816af56147ff8385/mitta_mistralai-0.1.3b2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1473191f5d7f7c70d23ab559eb0d712fcfbe27ff4da99030e92ed5b4957dc026",
"md5": "8a0a9c7f3102a3a28800762b3c3cef0d",
"sha256": "936a14cf535f91adfad6efcd20e18de425333712345fbba283ee0499896d7d12"
},
"downloads": -1,
"filename": "mitta_mistralai-0.1.3b2.tar.gz",
"has_sig": false,
"md5_digest": "8a0a9c7f3102a3a28800762b3c3cef0d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9,<4.0",
"size": 12150,
"upload_time": "2024-03-04T04:35:26",
"upload_time_iso_8601": "2024-03-04T04:35:26.336275Z",
"url": "https://files.pythonhosted.org/packages/14/73/191f5d7f7c70d23ab559eb0d712fcfbe27ff4da99030e92ed5b4957dc026/mitta_mistralai-0.1.3b2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-04 04:35:26",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "mitta_mistralai"
}