{"id":37073842,"url":"https://github.com/chigwell/rankextractplus","last_synced_at":"2026-01-14T08:40:35.803Z","repository":{"id":329835511,"uuid":"1120775457","full_name":"chigwell/rankextractplus","owner":"chigwell","description":"rankextractplus extracts and structures ranked info from text, organizing data for easier comparison and analysis.","archived":false,"fork":false,"pushed_at":"2025-12-21T23:11:54.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-23T10:35:48.452Z","etag":null,"topics":["consistent-output","data-analysis","data-comparison","data-organization","data-summarization","formatted-output","llm-processing","llmatch-messages","pattern-matching","ranked-information","retries","structured-data","system-prompt","text-extraction","unstructured-text"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/rankextractplus/","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:10:41.000Z","updated_at":"2025-12-21T23:12:10.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/chigwell/rankextractplus","commit_stats":null,"previous_names":["chigwell/rankextractplus"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/chigwell/rankextractplus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Frankextractplus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Frankextractplus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Frankextractplus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Frankextractplus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chigwell","download_url":"https://codeload.github.com/chigwell/rankextractplus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Frankextractplus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28414676,"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":["consistent-output","data-analysis","data-comparison","data-organization","data-summarization","formatted-output","llm-processing","llmatch-messages","pattern-matching","ranked-information","retries","structured-data","system-prompt","text-extraction","unstructured-text"],"created_at":"2026-01-14T08:40:35.133Z","updated_at":"2026-01-14T08:40:35.796Z","avatar_url":"https://github.com/chigwell.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RankExtractPlus\n[![PyPI version](https://badge.fury.io/py/rankextractplus.svg)](https://badge.fury.io/py/rankextractplus)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n[![Downloads](https://static.pepy.tech/badge/rankextractplus)](https://pepy.tech/project/rankextractplus)\n[![LinkedIn](https://img.shields.io/badge/LinkedIn-blue)](https://www.linkedin.com/in/eugene-evstafev-716669181/)\n\n\nRankExtractPlus is a Python package designed to extract and structure ranked information from unstructured text inputs. It leverages the power of large language models (LLMs) to process text and return structured, ranked outputs.\n\n## Features\n\n- Extracts and ranks information from unstructured text\n- Uses `llmatch-messages` to ensure structured and consistent outputs\n- Supports custom LLMs for flexible integration\n- Easy-to-use interface with minimal setup\n\n## Installation\n\nTo install RankExtractPlus, simply run:\n\n```bash\npip install rankextractplus\n```\n\n## Usage\n\n### Basic Usage\n\n```python\nfrom rankextractplus import rankextractplus\n\nuser_input = \"Text about the best countries at math...\"\nresponse = rankextractplus(user_input)\nprint(response)\n```\n\n### Advanced Usage with Custom LLM\n\nYou can use any LLM compatible with LangChain. Here are examples with different LLMs:\n\n#### Using OpenAI\n\n```python\nfrom langchain_openai import ChatOpenAI\nfrom rankextractplus import rankextractplus\n\nllm = ChatOpenAI()\nresponse = rankextractplus(user_input, llm=llm)\nprint(response)\n```\n\n#### Using Anthropic\n\n```python\nfrom langchain_anthropic import ChatAnthropic\nfrom rankextractplus import rankextractplus\n\nllm = ChatAnthropic()\nresponse = rankextractplus(user_input, llm=llm)\nprint(response)\n```\n\n#### Using Google\n\n```python\nfrom langchain_google_genai import ChatGoogleGenerativeAI\nfrom rankextractplus import rankextractplus\n\nllm = ChatGoogleGenerativeAI()\nresponse = rankextractplus(user_input, llm=llm)\nprint(response)\n```\n\n### Using LLM7 API Key\n\nBy default, RankExtractPlus uses `ChatLLM7` from `langchain_llm7`. If you want to use a custom API key, you can pass it directly or set it as an environment variable:\n\n```python\nfrom rankextractplus import rankextractplus\n\n# Using environment variable\nimport os\nos.environ[\"LLM7_API_KEY\"] = \"your_api_key\"\nresponse = rankextractplus(user_input)\n\n# Or passing it directly\nresponse = rankextractplus(user_input, api_key=\"your_api_key\")\n```\n\n## Parameters\n\n- `user_input` (str): The unstructured text input to process.\n- `llm` (Optional[BaseChatModel]): The LangChain LLM instance to use. If not provided, the default `ChatLLM7` will be used.\n- `api_key` (Optional[str]): The API key for LLM7. If not provided, the environment variable `LLM7_API_KEY` will be used.\n\n## Rate Limits\n\nThe default rate limits for LLM7's free tier are sufficient for most use cases. If you need higher rate limits, you can obtain a free API key by registering at [LLM7](https://token.llm7.io/).\n\n## Contributing\n\nIf you encounter any issues or have suggestions, please open an issue on [GitHub](https://github.com/chigwell/rankextractplus/issues).\n\n## Author\n\n- **Eugene Evstafev**\n- Email: hi@eugene.plus\n- GitHub: [chigwell](https://github.com/chigwell)\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchigwell%2Frankextractplus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchigwell%2Frankextractplus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchigwell%2Frankextractplus/lists"}