Name | mistralai JSON |
Version |
0.1.7
JSON |
| download |
home_page | None |
Summary | None |
upload_time | 2024-03-26 14:33:39 |
maintainer | None |
docs_url | None |
author | Bam4d |
requires_python | <4.0,>=3.9 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Mistral Python Client
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 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": null,
"name": "mistralai",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Bam4d",
"author_email": "bam4d@mistral.ai",
"download_url": "https://files.pythonhosted.org/packages/b5/cb/b2fa4e7608632ffb6495eb326dcf21ff5ff5af25a7692e0b5b24123f662b/mistralai-0.1.7.tar.gz",
"platform": null,
"description": "# Mistral Python Client\n\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 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": null,
"summary": null,
"version": "0.1.7",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9e8bc42dad4828bd98967cab779a81be3eec30d3050acc65b94dbdb50c033d3b",
"md5": "a2bc9a7f0cbf4a90749c81e022128d30",
"sha256": "6f9118e2db495f16d9766fb4128bed5228ae9c4808888316416fb1d12f4dbf87"
},
"downloads": -1,
"filename": "mistralai-0.1.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a2bc9a7f0cbf4a90749c81e022128d30",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 15671,
"upload_time": "2024-03-26T14:33:37",
"upload_time_iso_8601": "2024-03-26T14:33:37.372381Z",
"url": "https://files.pythonhosted.org/packages/9e/8b/c42dad4828bd98967cab779a81be3eec30d3050acc65b94dbdb50c033d3b/mistralai-0.1.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b5cbb2fa4e7608632ffb6495eb326dcf21ff5ff5af25a7692e0b5b24123f662b",
"md5": "04acae99537c20fb4e3263ea44d757be",
"sha256": "06a713732cb7180a6a12f17b5fbdc8d54f29fc3a4c85debbb4399465dbd18479"
},
"downloads": -1,
"filename": "mistralai-0.1.7.tar.gz",
"has_sig": false,
"md5_digest": "04acae99537c20fb4e3263ea44d757be",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 11336,
"upload_time": "2024-03-26T14:33:39",
"upload_time_iso_8601": "2024-03-26T14:33:39.004201Z",
"url": "https://files.pythonhosted.org/packages/b5/cb/b2fa4e7608632ffb6495eb326dcf21ff5ff5af25a7692e0b5b24123f662b/mistralai-0.1.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-26 14:33:39",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "mistralai"
}