mailfmt 0.1.0__py3-none-any.whl → 1.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.
@@ -1,9 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mailfmt
3
- Version: 0.1.0
4
- Summary: Plain text email formatter
3
+ Version: 1.0.1
4
+ Summary: Heuristic plain text email formatter.
5
+ Project-URL: Repository, https://git.sr.ht/~ficd/mailfmt
5
6
  Author-email: Daniel Fichtinger <daniel@ficd.ca>
7
+ License-Expression: ISC
6
8
  License-File: LICENSE
9
+ Keywords: cli,email,formatter
7
10
  Requires-Python: >=3.11
8
11
  Description-Content-Type: text/markdown
9
12
 
@@ -13,14 +16,14 @@ Description-Content-Type: text/markdown
13
16
  consistent paragraph spacing while preserving markdown syntax, email headers,
14
17
  sign-offs, and signature blocks.
15
18
 
16
- By default, this script accepts its input on `stdin` and prints to `stdout`.
19
+ By default, the command accepts its input on `stdin` and prints to `stdout`.
17
20
  This makes it well suited for use as a formatter with a text editor like Kakoune
18
- or Helix. It has no dependencies besides the standard Python interpreter, and
19
- was written and tested against Python 3.13.3.
21
+ or Helix.
20
22
 
21
23
  <!--toc:start-->
22
24
 
23
25
  - [Features](#features)
26
+ - [Installation](#installation)
24
27
  - [Usage](#usage)
25
28
  - [Output Example](#output-example)
26
29
  - [Markdown Safety](#markdown-safety)
@@ -46,6 +49,28 @@ was written and tested against Python 3.13.3.
46
49
  - Use case: piping the output to `pandoc` to write a `text/html` message. See
47
50
  [Markdown Safety](#markdown-safety).
48
51
 
52
+ ## Installation
53
+
54
+ `mailfmt` is intended for use as a standaole tool. The package is available on
55
+ PyPI as `mailfmt`. I recommend using [uv](https://github.com/astral-sh/uv) or
56
+ `pipx` to install it so the `mailfmt` command is available on your path:
57
+
58
+ ```sh
59
+ uv tool install mailfmt
60
+ ```
61
+
62
+ Verify that the installation was successful:
63
+
64
+ ```sh
65
+ mailfmt --help
66
+ ```
67
+
68
+ The tool doesn't currently have any dependencies. Therefore, you can just
69
+ download and execute the
70
+ [mailfmt](https://git.sr.ht/~ficd/mailfmt/tree/main/item/mailfmt.py) script
71
+ directly. However, dependencies may be introduced later, so I recommend
72
+ installing with a Python package manager.
73
+
49
74
  ## Usage
50
75
 
51
76
  ```
@@ -0,0 +1,6 @@
1
+ mailfmt.py,sha256=Wl1maUKnbhwVdglHZxuTt4YApYP5lv3FUUJ0gWOrz_M,6568
2
+ mailfmt-1.0.1.dist-info/METADATA,sha256=blXENNntFVAEvOOGGRsBaSf19ptrD9kVK1HGsvYW_9c,6272
3
+ mailfmt-1.0.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
4
+ mailfmt-1.0.1.dist-info/entry_points.txt,sha256=eFkLVHtmLEdRnOOzT4d2pAy7mBkjESW_8VQgUfAWvk4,41
5
+ mailfmt-1.0.1.dist-info/licenses/LICENSE,sha256=M8EhEEXHuRQsNgdRFtF2Ty6P62p8vgDanib1C-Zqkqc,749
6
+ mailfmt-1.0.1.dist-info/RECORD,,
mailfmt.py CHANGED
@@ -84,11 +84,12 @@ def main() -> None:
84
84
  return False
85
85
 
86
86
  parser = argparse.ArgumentParser(
87
- description='Formatter for plain text email.\n"--no-*" options are NOT passed by default.',
87
+ description="Heuristic formatter for plain text email. Preserves markup, signoffs, and signature blocks.",
88
88
  epilog="""
89
- Author : Daniel Fichtinger
90
- License: ISC
91
- Contact: daniel@ficd.ca
89
+ Author : Daniel Fichtinger
90
+ Repository: https://git.sr.ht/~ficd/mailfmt
91
+ License : ISC
92
+ Contact : daniel@ficd.ca
92
93
  """,
93
94
  formatter_class=argparse.RawDescriptionHelpFormatter,
94
95
  )
@@ -1,6 +0,0 @@
1
- mailfmt.py,sha256=auV0gcx7smsNhjbjdL8yNNDVEEidGMwJMB4AsUyBwbk,6500
2
- mailfmt-0.1.0.dist-info/METADATA,sha256=oJkZ8gCdpMFJOyLXO7BZHYfVoL2x2zZlpRwhSo6fjLg,5587
3
- mailfmt-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
4
- mailfmt-0.1.0.dist-info/entry_points.txt,sha256=eFkLVHtmLEdRnOOzT4d2pAy7mBkjESW_8VQgUfAWvk4,41
5
- mailfmt-0.1.0.dist-info/licenses/LICENSE,sha256=M8EhEEXHuRQsNgdRFtF2Ty6P62p8vgDanib1C-Zqkqc,749
6
- mailfmt-0.1.0.dist-info/RECORD,,