arcanechat-tui 0.11.0__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,3 +1,3 @@
1
- """Cursed Delta, a TUI Delta Chat client for the command line"""
1
+ """ArcaneChat TUI, a Delta Chat client for the command line"""
2
2
 
3
- APP_NAME = "CursedDelta"
3
+ APP_NAME = "ArcaneChat"
@@ -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.0'
21
- __version_tuple__ = version_tuple = (0, 11, 0)
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,14 +65,14 @@ 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
 
72
72
  subtitle = shorten_text(get_subtitle(self.client.rpc, chat[0], info), 40)
73
73
  text = f" {verified}[ {name} ]{muted} -- {subtitle}"
74
74
  else:
75
- text = f" Cursed Delta {__version__}"
75
+ text = f" ArcaneChat {__version__}"
76
76
 
77
77
  self.status_bar.set_text(text)
78
78
 
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,7 +1,7 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: arcanechat-tui
3
- Version: 0.11.0
4
- Summary: Delta Chat client for the command line
3
+ Version: 0.12.0
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
7
7
  Project-URL: Issues, https://github.com/ArcaneChat/arcanechat-tui/issues
@@ -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,11 +28,11 @@ 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
- # Cursed Delta
33
+ # ArcaneChat TUI
33
34
 
34
35
  [![Latest Release](https://img.shields.io/pypi/v/arcanechat-tui.svg)](https://pypi.org/project/arcanechat-tui)
35
- [![Downloads](https://pepy.tech/badge/arcanechat-tui)](https://pepy.tech/project/arcanechat-tui)
36
36
  [![License](https://img.shields.io/pypi/l/arcanechat-tui.svg)](https://pypi.org/project/arcanechat-tui)
37
37
  [![CI](https://github.com/ArcaneChat/arcanechat-tui/actions/workflows/python-ci.yml/badge.svg)](https://github.com/ArcaneChat/arcanechat-tui/actions/workflows/python-ci.yml)
38
38
  [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
@@ -40,10 +40,10 @@ Requires-Dist: pytest; extra == "dev"
40
40
  > a lightweight ArcaneChat client for the command line
41
41
 
42
42
  <p align="center">
43
- <img src="https://github.com/ArcaneChat/arcanechat-tui/blob/main/screenshots/e1.png?raw=true" alt="screenshot of Cursed Delta"/>
43
+ <img src="https://github.com/ArcaneChat/arcanechat-tui/blob/main/screenshots/e1.png?raw=true" alt="screenshot of ArcaneChat"/>
44
44
  </p>
45
45
 
46
- Cursed Delta is a ncurses Delta Chat client developed in Python with the urwid library.
46
+ ArcaneChat TUI is a ncurses Delta Chat client developed in Python with the urwid library.
47
47
 
48
48
  #### Features
49
49
 
@@ -65,20 +65,35 @@ Cursed Delta is a ncurses Delta Chat client developed in Python with the urwid l
65
65
  - [ ] Open HTML messages
66
66
  - [ ] View archived chats
67
67
 
68
- ## Installation
68
+ ## Installing
69
69
 
70
- Install Cursed Delta 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:
71
81
 
72
82
  ```
73
83
  $ pip install -U arcanechat-tui
74
84
  ```
75
85
 
76
- This program depends on the `deltachat-rpc-server` program to be installed in your system,
77
- 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):
78
89
 
79
90
  ```
80
- $ pip install -U arcanechat-tui[full]
91
+ $ pipx install arcanechat-tui deltachat-rpc-server
81
92
  ```
82
93
 
83
- After installation the command `curseddelta` (and `delta` alias) should be available.
94
+ ## Using
95
+
96
+ After installation the command `arcanechat-tui`
97
+ (and `arcanechat` alias) should be available.
98
+
84
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
- arcanechat_tui/__init__.py,sha256=yFG9lE7RUK1DoNvKGSxS-31GGcSwNb_CKMUtmaGeTUI,91
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=h33CazvO6X2vAgSb_I-BIOLNm7W5MVFnfSYRgLiRpMA,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=_78xQoynLJdAv2ObjLk90nybxtVBqSxrqFeTwK2F_MQ,3316
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.0.dist-info/LICENSE,sha256=WJ7YI-moTFb-uVrFjnzzhGJrnL9P2iqQe8NuED3hutI,35141
18
- arcanechat_tui-0.11.0.dist-info/METADATA,sha256=wNxjzo4AE_06mMEAc6dafx6kytr2BFO1HnFAP7poHws,3320
19
- arcanechat_tui-0.11.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
20
- arcanechat_tui-0.11.0.dist-info/entry_points.txt,sha256=cOKMCA5BK4reEGl2gSUUqrSbUtzCTWWO4p2V4UbH4jg,98
21
- arcanechat_tui-0.11.0.dist-info/top_level.txt,sha256=0JfCgQOxXYW8LuwcbE9cUF0m4PCYTXcVmQ63nbmmM8E,15
22
- arcanechat_tui-0.11.0.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