{"id":15433151,"url":"https://github.com/simonw/llm-markov","last_synced_at":"2025-10-25T00:10:55.376Z","repository":{"id":178516633,"uuid":"661965566","full_name":"simonw/llm-markov","owner":"simonw","description":"Plugin for LLM adding a Markov chain generating model","archived":false,"fork":false,"pushed_at":"2024-07-03T11:18:48.000Z","size":15,"stargazers_count":19,"open_issues_count":4,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-14T15:54:15.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"simonw"}},"created_at":"2023-07-04T04:35:09.000Z","updated_at":"2025-06-03T07:50:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"15dd1acb-82e0-408d-b1b1-6cf78893c56f","html_url":"https://github.com/simonw/llm-markov","commit_stats":null,"previous_names":["simonw/llm-markov"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/simonw/llm-markov","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fllm-markov","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fllm-markov/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fllm-markov/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fllm-markov/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonw","download_url":"https://codeload.github.com/simonw/llm-markov/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fllm-markov/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276085369,"owners_count":25582537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T18:32:10.476Z","updated_at":"2025-09-20T11:21:30.389Z","avatar_url":"https://github.com/simonw.png","language":"Python","funding_links":["https://github.com/sponsors/simonw"],"categories":[],"sub_categories":[],"readme":"# llm-markov\n\n[![PyPI](https://img.shields.io/pypi/v/llm-markov.svg)](https://pypi.org/project/llm-markov/)\n[![Changelog](https://img.shields.io/github/v/release/simonw/llm-markov?include_prereleases\u0026label=changelog)](https://github.com/simonw/llm-markov/releases)\n[![Tests](https://github.com/simonw/llm-markov/workflows/Test/badge.svg)](https://github.com/simonw/llm-markov/actions?query=workflow%3ATest)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/llm-markov/blob/main/LICENSE)\n\nPlugin for [LLM](https://llm.datasette.io/) adding a [Markov chain](https://en.wikipedia.org/wiki/Markov_chain) generating model\n\n## Installation\n\nInstall this plugin in the same environment as LLM.\n```bash\nllm install llm-markov\n```\n## Usage\n\nThis plugin adds a model called `markov`. You can execute it like this:\n\n```bash\nllm -m markov \"The quick brown fox jumps over the lazy dog\"\n```\n\nMy default it will produce 100 words. You can control the number of words with the `-o number` option:\n\n```bash\nllm -m markov -o 20 \"The quick brown fox jumps over the lazy dog\"\n```\nA delay of 0.02s is simulated between each token. You can modify this using the `-o delay` option - to `0` to disable it, or some other floating point number of seconds to customize it:\n\n```bash\nllm -m markov \"The quick brown fox jumps over the lazy dog\" -o delay 0\nllm -m markov \"The quick brown fox jumps over the lazy dog\" -o delay 0.1 -o length 20\n```\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n\n    cd llm-markov\n    python3 -m venv venv\n    source venv/bin/activate\n\nNow install the dependencies and test dependencies:\n\n    pip install -e '.[test]'\n\nTo run the tests:\n\n    pytest\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonw%2Fllm-markov","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonw%2Fllm-markov","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonw%2Fllm-markov/lists"}