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.0.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.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: digestify-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 0ca908998d9833cc9cf5c589f887dcdaaed52e51c51e8f112e3b13f3b831a9da
MD5 0860830172c80d25a4c23dde13b6dd16
BLAKE2b-256 1ccc49e9065bff4da233ec41f716dd8a1fbe79545e2530f0d77a4dea8c426c00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: digestify-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2adeebba82e87dc4cb9a0ed405e11a9a2b3637967d9d6bc2a9f73216a0ffe5f2
MD5 f5edad64c6a19382ef05a13317e2ea25
BLAKE2b-256 f2017bf128fbe6e0ed5f56d9d0ae6b8c52e021e6430819fee686099bffaf4899

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