mattermost-cli 0.0.1__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.
@@ -0,0 +1,105 @@
1
+ Metadata-Version: 2.4
2
+ Name: mattermost-cli
3
+ Version: 0.0.1
4
+ Summary: Mattermost CLI for humans and agents
5
+ Project-URL: Homepage, https://github.com/rhnvrm/mattermost-cli
6
+ Project-URL: Repository, https://github.com/rhnvrm/mattermost-cli
7
+ Project-URL: Issues, https://github.com/rhnvrm/mattermost-cli/issues
8
+ Author-email: Rohan Verma <hello@rohanverma.net>
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.9
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Communications :: Chat
22
+ Requires-Python: >=3.9
23
+ Requires-Dist: click>=8.0
24
+ Requires-Dist: httpx<1.0.0,>=0.20.0
25
+ Requires-Dist: mattermostdriver>=7.3
26
+ Provides-Extra: dev
27
+ Requires-Dist: pytest>=7.0; extra == 'dev'
28
+ Description-Content-Type: text/markdown
29
+
30
+ # mattermost-cli
31
+
32
+ Mattermost CLI for humans and agents.
33
+
34
+ ## Install
35
+
36
+ ```bash
37
+ # via uvx (recommended)
38
+ uvx mattermost-cli --help
39
+
40
+ # or pip
41
+ pip install mattermost-cli
42
+ ```
43
+
44
+ ## Setup
45
+
46
+ ```bash
47
+ # Interactive login (password + MFA)
48
+ mm login
49
+
50
+ # Or with a Personal Access Token
51
+ mm login --token <your-pat>
52
+
53
+ # Verify
54
+ mm whoami
55
+ ```
56
+
57
+ ## Usage
58
+
59
+ ```bash
60
+ # List channels
61
+ mm channels
62
+
63
+ # Show unread messages
64
+ mm unread
65
+
66
+ # Read messages from a channel
67
+ mm messages general
68
+ mm messages general --since 1h
69
+ mm messages @username # DM with a user
70
+
71
+ # Read a thread
72
+ mm thread <post-id>
73
+
74
+ # Search
75
+ mm search "deployment issue"
76
+ mm mentions
77
+ ```
78
+
79
+ ## Options
80
+
81
+ ```
82
+ --human Human-readable markdown output (default is JSON)
83
+ --team Filter to a specific team
84
+ --debug Enable debug output
85
+ ```
86
+
87
+ ## Auth
88
+
89
+ Two methods supported:
90
+
91
+ **Password + MFA** (primary): `mm login` prompts interactively. Session token
92
+ is stored locally - password is never saved to disk. When the session expires,
93
+ run `mm login` again.
94
+
95
+ **Personal Access Token** (optional): `mm login --token <pat>`. Requires admin
96
+ to enable PATs on the Mattermost server. Tokens don't expire.
97
+
98
+ Credentials stored at `~/.config/mm/config.json` (token only, 600 permissions).
99
+
100
+ Environment variables override config: `MATTERMOST_URL`, `MATTERMOST_TOKEN`,
101
+ `MATTERMOST_TEAM`.
102
+
103
+ ## License
104
+
105
+ MIT
@@ -0,0 +1,6 @@
1
+ mmchat/_version.py,sha256=qf6R-J7-UyuABBo8c0HgaquJ8bejVbf07HodXgwAwgQ,704
2
+ mattermost_cli-0.0.1.dist-info/METADATA,sha256=9Ghd2Go9eXsnE0H50vN8VTxPwxs5jUpQKq22csa9NwQ,2467
3
+ mattermost_cli-0.0.1.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
4
+ mattermost_cli-0.0.1.dist-info/entry_points.txt,sha256=DLnXnUbtRHOPnAjhJbH5lCOSEc567K7NzRGyrWuwP30,39
5
+ mattermost_cli-0.0.1.dist-info/licenses/LICENSE,sha256=oWYzxuYHgmGxEDs5fxuxOUWbbhNYzba_ZJou1sGXi1U,1068
6
+ mattermost_cli-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.29.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ mm = mmchat.cli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Rohan Verma
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
mmchat/_version.py ADDED
@@ -0,0 +1,34 @@
1
+ # file generated by setuptools-scm
2
+ # don't change, don't track in version control
3
+
4
+ __all__ = [
5
+ "__version__",
6
+ "__version_tuple__",
7
+ "version",
8
+ "version_tuple",
9
+ "__commit_id__",
10
+ "commit_id",
11
+ ]
12
+
13
+ TYPE_CHECKING = False
14
+ if TYPE_CHECKING:
15
+ from typing import Tuple
16
+ from typing import Union
17
+
18
+ VERSION_TUPLE = Tuple[Union[int, str], ...]
19
+ COMMIT_ID = Union[str, None]
20
+ else:
21
+ VERSION_TUPLE = object
22
+ COMMIT_ID = object
23
+
24
+ version: str
25
+ __version__: str
26
+ __version_tuple__: VERSION_TUPLE
27
+ version_tuple: VERSION_TUPLE
28
+ commit_id: COMMIT_ID
29
+ __commit_id__: COMMIT_ID
30
+
31
+ __version__ = version = '0.0.1'
32
+ __version_tuple__ = version_tuple = (0, 0, 1)
33
+
34
+ __commit_id__ = commit_id = None