fetch_meditation.jft_entry module

JFT Entry module.

This module defines the data structure for JFT meditation entries.

class fetch_meditation.jft_entry.JftEntry(date: str, title: str, page: str, quote: str, source: str, content: List[str], thought: str, copyright: str)[source]

Bases: object

Data class representing a JFT (Just For Today) meditation entry.

This class holds all the components of a JFT meditation and provides methods for conversion to different formats.

Attributes:

date (str): The date of the meditation title (str): The title of the meditation page (str): The page reference quote (str): The quote text source (str): The source of the quote content (List[str]): The main content paragraphs thought (str): The closing thought copyright (str): Copyright information

content: List[str]
copyright: str
date: str
page: str
quote: str
source: str
thought: str
title: str
to_json() str[source]

Convert the entry to a JSON string.

Returns:

str: JSON string representation of the entry

without_tags() Dict[str, Any][source]

Create a version of the entry with HTML tags stripped.

Returns:

Dict[str, Any]: Dictionary with HTML tags removed from all values