myl 0.9.0__py3-none-any.whl → 0.9.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.
- {myl-0.9.0.dist-info → myl-0.9.1.dist-info}/METADATA +12 -4
- myl-0.9.1.dist-info/RECORD +7 -0
- myl.py +12 -0
- myl-0.9.0.dist-info/RECORD +0 -7
- {myl-0.9.0.dist-info → myl-0.9.1.dist-info}/LICENSE +0 -0
- {myl-0.9.0.dist-info → myl-0.9.1.dist-info}/WHEEL +0 -0
- {myl-0.9.0.dist-info → myl-0.9.1.dist-info}/entry_points.txt +0 -0
- {myl-0.9.0.dist-info → myl-0.9.1.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: myl
|
3
|
-
Version: 0.9.
|
3
|
+
Version: 0.9.1
|
4
4
|
Summary: Dead simple IMAP CLI client
|
5
5
|
Author-email: Philipp Schmitt <philipp@schmitt.co>
|
6
6
|
License: GNU GENERAL PUBLIC LICENSE
|
@@ -721,15 +721,23 @@ straightforward way to interact with IMAP servers.
|
|
721
721
|
|
722
722
|
To install myl, follow these steps:
|
723
723
|
|
724
|
-
```
|
724
|
+
```shell
|
725
725
|
pipx install myl
|
726
|
+
# or:
|
727
|
+
pip install --user myl
|
728
|
+
```
|
729
|
+
|
730
|
+
on nix you can do this:
|
731
|
+
|
732
|
+
```shell
|
733
|
+
nix run github.com:pschmitt/myl
|
726
734
|
```
|
727
735
|
|
728
736
|
## 🛠️ Usage
|
729
737
|
|
730
738
|
Here's how you can use myl:
|
731
739
|
|
732
|
-
```
|
740
|
+
```shell
|
733
741
|
myl --help
|
734
742
|
```
|
735
743
|
|
@@ -737,7 +745,7 @@ This command will display the help information for the `myl` command.
|
|
737
745
|
|
738
746
|
Here are some examples of using flags with the `myl` command:
|
739
747
|
|
740
|
-
```
|
748
|
+
```shell
|
741
749
|
# Connect to an IMAP server
|
742
750
|
myl --server imap.example.com --port 143 --starttls --username "$username" --password "$password"
|
743
751
|
|
@@ -0,0 +1,7 @@
|
|
1
|
+
myl.py,sha256=3zCtNscTGN8MDDhVdgL6JWttpRI1FYTj6lHXtMtX1ec,13953
|
2
|
+
myl-0.9.1.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
3
|
+
myl-0.9.1.dist-info/METADATA,sha256=9Orxf5-uV24nLZTPVwFevbKRaYtmRH25yLlip5NZpFo,43420
|
4
|
+
myl-0.9.1.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
5
|
+
myl-0.9.1.dist-info/entry_points.txt,sha256=q6nr0Kzim7JzreXQE3BTU4asLh2sx5-D0w1yLBOcHxc,33
|
6
|
+
myl-0.9.1.dist-info/top_level.txt,sha256=Wn88OJVVWyYSsKVoqzlHXxfFxh5IbrJ_Yw-ldNLe7Po,4
|
7
|
+
myl-0.9.1.dist-info/RECORD,,
|
myl.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
#!/usr/bin/env python3
|
2
2
|
# coding: utf-8
|
3
3
|
|
4
|
+
from importlib.metadata import version, PackageNotFoundError
|
4
5
|
import argparse
|
5
6
|
import logging
|
6
7
|
import ssl
|
@@ -22,6 +23,11 @@ from rich.console import Console
|
|
22
23
|
from rich.logging import RichHandler
|
23
24
|
from rich.table import Table
|
24
25
|
|
26
|
+
try:
|
27
|
+
__version__ = version("myl")
|
28
|
+
except PackageNotFoundError:
|
29
|
+
pass
|
30
|
+
|
25
31
|
LOGGER = logging.getLogger(__name__)
|
26
32
|
IMAP_PORT = 993
|
27
33
|
GMAIL_IMAP_SERVER = "imap.gmail.com"
|
@@ -70,6 +76,12 @@ def parse_args():
|
|
70
76
|
subparsers = parser.add_subparsers(
|
71
77
|
dest="command", help="Available commands"
|
72
78
|
)
|
79
|
+
parser.add_argument(
|
80
|
+
"-V",
|
81
|
+
"--version",
|
82
|
+
action="version",
|
83
|
+
version=f"%(prog)s {__version__}",
|
84
|
+
)
|
73
85
|
|
74
86
|
# Default command: list all emails
|
75
87
|
subparsers.add_parser("list", help="List all emails")
|
myl-0.9.0.dist-info/RECORD
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
myl.py,sha256=EthLDnMEB9lqE0T0em1DaUE9oOPHMm43Ng2AyBTCDTc,13680
|
2
|
-
myl-0.9.0.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
3
|
-
myl-0.9.0.dist-info/METADATA,sha256=ghRv6c27QA4-RCYNTqeG5Yrg3-0rSVltMQBmPbJuadY,43317
|
4
|
-
myl-0.9.0.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
5
|
-
myl-0.9.0.dist-info/entry_points.txt,sha256=q6nr0Kzim7JzreXQE3BTU4asLh2sx5-D0w1yLBOcHxc,33
|
6
|
-
myl-0.9.0.dist-info/top_level.txt,sha256=Wn88OJVVWyYSsKVoqzlHXxfFxh5IbrJ_Yw-ldNLe7Po,4
|
7
|
-
myl-0.9.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|