arcanechat-tui 0.11.1__py3-none-any.whl → 0.12.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- arcanechat_tui/_version.py +16 -3
- arcanechat_tui/composer.py +2 -2
- arcanechat_tui/util.py +4 -2
- {arcanechat_tui-0.11.1.dist-info → arcanechat_tui-0.12.0.dist-info}/METADATA +30 -14
- {arcanechat_tui-0.11.1.dist-info → arcanechat_tui-0.12.0.dist-info}/RECORD +9 -9
- {arcanechat_tui-0.11.1.dist-info → arcanechat_tui-0.12.0.dist-info}/WHEEL +1 -1
- {arcanechat_tui-0.11.1.dist-info → arcanechat_tui-0.12.0.dist-info}/entry_points.txt +0 -0
- {arcanechat_tui-0.11.1.dist-info → arcanechat_tui-0.12.0.dist-info/licenses}/LICENSE +0 -0
- {arcanechat_tui-0.11.1.dist-info → arcanechat_tui-0.12.0.dist-info}/top_level.txt +0 -0
arcanechat_tui/_version.py
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
# file generated by setuptools-scm
|
|
2
2
|
# don't change, don't track in version control
|
|
3
3
|
|
|
4
|
-
__all__ = [
|
|
4
|
+
__all__ = [
|
|
5
|
+
"__version__",
|
|
6
|
+
"__version_tuple__",
|
|
7
|
+
"version",
|
|
8
|
+
"version_tuple",
|
|
9
|
+
"__commit_id__",
|
|
10
|
+
"commit_id",
|
|
11
|
+
]
|
|
5
12
|
|
|
6
13
|
TYPE_CHECKING = False
|
|
7
14
|
if TYPE_CHECKING:
|
|
@@ -9,13 +16,19 @@ if TYPE_CHECKING:
|
|
|
9
16
|
from typing import Union
|
|
10
17
|
|
|
11
18
|
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
19
|
+
COMMIT_ID = Union[str, None]
|
|
12
20
|
else:
|
|
13
21
|
VERSION_TUPLE = object
|
|
22
|
+
COMMIT_ID = object
|
|
14
23
|
|
|
15
24
|
version: str
|
|
16
25
|
__version__: str
|
|
17
26
|
__version_tuple__: VERSION_TUPLE
|
|
18
27
|
version_tuple: VERSION_TUPLE
|
|
28
|
+
commit_id: COMMIT_ID
|
|
29
|
+
__commit_id__: COMMIT_ID
|
|
19
30
|
|
|
20
|
-
__version__ = version = '0.
|
|
21
|
-
__version_tuple__ = version_tuple = (0,
|
|
31
|
+
__version__ = version = '0.12.0'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 12, 0)
|
|
33
|
+
|
|
34
|
+
__commit_id__ = commit_id = None
|
arcanechat_tui/composer.py
CHANGED
|
@@ -51,7 +51,7 @@ class ComposerWidget(urwid.Filler):
|
|
|
51
51
|
accid, chatid = self.chat or (0, 0)
|
|
52
52
|
if accid:
|
|
53
53
|
chat = self.client.rpc.get_basic_chat_info(accid, chatid)
|
|
54
|
-
if chat.is_contact_request
|
|
54
|
+
if chat.is_contact_request:
|
|
55
55
|
# accept contact requests automatically on sending
|
|
56
56
|
self.client.rpc.accept_chat(accid, chatid)
|
|
57
57
|
try:
|
|
@@ -65,7 +65,7 @@ class ComposerWidget(urwid.Filler):
|
|
|
65
65
|
def _update_status_bar(self, chat: Optional[Tuple[int, int]]) -> None:
|
|
66
66
|
if chat:
|
|
67
67
|
info = self.client.rpc.get_basic_chat_info(*chat)
|
|
68
|
-
verified = "✓ " if info.
|
|
68
|
+
verified = "✓ " if info.is_self_talk or info.is_device_chat else ""
|
|
69
69
|
muted = " (muted)" if info.is_muted else ""
|
|
70
70
|
name = shorten_text(info.name, 40)
|
|
71
71
|
|
arcanechat_tui/util.py
CHANGED
|
@@ -22,13 +22,15 @@ def get_subtitle(rpc: Rpc, accid: int, chat: Any) -> str:
|
|
|
22
22
|
return "Locally generated messages"
|
|
23
23
|
if chat.chat_type == ChatType.MAILINGLIST:
|
|
24
24
|
return "Mailing List"
|
|
25
|
+
if chat.chat_type == ChatType.IN_BROADCAST:
|
|
26
|
+
return "Channel"
|
|
25
27
|
|
|
26
28
|
members = rpc.get_chat_contacts(accid, chat.id)
|
|
27
29
|
if chat.chat_type == ChatType.SINGLE:
|
|
28
30
|
subtitle = rpc.get_contact(accid, members[0]).address
|
|
29
|
-
elif chat.chat_type == ChatType.
|
|
31
|
+
elif chat.chat_type == ChatType.OUT_BROADCAST:
|
|
30
32
|
count = len(members)
|
|
31
|
-
subtitle = "1
|
|
33
|
+
subtitle = "1 subscribers" if count == 1 else f"{count} subscribers"
|
|
32
34
|
else:
|
|
33
35
|
count = len(members)
|
|
34
36
|
subtitle = "1 member" if count == 1 else f"{count} members"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: arcanechat-tui
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.12.0
|
|
4
4
|
Summary: ArcaneChat client for the command line
|
|
5
5
|
Author-email: adbenitez <adb@merlinux.eu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/ArcaneChat/arcanechat-tui
|
|
@@ -11,15 +11,15 @@ Classifier: Intended Audience :: End Users/Desktop
|
|
|
11
11
|
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
12
12
|
Classifier: Operating System :: POSIX
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
|
14
|
-
Requires-Python: >=3.
|
|
14
|
+
Requires-Python: >=3.10
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
License-File: LICENSE
|
|
17
|
-
Requires-Dist: deltachat2
|
|
18
|
-
Requires-Dist: urwid
|
|
19
|
-
Requires-Dist: urwid-readline
|
|
20
|
-
Requires-Dist: appdirs
|
|
17
|
+
Requires-Dist: deltachat2==0.9.0
|
|
18
|
+
Requires-Dist: urwid==3.0.5
|
|
19
|
+
Requires-Dist: urwid-readline==0.15.1
|
|
20
|
+
Requires-Dist: appdirs==1.4.4
|
|
21
21
|
Provides-Extra: full
|
|
22
|
-
Requires-Dist: deltachat-rpc-server
|
|
22
|
+
Requires-Dist: deltachat-rpc-server==2.39.0; extra == "full"
|
|
23
23
|
Provides-Extra: dev
|
|
24
24
|
Requires-Dist: deltachat-rpc-server; extra == "dev"
|
|
25
25
|
Requires-Dist: black; extra == "dev"
|
|
@@ -28,6 +28,7 @@ Requires-Dist: isort; extra == "dev"
|
|
|
28
28
|
Requires-Dist: pylint; extra == "dev"
|
|
29
29
|
Requires-Dist: pylama; extra == "dev"
|
|
30
30
|
Requires-Dist: pytest; extra == "dev"
|
|
31
|
+
Dynamic: license-file
|
|
31
32
|
|
|
32
33
|
# ArcaneChat TUI
|
|
33
34
|
|
|
@@ -64,20 +65,35 @@ ArcaneChat TUI is a ncurses Delta Chat client developed in Python with the urwid
|
|
|
64
65
|
- [ ] Open HTML messages
|
|
65
66
|
- [ ] View archived chats
|
|
66
67
|
|
|
67
|
-
##
|
|
68
|
+
## Installing
|
|
68
69
|
|
|
69
|
-
|
|
70
|
+
#### With pip
|
|
71
|
+
|
|
72
|
+
This program depends on the `deltachat-rpc-server` program to be installed in your system,
|
|
73
|
+
if you want to try to install it using pip run:
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
$ pip install -U "arcanechat-tui[full]"
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
If you will manually install the `deltachat-rpc-server` program in
|
|
80
|
+
your PATH on your own, then run:
|
|
70
81
|
|
|
71
82
|
```
|
|
72
83
|
$ pip install -U arcanechat-tui
|
|
73
84
|
```
|
|
74
85
|
|
|
75
|
-
|
|
76
|
-
|
|
86
|
+
#### With pipx
|
|
87
|
+
|
|
88
|
+
To install ArcaneChat TUI with [pipx](https://pipx.pypa.io):
|
|
77
89
|
|
|
78
90
|
```
|
|
79
|
-
$
|
|
91
|
+
$ pipx install arcanechat-tui deltachat-rpc-server
|
|
80
92
|
```
|
|
81
93
|
|
|
82
|
-
|
|
94
|
+
## Using
|
|
95
|
+
|
|
96
|
+
After installation the command `arcanechat-tui`
|
|
97
|
+
(and `arcanechat` alias) should be available.
|
|
98
|
+
|
|
83
99
|
For more tips and info check [the user guide](https://github.com/ArcaneChat/arcanechat-tui/blob/main/docs/user-guide.md)
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
arcanechat_tui/__init__.py,sha256=EJ_Af1qkdPQl6WAXsxmyJCZnq73CK7WvRd4zZ4htgNE,88
|
|
2
2
|
arcanechat_tui/__main__.py,sha256=7iZtR8sTQVdj9Bp0j3XmcTa5V0Mer_qODlBBmkivZ_8,75
|
|
3
|
-
arcanechat_tui/_version.py,sha256=
|
|
3
|
+
arcanechat_tui/_version.py,sha256=VDAgmYWykomGcTucvPJWNS0ePk26QojGHvaE9chtgGc,706
|
|
4
4
|
arcanechat_tui/application.py,sha256=6eCT90gNeX3HEGTZviEIEDWHWKqs8-Er1qoqasE_EdM,6252
|
|
5
5
|
arcanechat_tui/cards_widget.py,sha256=0KKeOo9bxjeSUW4MIKhU3cPQRA2i_giC1tJmMQcBc1g,1063
|
|
6
6
|
arcanechat_tui/chatlist.py,sha256=OgzlNapyeoCd6GeMf8zwsSCJGKKRAcmRj93iZFbXAtA,3536
|
|
7
7
|
arcanechat_tui/cli.py,sha256=86b7n_Xao91XFQVuGY9uj8IfDFMf2Nmi72Kfybc9MSc,5205
|
|
8
|
-
arcanechat_tui/composer.py,sha256
|
|
8
|
+
arcanechat_tui/composer.py,sha256=vqQJ6Rt7knHbcIBf_KRmXWdfpOQ9mXmqMGVZw0yW1Fs,3285
|
|
9
9
|
arcanechat_tui/container.py,sha256=wAVDyoaDNMh66LZJlyjYS-Ov3EZ2WKAad1dLtRA16G4,1205
|
|
10
10
|
arcanechat_tui/conversation.py,sha256=vLSXA_7pu3XVBFwEZvVRRTRBq0utv_zEKdyB42hF41s,4880
|
|
11
11
|
arcanechat_tui/eventcenter.py,sha256=CRzHpfj0S-lmlovbhdBkmNlZLG6ggDQ6_Wo_0dbMHIs,1843
|
|
12
12
|
arcanechat_tui/lazylistwaker.py,sha256=R7aZAB0nNN4NnXw9C8lIxxDVnrp5ORgdFrVXOW-4jus,1266
|
|
13
13
|
arcanechat_tui/logger.py,sha256=iDjUlixjhTUsf0cbGMuUyChpwqCYkl-BUWwsEhMXxbM,752
|
|
14
14
|
arcanechat_tui/main.py,sha256=nY0gfu4WZuEnhRr72dUXVyq15wufWoP2PzPQRx98Q7E,2339
|
|
15
|
-
arcanechat_tui/util.py,sha256=
|
|
15
|
+
arcanechat_tui/util.py,sha256=bWcv9vizV_oeLAqUYnkBNisHhryWyDtrk1KILb3TOWk,2462
|
|
16
16
|
arcanechat_tui/welcome_widget.py,sha256=NmqO-upmhxafyEqvX2nb-_oq9jqRyzmv9bIy8DRvZBU,289
|
|
17
|
-
arcanechat_tui-0.
|
|
18
|
-
arcanechat_tui-0.
|
|
19
|
-
arcanechat_tui-0.
|
|
20
|
-
arcanechat_tui-0.
|
|
21
|
-
arcanechat_tui-0.
|
|
22
|
-
arcanechat_tui-0.
|
|
17
|
+
arcanechat_tui-0.12.0.dist-info/licenses/LICENSE,sha256=WJ7YI-moTFb-uVrFjnzzhGJrnL9P2iqQe8NuED3hutI,35141
|
|
18
|
+
arcanechat_tui-0.12.0.dist-info/METADATA,sha256=K_T_GG5ekWihDH3UiKYz6kQAkCVh6xYbBRjdcHssfYw,3489
|
|
19
|
+
arcanechat_tui-0.12.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
20
|
+
arcanechat_tui-0.12.0.dist-info/entry_points.txt,sha256=cOKMCA5BK4reEGl2gSUUqrSbUtzCTWWO4p2V4UbH4jg,98
|
|
21
|
+
arcanechat_tui-0.12.0.dist-info/top_level.txt,sha256=0JfCgQOxXYW8LuwcbE9cUF0m4PCYTXcVmQ63nbmmM8E,15
|
|
22
|
+
arcanechat_tui-0.12.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|