Skip to content

Commit 39ba0f6

Browse files
committed
bump version 0.2.0
1 parent 0cd20ff commit 39ba0f6

File tree

5 files changed

+5
-23
lines changed

5 files changed

+5
-23
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog of the PyStackAPI library
22

3-
## 0.2.0 (??.??.202?)
3+
## 0.2.0 (06.12.2023)
44

55
### Added:
66

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</picture>
66
</h1>
77

8-
Here is PyStackAPI version 0.2.0dev
8+
Here is PyStackAPI version 0.2.0
99

1010
## What is PyStackAPI?
1111

@@ -16,7 +16,7 @@ PyStackAPI is a modern, 100% typed wrapper for the StackExchange API, written in
1616
To install PyStackAPI, just enter in the terminal:
1717

1818
```shell
19-
pip install git+https://github.com/wchistow/pystackapi.git@0.1.1
19+
pip install git+https://github.com/wchistow/pystackapi.git@0.2.0
2020
```
2121

2222
## Documentation

TODO.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
11
# ToDo
22

33
+ [ ] add more examples to directory `examples/`;
4-
+ [X] add methods, that requires authentication (of course, each of these methods needs tests) (they also need checks, that `self.access_token` and `self.app_key` are set):
5-
+ [X] `get_me(self, **kwargs: Any) -> Item` - API method `me`;
6-
+ [X] `get_my_full_reputation_history(self, **kwargs: Any) -> list[Item]` - API method `me/reputation-history/full`;
7-
+ [X] `get_my_inbox(self, **kwargs: Any) -> list[Item]` - API method `me/inbox`;
8-
+ [X] `get_my_unread_inbox(self, **kwargs: Any) -> list[Item]` - API method `me/inbox/unread`;
9-
+ [X] `get_unanswered_questions_on_my_tags(self, **kwargs: Any) -> list[Item]` - API method `questions/unanswered/my-tags`;
10-
+ [X] add methods with POST-requests (of course, each of these methods needs tests) (they also need checks, that `self.access_token` and `self.app_key` are set):
11-
+ [X] `add_answer(self, q_id: int, body: str, **kwargs: Any) -> Item` - API method `questions/{id}/answers/add`;
12-
+ [X] `add_answers_suggested_edit(self, a_id: int, body: str, comment: str, **kwargs: Any) -> Item` - API method `answers/{id}/suggested-edit/add`;
13-
+ [X] `add_comment(self, post_id: int, body: str, **kwargs: Any) -> Item` - API method `posts/{id}/comments/add`;
14-
+ [X] `add_question(self, title: str, body: str, tags: list[str], **kwargs: Any) -> Item` - API method `questions/add`;
15-
+ [X] `add_questions_suggested_edit(self, q_id: int, title: str, body: str, tags: list[str], comment: str, **kwargs: Any) -> Item` - API method `questions/{id}/suggested-edit/add`;
16-
+ [X] `edit_answer(self, a_id: int, body: str, **kwargs: Any) -> Item` - API method `answers/{id}/edit`;
17-
+ [X] `edit_comment(self, c_id: int, body: str, **kwargs: Any) -> Item` - API method `comments/{id}/edit`;
18-
+ [X] `edit_question(self, q_id: int, title: str, body: str, tags: list[str], **kwargs: Any) -> Item` - API method `questions/{id}/edit`;
19-
+ [X] `delete_answer(self, a_id: int, **kwargs: Any) -> None` - API method `answers/{id}/delete`;
20-
+ [X] `delete_comment(self, c_id: int, **kwargs: Any) -> None` - API method `comments/{id}/delete`;
21-
+ [X] `delete_question(self, q_id: int, **kwargs: Any) -> None` - API method `questions/{id}/delete`;
224

235
*when you're done any of these tasks, replace `[ ]` in start of line with this task to `[X]`.*

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = 'pystackapi'
3-
version = '0.2.0dev'
3+
version = '0.2.0'
44
license = {file = 'LICENSE'}
55
description = 'PyStackAPI is a modern, 100% typed wrapper for the StackExchange API, written in Python.'
66
authors = [

src/pystackapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from .network import Network
22
from .site import Site
33

4-
__version__ = '0.2.0dev'
4+
__version__ = '0.2.0'
55
__all__ = ('Site', 'Network', 'sites', 'errors', 'item')

0 commit comments

Comments
 (0)