{"id":37072180,"url":"https://github.com/chigwell/nl2action","last_synced_at":"2026-01-14T08:28:18.948Z","repository":{"id":329772686,"uuid":"1120638764","full_name":"chigwell/nl2action","owner":"chigwell","description":"A new package designed to interpret user-submitted text descriptions, such as notices or requests related to device control or automation, and convert them into structured commands or actions. By leve","archived":false,"fork":false,"pushed_at":"2025-12-21T16:30:32.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-23T06:17:07.705Z","etag":null,"topics":["automation-scripts","command-translation","device-control","executable-instructions","intuitive-interface","language-models","mac-automation","natural-language-processing","pattern-matching","seamless-integration","text-interpretation","user-interaction"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/nl2action/","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-21T16:30:25.000Z","updated_at":"2025-12-21T16:30:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/chigwell/nl2action","commit_stats":null,"previous_names":["chigwell/nl2action"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/chigwell/nl2action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Fnl2action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Fnl2action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Fnl2action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Fnl2action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chigwell","download_url":"https://codeload.github.com/chigwell/nl2action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Fnl2action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28414015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:16:59.381Z","status":"ssl_error","status_checked_at":"2026-01-14T08:13:45.490Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["automation-scripts","command-translation","device-control","executable-instructions","intuitive-interface","language-models","mac-automation","natural-language-processing","pattern-matching","seamless-integration","text-interpretation","user-interaction"],"created_at":"2026-01-14T08:28:18.315Z","updated_at":"2026-01-14T08:28:18.940Z","avatar_url":"https://github.com/chigwell.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nl2action\n[![PyPI version](https://badge.fury.io/py/nl2action.svg)](https://badge.fury.io/py/nl2action)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n[![Downloads](https://static.pepy.tech/badge/nl2action)](https://pepy.tech/project/nl2action)\n[![LinkedIn](https://img.shields.io/badge/LinkedIn-blue)](https://www.linkedin.com/in/eugene-evstafev-716669181/)\n\nA package for natural language interpretation to structured commands or actions\n\n## Overview\nThis package interprets user-submitted text descriptions and converts them into structured commands or actions for devices, home automation scripts, and other applications. It utilizes pattern matching with language models to translate natural language inputs into executable instructions.\n\n## Installation\n```bash\npip install nl2action\n```\n\n## Usage\n```python\nfrom nl2action import nl2action\n\nresponse = nl2action(\"user_input_text\")\n```\n\n## Parameters\n\n* `user_input`: The user-submitted text to process\n* `llm`: The langchain llm instance to use (optional, defaults to `ChatLLM7` with `LLM7_API_KEY`)\n* `api_key`: The API key for LLM7 (optional, default is environment variable `LLM7_API_KEY` or `None`)\n\n### Using a custom LLM instance\n```python\nfrom langchain_openai import ChatOpenAI\nfrom nl2action import nl2action\n\nllm = ChatOpenAI()\nresponse = nl2action(user_input, llm=llm)\n```\n\n### Using an Anthropic AI\n```python\nfrom langchain_anthropic import ChatAnthropic\nfrom nl2action import nl2action\n\nllm = ChatAnthropic()\nresponse = nl2action(user_input, llm=llm)\n```\n\n### Using Google Generative AI\n```python\nfrom langchain_google_genai import ChatGoogleGenerativeAI\nfrom nl2action import nl2action\n\nllm = ChatGoogleGenerativeAI()\nresponse = nl2action(user_input, llm=llm)\n```\n\n## Environment Variables\n\n* `LLM7_API_KEY`: Set to use a custom API key for LLM7, or `None` for the free tier\n\n## LLM7 Setup\n\n* Get a free API key at https://token.llm7.io/\n* For higher rate limits, set the `LLM7_API_KEY` environment variable or pass it directly to the `nl2action` function\n\n## Issues\nhttps://github.com/chigwell/ nl2action","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchigwell%2Fnl2action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchigwell%2Fnl2action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchigwell%2Fnl2action/lists"}