Releases: praw-dev/praw
Releases · praw-dev/praw
v7.8.1
v7.8.0
7.8.0 (2024/10/20)
Added
- :meth:
~.SubredditLinkFlairTemplates.reorderto reorder a subreddit's link flair
templates. - :meth:
~.SubredditRedditorFlairTemplates.reorderto reorder a subreddit's redditor
flair templates. - :func:
.stream_generatornow accepts thecontinue_after_idparameter, which
starts the stream after a given item ID. - Support for new share URL format created from Reddit's mobile apps.
- :class:
.Reddithas a new configurable parameter,window_size. This tells PRAW
how long reddit's rate limit window is. This defaults to 600 seconds and shouldn't
need to be changed unless reddit changes the size of their rate limit window.
Fixed
- An issue where submitting a post with media would fail due to an API change.
Changed
- Drop support for Python 3.7, which is end-of-life on 2023-06-27.
v7.7.1
7.7.1 (2023/07/11)
Fixed
- An issue with replying to a modmail conversation results in a error.
v7.7.0
7.7.0 (2023/02/25)
Added
- :meth:
.delete_mobile_bannerto delete mobile banners. - :meth:
.upload_mobile_bannerto upload mobile banners.
Fixed
- An issue with iterating :class:
.ModNotewhen a user has more than a hundred notes. - Removal reasons are now returned in the same order as they appear on Reddit.
v7.6.1
7.6.1 (2022/11/11)
Changed
- Revert :meth:
~.Comment.editpositional argument deprecation. - Revert :meth:
~.Comment.replypositional argument deprecation. - Revert :meth:
~.Message.replypositional argument deprecation. - Revert :meth:
~.Submission.editpositional argument deprecation. - Revert :meth:
~.Submission.replypositional argument deprecation.
Fixed
- An issue where :class:
.ModmailConversation'smessagesattribute would only
contain the latest message.
v7.6.0
7.6.0 (2022/05/10)
Added
- :meth:
.pinto manage pinned submissions on the authenticated user's profile. - :meth:
.update_display_layoutto update the display layout of posts in a
:class:.Collection. - :meth:
.SubredditCollectionsModeration.createkeyword argumentdisplay_layoutfor
specifying a display layout when creating a :class:.Collection. - :attr:
~.Message.parentto get the parent of a :class:.Message. - :class:
.ModNoteto represent a moderator note. - :meth:
.ModNote.deleteto delete a single moderator note. - :class:
.RedditModNotesto interact with moderator notes from a :class:.Reddit
instance. This provides the ability to create and fetch notes for one or more
redditors from one or more subreddits. - :class:
.RedditorModNotesto interact with moderator notes from a :class:.Redditor
instance. - :meth:
.RedditorModNotes.subredditsto obtain moderator notes from multiple
subreddits for a single redditor. - :class:
.SubredditModNotesto interact with moderator notes from a
:class:.Subredditinstance. - :meth:
.SubredditModNotes.redditorsto obtain moderator notes for multiple redditors
from a single subreddit. - :meth:
~.BaseModNotes.createto create a moderator note. - :attr:
.Redditor.notesto interact with :class:.RedditorModNotes. - :attr:
.SubredditModeration.notesto interact with :class:.SubredditModNotes. - :meth:
~.ModNoteMixin.create_notecreate a moderator note from a :class:.Commentor
:class:.Submission. - :meth:
~.ModNoteMixin.author_notesto view the moderator notes for the author of a
:class:.Commentor :class:.Submission.
Changed
- Drop support for Python 3.6, which is end-of-life on 2021-12-23.
- :meth:
.conversationsnow returns a :class:.ListingGeneratorallowing you to page
through more than 100 conversations.
Deprecated
- The
afterargument for :meth:.conversationswill now have to be included in the
paramskeyword argument. - Positional keyword arguments for applicable functions and methods. Starting with PRAW
8, most functions and methods will no longer support positional arguments. It will
encourage more explicit argument passing, enable arguments to be sorted
alphabetically, and prevent breaking changes when adding new arguments to existing
methods.
v7.5.0
7.5.0 (2021/11/13)
Added
- Log a warning if a submission's
comment_sortattribute is updated after the
submission has already been fetched and awarn_comment_sortconfig setting to turn
off the warning. - :meth:
.user_selectableto get available subreddit link flairs. - Automatic RateLimit handling will support errors with millisecond resolution.
Fixed
- An import error when using PRAW in environments where
libsqlite3-devis needed to
utilize thesqlite3builtin. - Fixed bug where some keyword arguments that are passed to :meth:
.Draft.submitwould
not have an effect.
v7.4.0
7.4.0 (2021/07/30)
Added
- :meth:
~.WikiPage.discussionsto obtain site-wide link submissions that link to the
WikiPage. - :meth:
.revertto revert a WikiPage to a specified revision. - :meth:
.Inbox.mark_all_readto mark all messages as read with one API call. - :meth:
~.InboxableMixin.unblock_subredditto unblock a subreddit. - :meth:
.update_crowd_control_levelto update the crowd control level of a post. - :meth:
.moderator_subreddits, which returns information about the subreddits that the
authenticated user moderates, has been restored. - The configuration setting
refresh_tokenhas been added back. See
https://www.reddit.com/r/redditdev/comments/olk5e6/followup_oauth2_api_changes_regarding_refresh/
for more info.
Deprecated
- :class:
.Redditkeyword argumenttoken_manager.
v7.3.0
7.3.0 (2021/06/17)
Added
- :class:
.UserSubredditfor thesubredditattribute of :class:.Redditor. - :meth:
.Reddit.username_availablechecks if a username is available. - :meth:
.trustedto retrieve a :class:.RedditorListof trusted users. - :meth:
.trustto add a user to the trusted list. - :meth:
.distrustto remove a user from the trusted list. - :class:
.SQLiteTokenManager(may not work on Windows)
Changed
- :meth:
.Redditor.moderatedwill now objectify all data returned from the API. - The
wiki_editendpoint has been changed fromr/{subreddit}/api/wiki/edit/to
r/{subreddit}/api/wiki/edit. - :meth:
.Redditor.blockno longer needs to retrieve a user's fullname.
Deprecated
- The
subredditattribute of :class:.Redditoris no longer a dict. - Legacy modmail is slated for deprecation by Reddit in June 2021. See
https://www.reddit.com/r/modnews/comments/mar9ha/even_more_modmail_improvements/ for
more info.
Fixed
- Fixed bug where :meth:
.WikiPage.editand :meth:.SubredditWiki.createwould fail if
passedcontentandreasonparameters that produced a request with a body
greater than 500 KiB, even when the parameters did not exceed their respective
permitted maximum lengths. - Fixed bug where :meth:
.Reddit.requestcould not handle instances ofBadRequest\s
when the JSON data contained only the keys "reason" and "message". - Fixed bug where :meth:
.Reddit.requestcould not handle instances ofBadRequest\s
when the response did not contain valid JSON data. - Fixed bug where :meth:
.FullnameMixin.fullnamesometimes returned the wrong fullname.
v7.2.0
7.2.0 (2021/02/24)
Added
- :class:
.Redditkeyword argumenttoken_manager. - :class:
.FileTokenManagerand its parent abstract class :class:.BaseTokenManager.
Deprecated
- The configuration setting
refresh_tokenis deprecated and its use will result in a
:py:class:DeprecationWarning. This deprecation applies in all ways of setting
configuration values, i.e., viapraw.ini, as a keyword argument when initializing
an instance of :class:.Reddit, and via thePRAW_REFRESH_TOKENenvironment
variable. To be prepared for PRAW 8, use the new :class:.Redditkeyword argument
token_manager. See :ref:refresh_tokenin PRAW's documentation for an example. - :meth:
.mewill no longer returnNonewhen called in :attr:.read_onlymode
starting in PRAW 8. A :py:class:DeprecationWarningwill be issued. To switch forward
to the PRAW 8 behavior setpraw8_raise_exception_on_me=Truein your
:class:.Redditcall.