Digestify is a Python library that generates comprehensive news digests and content summaries for specific topics using OpenAI and the WebQuest MCP server.
Project description
Digestify
Digestify is a Python library that generates comprehensive news digests and content summaries for specific topics using OpenAI and the WebQuest MCP server. It intelligently gathers latest updates, including processing video transcripts, to provide structured summaries.
Installation
Installing using pip:
pip install digestify
Installing using uv:
uv add digestify
Configuration
Digestify requires the following environment variables to be set (either in your environment or a .env file):
OPENAI_API_KEY: Your OpenAI API key.WEBQUEST_MCP_ACCESS_TOKEN: Access token for the WebQuest MCP server.WEBQUEST_MCP_URL: URL for the WebQuest MCP server.OPENAI_MODEL: (Optional) The OpenAI model to use (default: "gpt-5.2").MAX_TOOL_CALLS: (Optional) Maximum number of tool calls allowed (default: 5).MAX_OUTPUT_TOKENS: (Optional) Maximum number of tokens for the output (default: 100000).
Usage
Here is a simple example of how to use Digestify to get a digest for a topic:
import asyncio
from digestify import Digestify, Topic
async def main():
# Define the topic you want a digest for
topic = Topic(
name="Artificial Intelligence",
description="Latest advancements in AI, machine learning, and LLMs."
)
# Initialize the client (automatically loads settings from env/files)
client = Digestify()
# Get the digest
digest = await client.get_stories(topic)
# Print stories
for story in digest.stories:
print(f"Title: {story.title}")
print(f"Published: {story.published_at}")
print(f"Summary: {story.content}")
print("References:")
for url in story.reference_urls:
print(f"- {url}")
print("-" * 20)
if __name__ == "__main__":
asyncio.run(main())
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
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 digestify-0.1.2.tar.gz.
File metadata
- Download URL: digestify-0.1.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11a17989821918ffa89bdb63f613eff62ede1a75fe78ba971e54d47eef0e89b8
|
|
| MD5 |
e81afc7dbf060df25863bdf6371c15c3
|
|
| BLAKE2b-256 |
fb1e183d49c0548f6274275774459e5c471ec106f1b0e1d8b0aec06de14be302
|
File details
Details for the file digestify-0.1.2-py3-none-any.whl.
File metadata
- Download URL: digestify-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12e7b51b89717d270bcf8da86bfd925448222133b601c44e331c0e421ad24ae2
|
|
| MD5 |
50d31e7f85382f7b3744bcee352ce2c5
|
|
| BLAKE2b-256 |
2b5e1d0f19d6f5aa8ce13148bfeeeaa3ee46359140092bd191f1bfa0c41eff0d
|