$npx skillfedfor your agent

mistral_common

Mistral-common is a library of common utilities for Mistral AI.

Worth itPyPI Artificial IntelligenceReleased Jul 20268.9M downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — mistral_common-1.11.7-py3-none-any.whl
v1.11.7 · released 2026-07-23 · Python <3.15,>=3.10.0 · 8 runtime deps: pydantic, jsonschema, typing-extensions, tiktoken, pillow, requests, numpy, pydantic-extra-types

Yes. mistral-common is actively maintained, has no known vulnerabilities, and low install friction. Install it if you are building applications with Mistral models and need local tokenization, validation, or want to ensure token counts match what the API will see. The permissive Apache 2.0 license poses no restrictions. Skip it only if you are not using Mistral models or do not need pre-flight validation.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later (supports up to 3.14); optional extras (image, audio, hf-hub, sentencepiece, server) available for extended functionality.
  • Low install friction with a pure-wheel distribution and eight common dependencies (pydantic, requests, numpy, pillow, tiktoken, jsonschema, typing-extensions, pydantic-extra-types).
  • Actively maintained with a release 22 days ago.

License · maintenance · safety

Apache-2.0 (permissive) — Licensed under Apache 2.0 (permissive), allowing commercial use and modification with attribution. No notable restrictions for typical integration into applications.

last release 2026-07-23 (22 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 8,944,595 downloads/mo, #1,573 on PyPI

Verify before relying

pip install mistral-common

from mistral_common.tokens.tiktoken import get_encoding

encoding = get_encoding("v3")
tokens = encoding.encode("Hello, world!")
  • Whether the tokenizers are compatible with all current Mistral model versions or only specific releases.
  • Performance characteristics (tokenization speed, memory overhead) compared to direct model APIs.
  • Whether validation and normalization code is used by the official Mistral Python client or is independent.
Same gist for agents: .md · .json

What it is and what it does

mistral-common is a utility library that exposes Mistral AI's internal tokenization, validation, and normalization code for public use. It handles tokenization of text, images, and tool calls, plus request/response validation built on Pydantic. The library is versioned to guarantee backward compatibility with released models.

The package is designed for two audiences: developers integrating Mistral models into applications, and those building custom models who want to use Mistral's tokenization and validation approach. It ships with eight runtime dependencies (pydantic, requests, numpy, pillow, tiktoken, jsonschema, typing-extensions, pydantic-extra-types) and supports optional extras for image, audio, Hugging Face Hub integration, and experimental server mode.

Use it for

  • Tokenize text and images before sending to Mistral models to verify token counts and optimize prompt engineering.
  • Validate and normalize API requests and tool calls to match Mistral's expected format before calling the model.
  • Build custom LLM applications that need consistent tokenization behavior across multiple model versions.
  • Integrate Mistral model support into frameworks that require standardized token counting and validation.
  • Develop local preprocessing pipelines that mirror Mistral's server-side validation without API calls.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

mistral-common is actively maintained, has no known vulnerabilities, and low install friction. Install it if you are building applications with Mistral models and need local tokenization, validation, or want to ensure token counts match what the API will see. The permissive Apache 2.0 license poses no restrictions. Skip it only if you are not using Mistral models or do not need pre-flight validation.

Install

mistral-common on PyPI

Before you install

Low install friction with a pure-wheel distribution and eight common dependencies (pydantic, requests, numpy, pillow, tiktoken, jsonschema, typing-extensions, pydantic-extra-types). Actively maintained with a release 22 days ago.

Requires Python 3.10 or later (supports up to 3.14); optional extras (image, audio, hf-hub, sentencepiece, server) available for extended functionality.

License in practice

Licensed under Apache 2.0 (permissive), allowing commercial use and modification with attribution. No notable restrictions for typical integration into applications.

Quickstart

pip install mistral-common

from mistral_common.tokens.tiktoken import get_encoding

encoding = get_encoding("v3")
tokens = encoding.encode("Hello, world!")

Verify before relying

  • Whether the tokenizers are compatible with all current Mistral model versions or only specific releases.
  • Performance characteristics (tokenization speed, memory overhead) compared to direct model APIs.
  • Whether validation and normalization code is used by the official Mistral Python client or is independent.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release <3.15,>=3.10.0
Install frictionLow. Pure-Python wheel
Runtime dependencies
8 packages
pydanticjsonschematyping-extensionstiktokenpillowrequestsnumpypydantic-extra-types
MaintenanceActively maintained 22 days since the last release
First released
Downloads8,944,595 / month, #1,573 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: mistral_common-1.11.7-py3-none-any.whl

Tags

Capabilities
mistral ai tokenizerllm tokenization librarymistral model utilitiestext and image tokenizationpydantic validation for llms
Topics
mistral-aitokenizationllm-utilities

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “mistral ai tokenizer”

  • mistral_commonProvides tokenizers, validation, and normalization utilities for…
  • pytorch-tokenizersProvides C++ implementations of multiple tokenizers (SentencePiece,…
  • langchain-mistralaiConnects Mistral AI language models to LangChain, enabling you to use…

Give your agent the search over MCP, or paste the wish link into any chat.

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.

Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.

Install it if you work with Hugging Face Hub models or datasets.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.

Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also pytorch-tokenizers · langchain-mistralai · mistralai · mistralai-workflows · mistral-vibe · lm-eval · openvino-tokenizers · opentelemetry-instrumentation-mistralai