Skip to main content

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

PyPI version License: MIT Downloads LinkedIn

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 ChatLLM7 will be used.
  • api_key (Optional[str]): The API key for LLM7. If not provided, the environment variable LLM7_API_KEY will 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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deal_distiller-2025.12.21080604.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deal_distiller-2025.12.21080604-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file deal_distiller-2025.12.21080604.tar.gz.

File metadata

File hashes

Hashes for deal_distiller-2025.12.21080604.tar.gz
Algorithm Hash digest
SHA256 828535bc5b2d792214253093fb64f2a49fdca156cd7dbca2db785489c2ccb4d8
MD5 4530f82b26edb04f439807b230780b0f
BLAKE2b-256 9cff8f180688e9891c7ed87679efd7585b58a909a612fac2695c2931252a47cc

See more details on using hashes here.

File details

Details for the file deal_distiller-2025.12.21080604-py3-none-any.whl.

File metadata

File hashes

Hashes for deal_distiller-2025.12.21080604-py3-none-any.whl
Algorithm Hash digest
SHA256 b967e3bbd3be6a4cbcad402e08236d048edc2cc086398bb98d2e3a99862c5207
MD5 0f85d7e8792d00261a74259f00a6d4fb
BLAKE2b-256 9b7addbf5b642c59742a13e2b1a5a2c6ed233e6f04da0783edf342085a6f5e52

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page