{"id":37074072,"url":"https://github.com/chigwell/lvmthin-helper","last_synced_at":"2026-01-14T08:43:26.243Z","repository":{"id":329837866,"uuid":"1120781967","full_name":"chigwell/lvmthin-helper","owner":"chigwell","description":"lvmthin-helper automates LVM Thin Provisioning management by analyzing user inputs and current setups, offering optimized configurations and troubleshooting steps for efficient storage.","archived":false,"fork":false,"pushed_at":"2025-12-21T23:37:15.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-23T10:40:45.993Z","etag":null,"topics":["accurate-solutions","actionable-guidance","clear-responses","concise-advice","configuration-advice","configuration-snippets","efficient-storage-utilization","llm7","llmatch-messages","lvm","lvm-setup","performance-optimization","step-by-step-guides","storage-issues","storage-management","storage-optimization","storage-requirements","system-administration","thin-provisioning"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/lvmthin-helper/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chigwell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-21T23:37:00.000Z","updated_at":"2025-12-21T23:37:32.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/chigwell/lvmthin-helper","commit_stats":null,"previous_names":["chigwell/lvmthin-helper"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/chigwell/lvmthin-helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Flvmthin-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Flvmthin-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Flvmthin-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Flvmthin-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chigwell","download_url":"https://codeload.github.com/chigwell/lvmthin-helper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Flvmthin-helper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28414692,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["accurate-solutions","actionable-guidance","clear-responses","concise-advice","configuration-advice","configuration-snippets","efficient-storage-utilization","llm7","llmatch-messages","lvm","lvm-setup","performance-optimization","step-by-step-guides","storage-issues","storage-management","storage-optimization","storage-requirements","system-administration","thin-provisioning"],"created_at":"2026-01-14T08:43:25.716Z","updated_at":"2026-01-14T08:43:26.235Z","avatar_url":"https://github.com/chigwell.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lvmthin‑helper\n[![PyPI version](https://badge.fury.io/py/lvmthin-helper.svg)](https://badge.fury.io/py/lvmthin-helper)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n[![Downloads](https://static.pepy.tech/badge/lvmthin-helper)](https://pepy.tech/project/lvmthin-helper)\n[![LinkedIn](https://img.shields.io/badge/LinkedIn-blue)](https://www.linkedin.com/in/eugene-evstafev-716669181/)\n\n\n`lvmthin_helper` is a lightweight Python package that helps system administrators and storage engineers manage LVM Thin Provisioning configurations.  \nGiven a natural‑language description of storage requirements, current LVM setup or a specific thin‑provisioning problem, the package uses LLM7 and the llmatch‑messages protocol to return **structured, actionable advice** or **exact configuration snippets**.\n\nKey features:\n\n- **Zero‑config**: Uses the free tier of LLM7 by default; falls back to an optional custom LLM from LangChain.\n- **Pattern‑based safety**: The LLM response is validated against a pre‑defined regular‑expression to guarantee consistent, parseable output.\n- **Extensible**: Pass your own LangChain `BaseChatModel` (e.g. OpenAI, Anthropic, Google Gemini) if you prefer a different provider.\n\n---\n\n## Installation\n\n```bash\npip install lvmthin_helper\n```\n\n---\n\n## Basic Usage\n\n```python\nfrom lvmthin_helper import lvmthin_helper\n\n# Example user input – a description of the problem or requirement\nuser_input = \"\"\"\nI have two VG’s: vg_data (thin pool tp_data) and vg_backup (thin pool tp_backup).\nI need to move a 120 GiB thin logical volume from vg_data to vg_backup, preserving data.\n\"\"\"\n\n# Call the helper – this will automatically use the free LLM7 tier\nresponse = lvmthin_helper(user_input=user_input)\n\n# response is a list of strings with step‑by‑step guidance / commands\nprint(\"\\n\".join(response))\n```\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `user_input` | `str` | The natural‑language description of your storage need or issue. |\n| `llm` | `Optional[BaseChatModel]` | A LangChain-compatible LLM instance.  If omitted the default `ChatLLM7` is used. |\n| `api_key` | `Optional[str]` | API key for LLM7.  If omitted it is read from the environment variable `LLM7_API_KEY`. |\n\n---\n\n## Using a Different LLM Provider\n\n#### OpenAI\n\n```python\nfrom langchain_openai import ChatOpenAI\nfrom lvmthin_helper import lvmthin_helper\n\nllm = ChatOpenAI(model=\"gpt-4o-mini\", temperature=0.2)\nresponse = lvmthin_helper(user_input=\"Move a thin LV from VG A to VG B.\", llm=llm)\n```\n\n#### Anthropic\n\n```python\nfrom langchain_anthropic import ChatAnthropic\nfrom lvmthin_helper import lvmthin_helper\n\nllm = ChatAnthropic(model=\"claude-3-haiku-20240307\", temperature=0.2)\nresponse = lvmthin_helper(user_input=\"Resize a thin LV to 200 GiB.\", llm=llm)\n```\n\n#### Google Gemini\n\n```python\nfrom langchain_google_genai import ChatGoogleGenerativeAI\nfrom lvmthin_helper import lvmthin_helper\n\nllm = ChatGoogleGenerativeAI(model=\"gemini-1.5-pro-001\")\nresponse = lvmthin_helper(user_input=\"Check thin pool usage statistics.\", llm=llm)\n```\n\n---\n\n## Rate Limits \u0026 API Key\n\n- The free tier of LLM7 is sufficient for most typical use cases of this helper.\n- If you need higher limits, obtain a key at \u003chttps://token.llm7.io/\u003e and either:\n  - Export it: `export LLM7_API_KEY=\"your_key_here\"`\n  - Pass it directly: `lvmthin_helper(user_input, api_key=\"your_key_here\")`\n\n---\n\n## License\n\nMIT License – feel free to use, modify, and distribute.\n\n---\n\n## Contributing \u0026 Issues\n\nBug reports, feature requests, and pull requests are welcome!  \nPlease open an issue at: \u003chttps://github.com/chigwell/lvmthin-helper/issues\u003e\n\n---\n\n## Author\n\nEugene Evstafev  \n📧 hi@euegne.plus  \nGitHub: \u003chttps://github.com/chigwell\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchigwell%2Flvmthin-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchigwell%2Flvmthin-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchigwell%2Flvmthin-helper/lists"}