{"id":37071207,"url":"https://github.com/chigwell/scamp-analyzer","last_synced_at":"2026-01-14T08:19:22.461Z","repository":{"id":329750131,"uuid":"1120572063","full_name":"chigwell/scamp-analyzer","owner":"chigwell","description":"A new package that analyzes user-provided text descriptions of mischievous or cleverly unconventional behavior (a \"scamp\" scenario) and returns a structured assessment. It evaluates the creativity, hu","archived":false,"fork":false,"pushed_at":"2025-12-21T13:59:37.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-23T04:56:43.870Z","etag":null,"topics":["behavior-classification","borderline","consistency","creativity-evaluation","harmless-fun","humor-assessment","interpretability","labeling","llmatch-validation","natural-language-processing","playful-insights","problematic","reproducible-assessment","risk-categorization","scamp-behavior","social-impact","structured-output","text-analysis","user-input","xml-like-tagging"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/scamp-analyzer/","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-21T13:59:29.000Z","updated_at":"2025-12-21T13:59:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/chigwell/scamp-analyzer","commit_stats":null,"previous_names":["chigwell/scamp-analyzer"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/chigwell/scamp-analyzer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Fscamp-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Fscamp-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Fscamp-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Fscamp-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chigwell","download_url":"https://codeload.github.com/chigwell/scamp-analyzer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Fscamp-analyzer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413765,"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":["behavior-classification","borderline","consistency","creativity-evaluation","harmless-fun","humor-assessment","interpretability","labeling","llmatch-validation","natural-language-processing","playful-insights","problematic","reproducible-assessment","risk-categorization","scamp-behavior","social-impact","structured-output","text-analysis","user-input","xml-like-tagging"],"created_at":"2026-01-14T08:19:21.784Z","updated_at":"2026-01-14T08:19:22.453Z","avatar_url":"https://github.com/chigwell.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scamp-analyzer\n[![PyPI version](https://badge.fury.io/py/scamp-analyzer.svg)](https://badge.fury.io/py/scamp-analyzer)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n[![Downloads](https://static.pepy.tech/badge/scamp-analyzer)](https://pepy.tech/project/scamp-analyzer)\n[![LinkedIn](https://img.shields.io/badge/LinkedIn-blue)](https://www.linkedin.com/in/eugene-evstafev-716669181/)\n\n\n**scamp-analyzer** is a lightweight Python package that evaluates user‑provided text descriptions of mischievous or cleverly unconventional behavior (a “scamp” scenario). It returns a structured XML‑like assessment of the act’s creativity, humor, and potential social impact, categorizing it as *harmless fun*, *borderline*, or *potentially problematic*.\n\n---\n\n## Installation\n\n```bash\npip install scamp_analyzer\n```\n\n---\n\n## Quick Start\n\n```python\nfrom scamp_analyzer import scamp_analyzer\n\n# Simple usage with the default LLM (ChatLLM7)\nresult = scamp_analyzer(\n    user_input=\"I swapped the sugar with salt in the office kitchen.\"\n)\n\nprint(result)   # → List of extracted XML‑like tags\n```\n\n### Parameters\n\n| Name        | Type                     | Description |\n|-------------|--------------------------|-------------|\n| `user_input`| `str`                    | The text description of the scamp scenario to be analysed. |\n| `llm`       | `Optional[BaseChatModel]`| A LangChain chat model. If omitted, the built‑in `ChatLLM7` is used. |\n| `api_key`   | `Optional[str]`          | API key for LLM7. If omitted, the function reads `LLM7_API_KEY` from the environment (or uses a placeholder). |\n\n---\n\n## Using a Custom LLM\n\nYou can provide any LangChain chat model that implements `BaseChatModel`. Below are a few examples.\n\n### OpenAI\n\n```python\nfrom langchain_openai import ChatOpenAI\nfrom scamp_analyzer import scamp_analyzer\n\nllm = ChatOpenAI()\nresponse = scamp_analyzer(\n    user_input=\"I printed the boss's email signature on a birthday cake.\",\n    llm=llm\n)\n```\n\n### Anthropic\n\n```python\nfrom langchain_anthropic import ChatAnthropic\nfrom scamp_analyzer import scamp_analyzer\n\nllm = ChatAnthropic()\nresponse = scamp_analyzer(\n    user_input=\"I replaced the office chairs with beanbags for a surprise.\",\n    llm=llm\n)\n```\n\n### Google Generative AI\n\n```python\nfrom langchain_google_genai import ChatGoogleGenerativeAI\nfrom scamp_analyzer import scamp_analyzer\n\nllm = ChatGoogleGenerativeAI()\nresponse = scamp_analyzer(\n    user_input=\"I swapped the ‘Out of Office’ replies with a funny poem.\",\n    llm=llm\n)\n```\n\n---\n\n## Default LLM (ChatLLM7)\n\nIf you don’t supply a custom `llm`, **scamp_analyzer** automatically creates a `ChatLLM7` instance:\n\n```python\nfrom scamp_analyzer import scamp_analyzer\n\nresponse = scamp_analyzer(\n    user_input=\"I anonymously left motivational sticky notes around the office.\"\n)\n```\n\n* `ChatLLM7` is provided by the **langchain_llm7** package: https://pypi.org/project/langchain-llm7/\n* The free tier’s rate limits are sufficient for typical usage.\n\n### Providing Your Own LLM7 API Key\n\nYou can either set the environment variable:\n\n```bash\nexport LLM7_API_KEY=\"your_llm7_api_key\"\n```\n\nor pass it directly:\n\n```python\nresponse = scamp_analyzer(\n    user_input=\"I organized a surprise flash mob at lunch.\",\n    api_key=\"your_llm7_api_key\"\n)\n```\n\nObtain a free API key by registering at https://token.llm7.io/.\n\n---\n\n## Contributing \u0026 Issues\n\nIf you encounter any problems or have feature requests, please open an issue:\n\n👉 https://github....  \n\nWe welcome contributions, documentation improvements, and bug fixes.\n\n---\n\n## Author\n\n**Eugene Evstafev**  \n📧 [hi@euegne.plus](mailto:hi@euegne.plus)  \n🐙 GitHub: [chigwell](https://github.com/chigwell)\n\n---\n\n## License\n\nThis project is licensed under the MIT License – see the `LICENSE` file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchigwell%2Fscamp-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchigwell%2Fscamp-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchigwell%2Fscamp-analyzer/lists"}