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").

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.1.tar.gz (2.7 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.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for digestify-0.1.1.tar.gz
Algorithm Hash digest
SHA256 531ba6591f539fd3083e9783f7049be8fdf8aa5e0a8853ac97348e0e2c131d2c
MD5 33648bcc5986a2a9581a006f260f4e69
BLAKE2b-256 97168d3262c13819a59e964ee89f99b0265f7d24d00f9ebde6e5ef9578ca2f10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: digestify-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.1

File hashes

Hashes for digestify-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 88ab280b0e9ca21ef92b137f84524ee748735e8f096183e8b0d7be7d103659df
MD5 ba63ef94c638ed4a3e32105abdb797dd
BLAKE2b-256 9f2ea631772cce507abecc7fbd627d4363144b7f5cecdee1b481121a58f20eae

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