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.
@@ -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__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
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.11.1'
21
- __version_tuple__ = version_tuple = (0, 11, 1)
31
+ __version__ = version = '0.12.0'
32
+ __version_tuple__ = version_tuple = (0, 12, 0)
33
+
34
+ __commit_id__ = commit_id = None
@@ -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 or chat.is_protection_broken:
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.is_protected or info.is_device_chat else ""
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.BROADCAST:
31
+ elif chat.chat_type == ChatType.OUT_BROADCAST:
30
32
  count = len(members)
31
- subtitle = "1 recipient" if count == 1 else f"{count} recipients"
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.2
1
+ Metadata-Version: 2.4
2
2
  Name: arcanechat-tui
3
- Version: 0.11.1
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.8
14
+ Requires-Python: >=3.10
15
15
  Description-Content-Type: text/markdown
16
16
  License-File: LICENSE
17
- Requires-Dist: deltachat2>=0.2.0
18
- Requires-Dist: urwid>=2.6.10
19
- Requires-Dist: urwid-readline>=0.14
20
- Requires-Dist: appdirs>=1.4.4
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>=1.136.6; extra == "full"
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
- ## Installation
68
+ ## Installing
68
69
 
69
- Install ArcaneChat TUI with pip:
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
- This program depends on the `deltachat-rpc-server` program to be installed in your system,
76
- if you want to try to install it using pip run:
86
+ #### With pipx
87
+
88
+ To install ArcaneChat TUI with [pipx](https://pipx.pypa.io):
77
89
 
78
90
  ```
79
- $ pip install -U arcanechat-tui[full]
91
+ $ pipx install arcanechat-tui deltachat-rpc-server
80
92
  ```
81
93
 
82
- After installation the command `arcanechat-tui` (and `arcanechat` alias) should be available.
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=g-BRN5ntacVPfcVOcNVRBE1Tq9w5RF-9CzVCMjwnu8w,513
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=-re3gy4FvYK1ENH2Dq6Q6GuWMkDd4j-oOyOUVWwBgqk,3314
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=Fmw4DSRedxiesI250oLrUk8Ot-xOwH0fnAgLbSvO8SA,2382
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.11.1.dist-info/LICENSE,sha256=WJ7YI-moTFb-uVrFjnzzhGJrnL9P2iqQe8NuED3hutI,35141
18
- arcanechat_tui-0.11.1.dist-info/METADATA,sha256=R6D7GIxEVcWgzIHMi3FcRCb2Jbbx7ZvW9CP4g5zgwcM,3235
19
- arcanechat_tui-0.11.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
20
- arcanechat_tui-0.11.1.dist-info/entry_points.txt,sha256=cOKMCA5BK4reEGl2gSUUqrSbUtzCTWWO4p2V4UbH4jg,98
21
- arcanechat_tui-0.11.1.dist-info/top_level.txt,sha256=0JfCgQOxXYW8LuwcbE9cUF0m4PCYTXcVmQ63nbmmM8E,15
22
- arcanechat_tui-0.11.1.dist-info/RECORD,,
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5