session-python 1.0.2__py3-none-any.whl → 1.0.4__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.
session_python/cli.py CHANGED
@@ -189,7 +189,7 @@ def main():
189
189
  p.start()
190
190
  processes.append(p)
191
191
 
192
- with Live(Text("Initializing search...", style="yellow"), refresh_per_second=10) as live:
192
+ with Live(Text("Initializing search...", style="yellow"), refresh_per_second=10, transient=True) as live:
193
193
  while not stop_event.is_set() and result_queue.empty():
194
194
  time.sleep(0.1)
195
195
  checked = checked_counter.value
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: session-python
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Summary: A pure Python implementation of the Session Messenger protocol client
5
5
  Author-email: Towux <towux@users.noreply.github.com>
6
6
  Project-URL: Homepage, https://github.com/towux/session-python
@@ -148,8 +148,39 @@ with Session(proxy=PROXY) as session:
148
148
  session.delete_message(conversation=RECIPIENT_ID, timestamp=1783586415070, hash_val="IXFgLeoj...")
149
149
  ```
150
150
 
151
+ ## 💻 Command Line Interface (CLI)
152
+
153
+ The package installs a command-line tool `sscli` to manage mnemonics and generate accounts directly from the terminal.
154
+
155
+ ### 1. Generate a new Session ID and Mnemonic
156
+ ```bash
157
+ sscli mnemonic gen
158
+ ```
159
+
160
+ ### 2. Generate a Vanity Session ID (Prefix Brute-force)
161
+ Find custom Session IDs. By default, this uses all available CPU threads for maximum performance:
162
+ ```bash
163
+ # Find a Session ID starting with '05abc...'
164
+ sscli mnemonic gen -p abc
165
+
166
+ # Generate 3 accounts starting with '0577...' using 2 threads
167
+ sscli mnemonic gen -p 77 -n 3 -t 2
168
+ ```
169
+
170
+ ### 3. Derive Session ID from existing mnemonic
171
+ ```bash
172
+ sscli mnemonic gen "your 13 word mnemonic here..."
173
+ ```
174
+
175
+ ### 4. Verify a mnemonic
176
+ Validates the checksum and words of a mnemonic, and outputs its hex seed and Session ID:
177
+ ```bash
178
+ sscli mnemonic verify "your 13 word mnemonic here..."
179
+ ```
180
+
151
181
  ---
152
182
 
183
+
153
184
  ## ⚖️ License
154
185
 
155
186
  This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
@@ -1,5 +1,5 @@
1
1
  session_python/__init__.py,sha256=pUE3WQUcc1QEaI58Xa5qBRwSpGcOSwo8CbBbmB34OmM,89
2
- session_python/cli.py,sha256=T_xDDcrogTydQWdh9fUW_cSBEuxdGEru4y9-sXKc8GA,9885
2
+ session_python/cli.py,sha256=Vj4YfaAR_cE20ojsPABs20PAp1sjkIEpB7xlO0duPuw,9901
3
3
  session_python/client.py,sha256=HLqt_Zk2MZidNnIVhUcmC9yVWSJ_5YbCWvVYlbIk5sk,28729
4
4
  session_python/crypto.py,sha256=eouNI6lfXIFd7AqL8GOakLMMTeVvrDdZvIJvEHygc90,10527
5
5
  session_python/mnemonic.py,sha256=9j3r2KVawok1sZ3LuY8ThOfvpNTgLz0zTM8unXOhL3M,18952
@@ -7,9 +7,9 @@ session_python/network.py,sha256=50Usnv08R2TgqGq4VURivIzaFhVBOajAt8zaNsXhiL4,671
7
7
  session_python/polling.py,sha256=IaggPaEzMtxSD6gryaiimmW7OFFcDy1Wmqk0GByAPcU,8615
8
8
  session_python/protobuf/__init__.py,sha256=4rb44gL-mJV1hlfw6s7bgND1OHr8YlN-jTM-SzgchVY,19
9
9
  session_python/protobuf/signalservice_pb2.py,sha256=iBBjC0dBWlBS2gQe7mLkY_YlyjOaWlCaHl0rZyghR0c,14465
10
- session_python-1.0.2.dist-info/licenses/LICENSE,sha256=1EF7fItXLWrIq-VFUyWGfkNILQebdb_LS5CiT6B-qu4,1062
11
- session_python-1.0.2.dist-info/METADATA,sha256=qkZo6HVbYqyf4Hyc3Ckn0rKjknWD_VDSa-_45_kM7jQ,6066
12
- session_python-1.0.2.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
13
- session_python-1.0.2.dist-info/entry_points.txt,sha256=ARn3FY9TtSioZO5Ybg_xdGszu91CDkfdDhQyJzqYmxs,50
14
- session_python-1.0.2.dist-info/top_level.txt,sha256=ud9usATeSN6ArJTxpZ_d19Gid7FAGR4kHubtN2-By9g,15
15
- session_python-1.0.2.dist-info/RECORD,,
10
+ session_python-1.0.4.dist-info/licenses/LICENSE,sha256=1EF7fItXLWrIq-VFUyWGfkNILQebdb_LS5CiT6B-qu4,1062
11
+ session_python-1.0.4.dist-info/METADATA,sha256=-0xmPQlGF-k97CUjG4N3XCcREmYTVUzUAk5loghlYA0,6964
12
+ session_python-1.0.4.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
13
+ session_python-1.0.4.dist-info/entry_points.txt,sha256=ARn3FY9TtSioZO5Ybg_xdGszu91CDkfdDhQyJzqYmxs,50
14
+ session_python-1.0.4.dist-info/top_level.txt,sha256=ud9usATeSN6ArJTxpZ_d19Gid7FAGR4kHubtN2-By9g,15
15
+ session_python-1.0.4.dist-info/RECORD,,