Skip to content

Commit 59edd04

Browse files
committed
docとバージョン
1 parent 942ee78 commit 59edd04

File tree

4 files changed

+46
-2
lines changed

4 files changed

+46
-2
lines changed

docs/reference/sites.rst

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,31 @@
3232

3333
.. autoclass:: scapi.ProjectFeatured
3434

35-
.. autoclass:: scapi.ProjectVisibility
35+
.. autoclass:: scapi.ProjectVisibility
36+
37+
スタジオ
38+
-------------------------
39+
40+
.. autofunction:: scapi.get_studio
41+
42+
.. autofunction:: scapi.Session.get_studio
43+
:no-index:
44+
45+
.. autoclass:: scapi.Studio
46+
47+
.. autoclass:: scapi.StudioStatus
48+
49+
ユーザー
50+
-------------------------
51+
52+
.. autofunction:: scapi.get_user
53+
54+
.. autofunction:: scapi.Session.get_user
55+
:no-index:
56+
57+
.. autoclass:: scapi.User
58+
59+
コメント
60+
-------------------------
61+
62+
.. autoclass:: scapi.Comment

scapi/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
from .sites.studio import (
2222
Studio,
23+
StudioStatus,
2324
get_studio
2425
)
2526

scapi/sites/studio.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,22 @@
1010
)
1111

1212
class Studio(base._BaseSiteAPI[int]):
13+
"""
14+
スタジオを表す
15+
16+
Attributes:
17+
id (int): スタジオのID
18+
title (common.MAYBE_UNKNOWN[str]): スタジオの名前
19+
host_id (common.MAYBE_UNKNOWN[int]): スタジオの所有者のユーザーID
20+
description (common.MAYBE_UNKNOWN[str]): スタジオの説明欄
21+
open_to_all (common.MAYBE_UNKNOWN[bool]): 誰でもプロジェクトを追加できるか
22+
comments_allowed (common.MAYBE_UNKNOWN[bool]): コメント欄が開いているか
23+
24+
comment_count (common.MAYBE_UNKNOWN[int]): コメントの数(<=100)
25+
follower_count (common.MAYBE_UNKNOWN[int]): フォロワーの数
26+
manager_count (common.MAYBE_UNKNOWN[int]): マネージャーの数
27+
project_count (common.MAYBE_UNKNOWN[int]): プロジェクトの数(<=100)
28+
"""
1329
def __repr__(self) -> str:
1430
return f"<Studio id:{self.id} session:{self.session}>"
1531

scapi/utils/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from . import error,client,config
99

10-
__version__ = "3.0.0a"
10+
__version__ = "3.0.0.dev1"
1111

1212
_KT = TypeVar("_KT")
1313
_VT = TypeVar("_VT")

0 commit comments

Comments
 (0)