mistral-common


Namemistral-common JSON
Version 1.8.0 PyPI version JSON
download
home_pageNone
SummaryMistral-common is a library of common utilities for Mistral AI.
upload_time2025-07-15 09:36:29
maintainerNone
docs_urlNone
authorNone
requires_python<3.14,>=3.9.0
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">

<img src="./docs/assets/logo.svg" alt="Mistral AI" height="100"/>

<br/>
<br/>

# Mistral-common

[![PyPI version](https://img.shields.io/pypi/v/mistral-common?label=release&logo=pypi&logoColor=white)](https://pypi.org/project/mistral-common/)
[![Tests](https://img.shields.io/github/actions/workflow/status/mistralai/mistral-common/lint_build_test.yaml?label=tests&branch=main)](https://github.com/mistralai/mistral-common/actions/workflows/lint_build_test.yaml)
[![Documentation](https://img.shields.io/website?url=https%3A%2F%2Fmistralai.github.io%2Fmistral-common%2F&up_message=online&down_message=offline&label=docs)](https://mistralai.github.io/mistral-common/)
[![Python version](https://img.shields.io/badge/dynamic/json?query=info.requires_python&label=python&url=https%3A%2F%2Fpypi.org%2Fpypi%2Fmistral-common%2Fjson)](https://www.python.org/downloads/)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](./LICENCE)

</div>

## What is it? 

**mistral-common** is a set of tools to help you work with [Mistral AI](https://mistral.ai/) models.

We open-source the tokenizers, validation and normalization code that can be used with our models.

This ensures that you can take full advantage of our models for the following features:

- **tokenization** of text, images and tools calls.
- **validation and normalization** of requests, messages, tool calls, and responses. This is built on top of the [Pydantic](https://docs.pydantic.dev/latest/) library.

We also version our tokenizers to guarantee backward compatibility for the models that we release.

## For who ?

This library is for you if you want to:

- use our models in your own application.
- build your own models and want to use the same tokenization and validation code as we do.

## How to use it ?

You can install the library using pip:
```sh
pip install mistral-common[opencv]
```

For more information, please refer to the [documentation](https://mistralai.github.io/mistral-common/).

## How to contribute ?

We welcome contributions to this library. Please open an issue on our [GitHub repository](https://github.com/mistralai/mistral-common/issues) if you have any questions or suggestions.

All of our features are tested to ensure best usage. But if you encounter a bug, find difficulties in using `mistral-common`. Please also open an issue.

## License

This library is licensed under the Apache 2.0 License. See the [LICENCE](./LICENCE) file for more information.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "mistral-common",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.14,>=3.9.0",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "bam4d <bam4d@mistral.ai>",
    "download_url": "https://files.pythonhosted.org/packages/c1/c6/d7e2bbbe3274b6b3fb02fa7ea679db062bd4af14f7dc4665b7b0652eb7d3/mistral_common-1.8.0.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n\n<img src=\"./docs/assets/logo.svg\" alt=\"Mistral AI\" height=\"100\"/>\n\n<br/>\n<br/>\n\n# Mistral-common\n\n[![PyPI version](https://img.shields.io/pypi/v/mistral-common?label=release&logo=pypi&logoColor=white)](https://pypi.org/project/mistral-common/)\n[![Tests](https://img.shields.io/github/actions/workflow/status/mistralai/mistral-common/lint_build_test.yaml?label=tests&branch=main)](https://github.com/mistralai/mistral-common/actions/workflows/lint_build_test.yaml)\n[![Documentation](https://img.shields.io/website?url=https%3A%2F%2Fmistralai.github.io%2Fmistral-common%2F&up_message=online&down_message=offline&label=docs)](https://mistralai.github.io/mistral-common/)\n[![Python version](https://img.shields.io/badge/dynamic/json?query=info.requires_python&label=python&url=https%3A%2F%2Fpypi.org%2Fpypi%2Fmistral-common%2Fjson)](https://www.python.org/downloads/)\n[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](./LICENCE)\n\n</div>\n\n## What is it? \n\n**mistral-common** is a set of tools to help you work with [Mistral AI](https://mistral.ai/) models.\n\nWe open-source the tokenizers, validation and normalization code that can be used with our models.\n\nThis ensures that you can take full advantage of our models for the following features:\n\n- **tokenization** of text, images and tools calls.\n- **validation and normalization** of requests, messages, tool calls, and responses. This is built on top of the [Pydantic](https://docs.pydantic.dev/latest/) library.\n\nWe also version our tokenizers to guarantee backward compatibility for the models that we release.\n\n## For who ?\n\nThis library is for you if you want to:\n\n- use our models in your own application.\n- build your own models and want to use the same tokenization and validation code as we do.\n\n## How to use it ?\n\nYou can install the library using pip:\n```sh\npip install mistral-common[opencv]\n```\n\nFor more information, please refer to the [documentation](https://mistralai.github.io/mistral-common/).\n\n## How to contribute ?\n\nWe welcome contributions to this library. Please open an issue on our [GitHub repository](https://github.com/mistralai/mistral-common/issues) if you have any questions or suggestions.\n\nAll of our features are tested to ensure best usage. But if you encounter a bug, find difficulties in using `mistral-common`. Please also open an issue.\n\n## License\n\nThis library is licensed under the Apache 2.0 License. See the [LICENCE](./LICENCE) file for more information.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Mistral-common is a library of common utilities for Mistral AI.",
    "version": "1.8.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0ec2df0228507783cdc2b75629e2274884ffda98320836f1ac7441c5dc00b2e9",
                "md5": "d07b2e9be565ed92e4eeaeadd2a496db",
                "sha256": "afb5eb5542c561756a59d71dc8c21ce312fff63b0ea14ab6e19a5ea91970d181"
            },
            "downloads": -1,
            "filename": "mistral_common-1.8.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d07b2e9be565ed92e4eeaeadd2a496db",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.14,>=3.9.0",
            "size": 6504001,
            "upload_time": "2025-07-15T09:36:26",
            "upload_time_iso_8601": "2025-07-15T09:36:26.700146Z",
            "url": "https://files.pythonhosted.org/packages/0e/c2/df0228507783cdc2b75629e2274884ffda98320836f1ac7441c5dc00b2e9/mistral_common-1.8.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c1c6d7e2bbbe3274b6b3fb02fa7ea679db062bd4af14f7dc4665b7b0652eb7d3",
                "md5": "817bd79ef89eaeb393d16ba198548469",
                "sha256": "b3ad5d59208e0bb1d1260ccdb9c4bb5dc06eca1532822559e12bbb263033835d"
            },
            "downloads": -1,
            "filename": "mistral_common-1.8.0.tar.gz",
            "has_sig": false,
            "md5_digest": "817bd79ef89eaeb393d16ba198548469",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.14,>=3.9.0",
            "size": 6318077,
            "upload_time": "2025-07-15T09:36:29",
            "upload_time_iso_8601": "2025-07-15T09:36:29.690820Z",
            "url": "https://files.pythonhosted.org/packages/c1/c6/d7e2bbbe3274b6b3fb02fa7ea679db062bd4af14f7dc4665b7b0652eb7d3/mistral_common-1.8.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-15 09:36:29",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "mistral-common"
}
        
Elapsed time: 1.21605s