Data Models Reference¶
Entry¶
The Entry class represents a single RSS entry/article.
Represents a Miniflux feed entry.
Source code in miniflux_tui/api/models.py
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | |
image_enclosures
property
¶
Get all image enclosures for this entry.
is_read
property
¶
Check if entry is marked as read.
is_unread
property
¶
Check if entry is marked as unread.
from_dict(data)
classmethod
¶
Create an Entry from API response data.
Source code in miniflux_tui/api/models.py
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | |
Properties¶
- id: Unique identifier for the entry
- title: Entry title
- content: Entry HTML content
- published_at: Publication timestamp
- is_read: Whether the entry has been read
- starred: Whether the entry is starred/favorited
- feed: The Feed this entry belongs to
Helper Methods¶
- is_unread: Property that returns
Trueif not read - status: Property that returns "read" or "unread"
Feed¶
The Feed class represents an RSS feed.
Represents a Miniflux feed.
Source code in miniflux_tui/api/models.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | |
has_errors
property
¶
Check if feed has parsing errors.
from_dict(data)
classmethod
¶
Create a Feed from API response data.
Source code in miniflux_tui/api/models.py
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | |
Feed Properties¶
- id: Unique feed identifier
- title: Feed title
- url: Feed URL
- unread_count: Number of unread entries in this feed
EntryListItem¶
Internal widget class for rendering entries in the list.
FeedHeaderItem¶
Internal widget class for rendering feed group headers in grouped mode.
Usage Example¶
from miniflux_tui.api.models import Entry, Feed
# Create a feed
feed = Feed(id=1, title="My Blog", url="https://example.com/feed")
# Create an entry
entry = Entry(
id=123,
title="My Article",
content="<p>Article content</p>",
published_at=1699564800,
is_read=False,
starred=False,
feed=feed
)
# Check properties
print(f"Entry: {entry.title}")
print(f"Feed: {entry.feed.title}")
print(f"Status: {entry.status}")
print(f"Is unread: {entry.is_unread}")