oldas.article_ids
Provides code for working with lists of article IDs.
ArticleID
dataclass
Holds an article ID.
ArticleIDs
Loads and holds article ID list.
full_ids
property
The list of article IDs.
Note
This is a list of strings where each string is a full article ID.
load
async
classmethod
Load article IDs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
Session
|
The API session object. |
required |
|
State
|
The |
required |
|
Any
|
Any addition filter values. |
{}
|
Returns:
| Type | Description |
|---|---|
ArticleIDs
|
The list of matching article IDs. |
load_read
async
classmethod
load_read(session: Session) -> ArticleIDs
Load the list of IDs for all read articles.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
Session
|
The API session object. |
required |
Returns:
| Type | Description |
|---|---|
ArticleIDs
|
The list of read article IDs. |
load_unread
async
classmethod
load_unread(session: Session) -> ArticleIDs
Load the list of IDs for all unread articles.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
Session
|
The API session object. |
required |
Returns:
| Type | Description |
|---|---|
ArticleIDs
|
The list of unread article IDs. |
mark_read
async
mark_unread
async
stream
async
classmethod
Stream article IDs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
Session
|
The API session object. |
required |
|
State
|
The |
required |
Yields:
| Type | Description |
|---|---|
AsyncIterator[ArticleID]
|
The article IDs. |