{"categories":[{"label":"Code Generators","url":"https://skillfed.io/packages/category/software-development-code-generators"}],"enrichment":{"capability":"Cog executes Python code snippets embedded in source files and replaces them with their output, enabling dynamic content generation in static files.","skillfed_tags":["code-generation","static-site-tools","documentation"],"use_cases":["Keep API documentation examples in sync by embedding Python code that generates them.","Generate configuration file snippets or boilerplate from Python logic.","Maintain data tables or reference lists in markdown by computing them from live data.","Embed test output or validation results directly into README or guide files.","Generate HTML or XML fragments from Python without a full template engine."],"what_it_does":"Cog is a content generator that finds Python code blocks marked in source files, executes them, and replaces the marked regions with their output. It's designed for static files\u2014documentation, HTML, configuration, or any text format\u2014where you want computed or templated content without a full build system. The tool reads the source, runs the embedded Python, and writes the result back in place.\n\nIt has no external runtime dependencies and runs on Python 3.9 and later. The workflow is straightforward: mark a code block with special comments, run the tool on the file, and the output replaces the marked section. This is useful for keeping generated content (like tables, API docs, or configuration examples) in sync with the code that produces them, without requiring a separate templating language or build step.","worth_installing":"Yes. Cog is lightweight, actively maintained, has no dependencies, and solves a specific problem well: keeping computed content in sync with its source code. Install it if you need to embed executable Python in static files and regenerate their output on demand. The MIT license and broad Python version support make it low-risk."},"id":"cogapp","links":{"html":"https://skillfed.io/packages/cogapp","md":"https://skillfed.io/packages/cogapp.md","pypi":"https://pypi.org/project/cogapp/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-09-21","license_spdx":"MIT","license_treatment":"permissive","name":"cogapp","python_support":"supports_current","summary":"Cog: A content generator for executing Python snippets in source files."},"popularity":{"monthly_downloads":253549,"position":8516,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.6.0"}
