This package aims to distill complex business and technology news into easily digestible summaries, focusing on the core implications and potential impact of mergers and acquisitions. It tackles the p
Project description
Deal Distiller
Overview
Deal Distiller is a Python package designed to distill complex business and technology news into easily digestible summaries. It focuses on the core implications and potential impact of mergers and acquisitions, providing concise, structured overviews of significant corporate events.
Installation
pip install deal_distiller
Usage
Basic Usage
from deal_distiller import deal_distiller
user_input = "Your news headline or article snippet here"
response = deal_distiller(user_input)
print(response)
Using a Custom LLM
You can use any LLM compatible with LangChain by passing your own LLM instance.
Example with OpenAI
from langchain_openai import ChatOpenAI
from deal_distiller import deal_distiller
llm = ChatOpenAI()
response = deal_distiller(user_input, llm=llm)
print(response)
Example with Anthropic
from langchain_anthropic import ChatAnthropic
from deal_distiller import deal_distiller
llm = ChatAnthropic()
response = deal_distiller(user_input, llm=llm)
print(response)
Example with Google
from langchain_google_genai import ChatGoogleGenerativeAI
from deal_distiller import deal_distiller
llm = ChatGoogleGenerativeAI()
response = deal_distiller(user_input, llm=llm)
print(response)
Parameters
- user_input (str): The user input text to process.
- llm (Optional[BaseChatModel]): The LangChain LLM instance to use. If not provided, the default
ChatLLM7will be used. - api_key (Optional[str]): The API key for LLM7. If not provided, the environment variable
LLM7_API_KEYwill be used.
Default LLM
By default, Deal Distiller uses ChatLLM7 from langchain_llm7.
Rate Limits
The default rate limits for LLM7's free tier are sufficient for most use cases of this package. If you need higher rate limits, you can pass your own API key via the environment variable LLM7_API_KEY or directly via the api_key parameter.
from deal_distiller import deal_distiller
user_input = "Your news headline or article snippet here"
response = deal_distiller(user_input, api_key="your_api_key")
print(response)
You can get a free API key by registering at LLM7.
Author
- Eugene Evstafev - chigwell
- Email: hi@eugene.plus
License
This project is licensed under the MIT License - see the LICENSE file for details.
Issues
If you encounter any issues, please report them on the GitHub issues page.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deal_distiller-2025.12.21080604.tar.gz.
File metadata
- Download URL: deal_distiller-2025.12.21080604.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
828535bc5b2d792214253093fb64f2a49fdca156cd7dbca2db785489c2ccb4d8
|
|
| MD5 |
4530f82b26edb04f439807b230780b0f
|
|
| BLAKE2b-256 |
9cff8f180688e9891c7ed87679efd7585b58a909a612fac2695c2931252a47cc
|
File details
Details for the file deal_distiller-2025.12.21080604-py3-none-any.whl.
File metadata
- Download URL: deal_distiller-2025.12.21080604-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b967e3bbd3be6a4cbcad402e08236d048edc2cc086398bb98d2e3a99862c5207
|
|
| MD5 |
0f85d7e8792d00261a74259f00a6d4fb
|
|
| BLAKE2b-256 |
9b7addbf5b642c59742a13e2b1a5a2c6ed233e6f04da0783edf342085a6f5e52
|