session-python 1.0.2__tar.gz → 1.0.4__tar.gz

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.
Files changed (20) hide show
  1. {session_python-1.0.2/session_python.egg-info → session_python-1.0.4}/PKG-INFO +32 -1
  2. {session_python-1.0.2 → session_python-1.0.4}/README.md +31 -0
  3. {session_python-1.0.2 → session_python-1.0.4}/pyproject.toml +1 -1
  4. {session_python-1.0.2 → session_python-1.0.4}/session_python/cli.py +1 -1
  5. {session_python-1.0.2 → session_python-1.0.4/session_python.egg-info}/PKG-INFO +32 -1
  6. {session_python-1.0.2 → session_python-1.0.4}/LICENSE +0 -0
  7. {session_python-1.0.2 → session_python-1.0.4}/session_python/__init__.py +0 -0
  8. {session_python-1.0.2 → session_python-1.0.4}/session_python/client.py +0 -0
  9. {session_python-1.0.2 → session_python-1.0.4}/session_python/crypto.py +0 -0
  10. {session_python-1.0.2 → session_python-1.0.4}/session_python/mnemonic.py +0 -0
  11. {session_python-1.0.2 → session_python-1.0.4}/session_python/network.py +0 -0
  12. {session_python-1.0.2 → session_python-1.0.4}/session_python/polling.py +0 -0
  13. {session_python-1.0.2 → session_python-1.0.4}/session_python/protobuf/__init__.py +0 -0
  14. {session_python-1.0.2 → session_python-1.0.4}/session_python/protobuf/signalservice_pb2.py +0 -0
  15. {session_python-1.0.2 → session_python-1.0.4}/session_python.egg-info/SOURCES.txt +0 -0
  16. {session_python-1.0.2 → session_python-1.0.4}/session_python.egg-info/dependency_links.txt +0 -0
  17. {session_python-1.0.2 → session_python-1.0.4}/session_python.egg-info/entry_points.txt +0 -0
  18. {session_python-1.0.2 → session_python-1.0.4}/session_python.egg-info/requires.txt +0 -0
  19. {session_python-1.0.2 → session_python-1.0.4}/session_python.egg-info/top_level.txt +0 -0
  20. {session_python-1.0.2 → session_python-1.0.4}/setup.cfg +0 -0
@@ -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.
@@ -126,8 +126,39 @@ with Session(proxy=PROXY) as session:
126
126
  session.delete_message(conversation=RECIPIENT_ID, timestamp=1783586415070, hash_val="IXFgLeoj...")
127
127
  ```
128
128
 
129
+ ## 💻 Command Line Interface (CLI)
130
+
131
+ The package installs a command-line tool `sscli` to manage mnemonics and generate accounts directly from the terminal.
132
+
133
+ ### 1. Generate a new Session ID and Mnemonic
134
+ ```bash
135
+ sscli mnemonic gen
136
+ ```
137
+
138
+ ### 2. Generate a Vanity Session ID (Prefix Brute-force)
139
+ Find custom Session IDs. By default, this uses all available CPU threads for maximum performance:
140
+ ```bash
141
+ # Find a Session ID starting with '05abc...'
142
+ sscli mnemonic gen -p abc
143
+
144
+ # Generate 3 accounts starting with '0577...' using 2 threads
145
+ sscli mnemonic gen -p 77 -n 3 -t 2
146
+ ```
147
+
148
+ ### 3. Derive Session ID from existing mnemonic
149
+ ```bash
150
+ sscli mnemonic gen "your 13 word mnemonic here..."
151
+ ```
152
+
153
+ ### 4. Verify a mnemonic
154
+ Validates the checksum and words of a mnemonic, and outputs its hex seed and Session ID:
155
+ ```bash
156
+ sscli mnemonic verify "your 13 word mnemonic here..."
157
+ ```
158
+
129
159
  ---
130
160
 
161
+
131
162
  ## ⚖️ License
132
163
 
133
164
  This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "session-python"
7
- version = "1.0.2"
7
+ version = "1.0.4"
8
8
  description = "A pure Python implementation of the Session Messenger protocol client"
9
9
  readme = "README.md"
10
10
  authors = [
@@ -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.
File without changes
File without changes