llamaindex-nativ
LlamaIndex integration for Nativ — AI-powered localization.
Give any LlamaIndex agent the ability to translate text, search translation memory, manage terminology, and more — all backed by your team's brand voice and style guides.
Installation
pip install llamaindex-nativ
Quick start
from llamaindex_nativ import NativToolSpec
spec = NativToolSpec() # reads NATIV_API_KEY from env
tools = spec.to_tool_list()
# Use a single tool directly
result = spec.translate("Hello world", target_language="French")
print(result)
# Bonjour le monde
# Rationale: Standard greeting translated with neutral register.
Use with a LlamaIndex agent
from llamaindex_nativ import NativToolSpec
from llama_index.llms.openai import OpenAI
from llama_index.core.agent import ReActAgent
tools = NativToolSpec().to_tool_list()
llm = OpenAI(model="gpt-4o")
agent = ReActAgent.from_tools(tools, llm=llm, verbose=True)
response = agent.chat(
"Translate 'Welcome back!' to French, German, and Japanese"
)
Available tools
| Tool | Description |
|---|---|
translate |
Translate text with cultural adaptation |
translate_batch |
Translate multiple texts to one language |
search_translation_memory |
Fuzzy-search existing translations |
add_translation_memory_entry |
Store an approved translation for reuse |
get_languages |
List configured target languages |
get_style_guides |
Get style guide content |
get_brand_voice |
Get the brand voice prompt |
get_translation_memory_stats |
Get TM statistics |
Configuration
Pass api_key and base_url directly:
spec = NativToolSpec(api_key="nativ_...", base_url="https://api.usenativ.com")
Or set the environment variable:
export NATIV_API_KEY=nativ_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Use individual tools
from llamaindex_nativ import NativToolSpec
spec = NativToolSpec()
# Search translation memory
print(spec.search_translation_memory("Welcome"))
# Found 3 match(es):
# - [98% exact] "Welcome" -> "Bienvenue"
# - [85% fuzzy] "Welcome back" -> "Content de vous revoir"
# ...
# Get configured languages
print(spec.get_languages())
# Configured languages:
# - French (fr) -- formality: formal
# - German (de) -- formality: formal
# ...
License
MIT
Metadata
Release files for llamaindex-nativ 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| llamaindex_nativ-0.1.0.tar.gz | 7.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llamaindex_nativ-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.6 kB
Release files / llamaindex_nativ-0.1.0.tar.gz
| Download URL | llamaindex_nativ-0.1.0.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dcf5af98ed141acfa6c811806a18deac79d5a12e3630761b1b32d40c7af3b774
|
|
BLAKE2b-256 checksum How to use checksums |
017232771835b4922f0e6c353e26b7777dc53d44d4421934f7b1426a9f036071
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 21, 2026.
Transparency logRelease files / llamaindex_nativ-0.1.0-py3-none-any.whl
| Download URL | llamaindex_nativ-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a88f8e11c02c4c6cf6576be2b1e7d88e74a25ad184747407e6450420a5062c2
|
|
BLAKE2b-256 checksum How to use checksums |
67cc0428b8aaa1dc05d13d4ba7a57af93cb43e47dafe521756ad6a74bbea5e4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 21, 2026.
Transparency log