$npx skillfedfor your agent

cohere-melody

Templating rendering and generation parsing for Cohere models

With conditionsPyPI LibrariesReleased Aug 2026243.7K downloads / moMITPlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — cohere_melody-0.13.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl · cohere_melody-0.13.3-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl · cohere_melody-0.13.3-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
v0.13.3 · released 2026-08-14 · Python >=3.10

Yes, if you are building with Cohere models and need reliable citation parsing or prompt templating. The package is actively maintained, has no security vulnerabilities, carries a permissive MIT license, and offers pre-built wheels for common platforms. Install friction is moderate but acceptable for a compiled library. Not necessary if you are not using Cohere models or do not require structured parsing of their outputs.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Pre-built wheels available for Linux (x86_64, aarch64, armv7l, ppc64le, s390x, i686), macOS (x86_64, arm64), Windows (x86_64), and musl-based systems; other platforms may require building from source.
  • Medium install friction due to compiled Rust bindings; wheels are pre-built for common platforms (Python 3.10–3.11, Linux, macOS, Windows).

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal attribution requirements.

last release 2026-08-14 (0 days) · last repo commit 2026-08-14 · 1 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 243,717 downloads/mo, #8,780 on PyPI

Verify before relying

pip install cohere-melody

import cohere_melody

# Parse vision generation
parsed = cohere_melody.parse_vision_generation(model_output)
for segment in parsed.segments:
    if hasattr(segment, 'text'):
        print(segment.text)
  • Whether the package works with Python versions beyond 3.10–3.11 despite the requires_python constraint.
  • Performance characteristics when parsing large or streaming generations.
  • Stability and API surface of the Python bindings relative to the Rust core.
Same gist for agents: .md · .json

What it is and what it does

Cohere Melody is a Rust library with Python bindings that parses and renders templates for Cohere language models. It handles two main tasks: parsing model outputs to extract citations and structured content (including vision generation markdown with embedded visual elements), and rendering conversation templates into formatted prompts. The library is designed to work with Cohere's Command and other models, supporting streaming text with incremental parsing and batch vision parsing. It has no runtime dependencies beyond the compiled Rust core.

The package is intended for developers integrating Cohere models into applications where citation tracking, prompt templating, and structured output parsing are required. It exposes a Python API built on PyO3 and also provides Go bindings, making it usable across multiple languages. Installation requires no external system dependencies beyond Python itself, though the wheels are pre-compiled for specific platforms.

Use it for

  • Extract and track citations from Cohere model outputs during streaming or batch inference.
  • Render multi-turn conversation histories into properly formatted prompts for Cohere Command models.
  • Parse vision model outputs to separate markdown text from embedded visual element metadata.
  • Build LLM applications that need structured prompt templating and citation attribution.
  • Integrate Cohere models into production systems requiring standardized output parsing.

Worth the install?

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

With conditions

Yes, if you are building with Cohere models and need reliable citation parsing or prompt templating.

The package is actively maintained, has no security vulnerabilities, carries a permissive MIT license, and offers pre-built wheels for common platforms. Install friction is moderate but acceptable for a compiled library. Not necessary if you are not using Cohere models or do not require structured parsing of their outputs.

Install

cohere-melody on PyPI

Before you install

Medium install friction due to compiled Rust bindings; wheels are pre-built for common platforms (Python 3.10–3.11, Linux, macOS, Windows). Active maintenance with recent release.

Requires Python 3.10 or later. Pre-built wheels available for Linux (x86_64, aarch64, armv7l, ppc64le, s390x, i686), macOS (x86_64, arm64), Windows (x86_64), and musl-based systems; other platforms may require building from source.

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal attribution requirements.

Quickstart

pip install cohere-melody

import cohere_melody

# Parse vision generation
parsed = cohere_melody.parse_vision_generation(model_output)
for segment in parsed.segments:
    if hasattr(segment, 'text'):
        print(segment.text)

Verify before relying

  • Whether the package works with Python versions beyond 3.10–3.11 despite the requires_python constraint.
  • Performance characteristics when parsing large or streaming generations.
  • Stability and API surface of the Python bindings relative to the Rust core.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionMedium. Platform-specific wheel
Runtime dependenciesNone
MaintenanceActively maintained 0 days since the last release
Last repo commit
First released
Downloads243,717 / month, #8,780 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersProgramming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyProgramming Language :: RustTopic :: Software Development :: Libraries

Evidence: cohere_melody-0.13.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; cohere_melody-0.13.3-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; cohere_melody-0.13.3-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; cohere_melody-0.13.3-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl; cohere_melody-0.13.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; cohere_melody-0.13.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl; cohere_melody-0.13.3-cp310-cp310-musllinux_1_2_aarch64.whl; cohere_melody-0.13.3-cp310-cp310-musllinux_1_2_armv7l.whl; cohere_melody-0.13.3-cp310-cp310-musllinux_1_2_i686.whl; cohere_melody-0.13.3-cp310-cp310-musllinux_1_2_x86_64.whl; cohere_melody-0.13.3-cp310-cp310-win_amd64.whl; cohere_melody-0.13.3-cp311-cp311-macosx_10_12_x86_64.whl; cohere_melody-0.13.3-cp311-cp311-macosx_11_0_arm64.whl; cohere_melody-0.13.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; cohere_melody-0.13.3-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; cohere_melody-0.13.3-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; cohere_melody-0.13.3-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl; cohere_melody-0.13.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; cohere_melody-0.13.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl; cohere_melody-0.13.3-cp311-cp311-musllinux_1_2_aarch64.whl

Tags

Capabilities
cohere model templatingllm prompt renderingcitation parsingvision generation parsingcohere melody librarytemplate generation for llmsmarkdown citation extraction
Topics
cohere-integrationllm-toolingrust-bindings
PyPI keywords
coherellmtemplatingparsing

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 › “cohere model templating”

  • cohere-melodyParses and renders templated text for Cohere language models,…
  • apache-airflow-providers-cohereIntegrates Cohere's language model APIs into Apache Airflow workflows…
  • coherePython SDK for accessing Cohere's language models across multiple…

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

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also outlines-core · renderers · moviepilot-rust · langchain-cohere · poml · comrak · citeproc-py · cohere · openai-harmony · cohere-compass-sdk