{"id":37069818,"url":"https://github.com/chigwell/promptify-summary","last_synced_at":"2026-01-14T08:02:32.472Z","repository":{"id":329715328,"uuid":"1120489328","full_name":"chigwell/promptify-summary","owner":"chigwell","description":"A new package would process text inputs, like video titles or descriptions, to generate structured summaries using an LLM. It would take a user-provided text string (e.g., a headline or query) and ret","archived":false,"fork":false,"pushed_at":"2025-12-21T10:30:54.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-23T02:45:07.729Z","etag":null,"topics":["automatedcontentgeneration","consistentresponses","languagemodels","mediafilehandling","naturallanguageprocessing","patternmatching","reliability","sensitivedomains","structureddata","summarization","textprocessing"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/promptify-summary/","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-21T10:30:43.000Z","updated_at":"2025-12-21T10:31:14.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/chigwell/promptify-summary","commit_stats":null,"previous_names":["chigwell/promptify-summary"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/chigwell/promptify-summary","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Fpromptify-summary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Fpromptify-summary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Fpromptify-summary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Fpromptify-summary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chigwell","download_url":"https://codeload.github.com/chigwell/promptify-summary/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Fpromptify-summary/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","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":["automatedcontentgeneration","consistentresponses","languagemodels","mediafilehandling","naturallanguageprocessing","patternmatching","reliability","sensitivedomains","structureddata","summarization","textprocessing"],"created_at":"2026-01-14T08:02:31.856Z","updated_at":"2026-01-14T08:02:32.458Z","avatar_url":"https://github.com/chigwell.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# promptify-summary\n[![PyPI version](https://badge.fury.io/py/promptify-summary.svg)](https://badge.fury.io/py/promptify-summary)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n[![Downloads](https://static.pepy.tech/badge/promptify-summary)](https://pepy.tech/project/promptify-summary)\n[![LinkedIn](https://img.shields.io/badge/LinkedIn-blue)](https://www.linkedin.com/in/eugene-evstafev-716669181/)\n\n\n`promptify_summary` is a lightweight Python package that turns arbitrary text\n(e.g. video titles, headlines, or any user‑supplied string) into concise,\nstructured summaries using a large language model.  \nThe package relies on pattern matching to guarantee consistent, predictable\noutput regardless of the LLM provider. It works with the default\n`ChatLLM7` backend out of the box while also allowing you to plug in any\n`langchain` compatible LLM.\n\n## Quick Start\n\n```bash\npip install promptify_summary\n```\n\n```python\n# Basic usage with the default LLM7 backend\nfrom promptify_summary import promptify_summary\n\nuser_input = \"Learn how to deploy a Docker container in 5 minutes!\"\nsummary = promptify_summary(user_input)\n\nprint(summary)\n# \u003e\u003e\u003e ['Deploy Docker Container', '5 minutes', ...]  # Example output\n```\n\n## Custom LLM Support\n\nYou can swap the default `ChatLLM7` for any LangChain LLM.  \nBelow are examples with OpenAI, Anthropic, and Google Generative AI.\n\n### OpenAI\n\n```python\nfrom langchain_openai import ChatOpenAI\nfrom promptify_summary import promptify_summary\n\nllm = ChatOpenAI()          # Uses default OpenAI key in environment\nuser_input = \"How to tune a PostgreSQL database?\"\nsummary = promptify_summary(user_input, llm=llm)\n```\n\n### Anthropic\n\n```python\nfrom langchain_anthropic import ChatAnthropic\nfrom promptify_summary import promptify_summary\n\nllm = ChatAnthropic()       # Uses your Anthropic key in environment\nsummary = promptify_summary(\"Explain quantum entanglement.\", llm=llm)\n```\n\n### Google Generative AI\n\n```python\nfrom langchain_google_genai import ChatGoogleGenerativeAI\nfrom promptify_summary import promptify_summary\n\nllm = ChatGoogleGenerativeAI()   # Uses your Google key in environment\nsummary = promptify_summary(\"What is Python 3.11?\", llm=llm)\n```\n\n## Function Signature\n\n```python\npromptify_summary(\n    user_input: str,\n    api_key: Optional[str] = None,\n    llm: Optional[BaseChatModel] = None\n) -\u003e List[str]\n```\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `user_input` | `str` | Text to summarize. |\n| `llm` | `Optional[BaseChatModel]` | Custom LangChain LLM instance. If `None`, `ChatLLM7` is used. |\n| `api_key` | `Optional[str]` | LLM7 API key. If omitted, the package looks for the `LLM7_API_KEY` environment variable, falling back to a placeholder key. |\n\nThe function returns a list of strings extracted from the LLM’s response that\nmatch the internal regular‑expression pattern, ensuring output consistency.\n\n## Default LLM7 Configuration\n\nThe default `ChatLLM7` backend is accessed via the\n[`langchain_llm7`](https://pypi.org/project/langchain-llm7/) package.\nIf you want to change the API key (for higher rate limits or a different\naccount) provide the key directly or set the environment variable:\n\n```bash\nexport LLM7_API_KEY=\"your_free_or_paid_api_key\"\n```\n\nOr pass it programmatically:\n\n```python\nsummary = promptify_summary(\"Sample text\", api_key=\"your_api_key\")\n```\n\nYou can obtain a free key by registering at [https://token.llm7.io/](https://token.llm7.io/).\n\n## Rate Limits\n\nThe LLM7 free tier rate limits are sufficient for most casual or small‑scale\nprojects. For more intensive workloads, consider upgrading your LLM7 account\nto increase limits or supply your own LLM.\n\n## Author \u0026 Support\n\n- **Author:** Eugene Evstafev\n- **Email:** hi@euegne.plus\n- **GitHub:** [chigwell](https://github.com/chigwell)\n\nFor issues, feature requests, or questions, open an issue on our\n[GitHub repository](https://github.com/chigwell/promptify_summary).\n\nEnjoy automating structured content generation with `promptify-summary`!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchigwell%2Fpromptify-summary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchigwell%2Fpromptify-summary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchigwell%2Fpromptify-summary/lists"}