Skip to main content

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

digestify-0.1.3.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

digestify-0.1.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file digestify-0.1.3.tar.gz.

File metadata

  • Download URL: digestify-0.1.3.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.1

File hashes

Hashes for digestify-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8fef08c96fcc34a8e5503d377ab93de4465bd974a17476f9f64b44849222e479
MD5 c19e6f72650272603230a520971a7f83
BLAKE2b-256 ea7d9fe19dfcc8265b91435b755d3bf7367de37f747b771f7234396b0cf8cb1e

See more details on using hashes here.

File details

Details for the file digestify-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: digestify-0.1.3-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

Hashes for digestify-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4fe30adaf3a2ce4b3347857a4714e0331bcd5deca06af855156899fa5d2dea83
MD5 0d12f8a396b0d08f8ebb9dc20640a06c
BLAKE2b-256 15b6b6ddafa8a91d5bbfbad666be3e59349137a4f5b6efddc77793adb2d8c630

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