git-ew 0.1.0__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,44 @@
1
+ {% extends "base.html" %}
2
+
3
+ {% block title %}Threads - git-ew{% endblock %}
4
+
5
+ {% block content %}
6
+ <div class="threads-list">
7
+ <div class="threads-header">
8
+ <h2>Threads</h2>
9
+ </div>
10
+
11
+ {% if threads %}
12
+ <div class="thread-items">
13
+ {% for thread in threads %}
14
+ <div class="thread-item">
15
+ <div class="thread-icon">
16
+ {% if thread.is_patch %}
17
+ <span class="icon icon-patch" title="Patch">πŸ“</span>
18
+ {% else %}
19
+ <span class="icon icon-discussion" title="Discussion">πŸ’¬</span>
20
+ {% endif %}
21
+ </div>
22
+ <div class="thread-content">
23
+ <div class="thread-title">
24
+ <a href="/thread/{{ thread.id }}" class="thread-link">
25
+ {{ thread.subject }}
26
+ </a>
27
+ </div>
28
+ <div class="thread-meta">
29
+ <span class="thread-date">
30
+ Updated {{ thread.updated_at.strftime('%Y-%m-%d %H:%M') }}
31
+ </span>
32
+ </div>
33
+ </div>
34
+ </div>
35
+ {% endfor %}
36
+ </div>
37
+ {% else %}
38
+ <div class="empty-state">
39
+ <p>No threads found.</p>
40
+ <p>Click "Sync Emails" to fetch threads from your email sources.</p>
41
+ </div>
42
+ {% endif %}
43
+ </div>
44
+ {% endblock %}
@@ -0,0 +1,153 @@
1
+ {% extends "base.html" %}
2
+
3
+ {% block title %}{{ thread.subject }} - git-ew{% endblock %}
4
+
5
+ {% macro render_message(item) %}
6
+ <div class="message-wrapper">
7
+ <div class="message" data-message-id="{{ item.message.message_id }}">
8
+ <div class="message-header">
9
+ <div class="message-info">
10
+ <button class="collapse-btn" onclick="toggleSubthread(event, '{{ item.message.message_id }}')" title="Toggle subthread">
11
+ <span class="collapse-icon">β–Ό</span>
12
+ </button>
13
+ <div class="message-author">
14
+ <strong>{{ item.message.from_name }}</strong>
15
+ <span class="message-email">&lt;{{ item.message.from_email }}&gt;</span>
16
+ </div>
17
+ </div>
18
+ <div class="message-date">
19
+ <code>{{ item.message.message_id }}</code>
20
+ <span>{{ item.message.date.strftime('%Y-%m-%d %H:%M') }}</span>
21
+ </div>
22
+ </div>
23
+ <div class="message-body">
24
+ {# TODO: Option to render Markdown (`|safe`) #}
25
+ <div class="message-text">{{ item.body }}</div>
26
+ {% if item.quoted_body %}
27
+ <details class="quoted-section">
28
+ <summary>Show quoted text</summary>
29
+ <pre class="quoted-text">{{ item.quoted_body }}</pre>
30
+ </details>
31
+ {% endif %}
32
+ </div>
33
+ {% if item.message.is_patch and item.message.patch_content %}
34
+ <div class="message-patch">
35
+ <details>
36
+ <summary>View Patch</summary>
37
+ <pre class="patch-content">{{ item.message.patch_content }}</pre>
38
+ </details>
39
+ </div>
40
+ {% endif %}
41
+ <div class="message-actions">
42
+ <button class="btn btn-sm btn-reply" onclick="replyToMessage('{{ item.message.message_id }}', '{{ item.message.from_name }}')">
43
+ Reply
44
+ </button>
45
+ </div>
46
+ </div>
47
+ {% if item.children %}
48
+ <div class="message-children">
49
+ {% for child in item.children %}
50
+ {{ render_message(child) }}
51
+ {% endfor %}
52
+ </div>
53
+ {% endif %}
54
+ </div>
55
+ {% endmacro %}
56
+
57
+ {% block content %}
58
+ <div class="thread-view">
59
+ <div class="thread-header">
60
+ <div class="thread-title-row">
61
+ <h2>{{ thread.subject }}</h2>
62
+ </div>
63
+ <div class="thread-meta">
64
+ {% if thread.is_patch %}
65
+ <span class="badge badge-patch">Patch</span>
66
+ {% endif %}
67
+ <span class="thread-date">
68
+ Created {{ thread.created_at.strftime('%Y-%m-%d %H:%M') }}
69
+ </span>
70
+ </div>
71
+ </div>
72
+
73
+ <div class="messages-container">
74
+ {% for item in messages %}
75
+ {{ render_message(item) }}
76
+ {% endfor %}
77
+ </div>
78
+
79
+ <div class="reply-form" id="reply-form" style="display: none;">
80
+ <h3>Reply to <span id="reply-to-name"></span></h3>
81
+ <form onsubmit="submitReply(event)">
82
+ <input type="hidden" id="reply-to-id" name="in_reply_to">
83
+ <div class="form-group">
84
+ <label for="reply-body">Message (plain text):</label>
85
+ <textarea id="reply-body" name="body" rows="10" required placeholder="Write your reply here..."></textarea>
86
+ </div>
87
+ <div class="form-actions">
88
+ <button type="submit" class="btn btn-primary">Send Reply</button>
89
+ <button type="button" class="btn btn-secondary" onclick="cancelReply()">Cancel</button>
90
+ </div>
91
+ </form>
92
+ </div>
93
+ </div>
94
+ {% endblock %}
95
+
96
+ {% block scripts %}
97
+ <script>
98
+ const threadId = {{ thread.id }};
99
+
100
+ function toggleSubthread(event, messageId) {
101
+ event.preventDefault();
102
+ event.stopPropagation();
103
+
104
+ const messageElement = document.querySelector(`[data-message-id="${messageId}"]`);
105
+ const button = event.target.closest('.collapse-btn');
106
+
107
+ messageElement.classList.toggle('collapsed');
108
+ button.querySelector('.collapse-icon').textContent = messageElement.classList.contains('collapsed') ? 'β–Ά' : 'β–Ό';
109
+ }
110
+
111
+ function replyToMessage(messageId, authorName) {
112
+ document.getElementById('reply-form').style.display = 'block';
113
+ document.getElementById('reply-to-id').value = messageId;
114
+ document.getElementById('reply-to-name').textContent = authorName;
115
+ document.getElementById('reply-body').focus();
116
+ }
117
+
118
+ function cancelReply() {
119
+ document.getElementById('reply-form').style.display = 'none';
120
+ document.getElementById('reply-body').value = '';
121
+ }
122
+
123
+ async function submitReply(event) {
124
+ event.preventDefault();
125
+
126
+ const formData = {
127
+ body: document.getElementById('reply-body').value,
128
+ in_reply_to: document.getElementById('reply-to-id').value || null
129
+ };
130
+
131
+ try {
132
+ const response = await fetch(`/api/thread/${threadId}/comment`, {
133
+ method: 'POST',
134
+ headers: {
135
+ 'Content-Type': 'application/json'
136
+ },
137
+ body: JSON.stringify(formData)
138
+ });
139
+
140
+ if (response.ok) {
141
+ alert('Reply sent successfully!');
142
+ location.reload();
143
+ } else {
144
+ const error = await response.json();
145
+ alert('Failed to send reply: ' + (error.detail || 'Unknown error'));
146
+ }
147
+ } catch (error) {
148
+ alert('Failed to send reply: ' + error.message);
149
+ }
150
+ }
151
+
152
+ </script>
153
+ {% endblock %}
@@ -0,0 +1,291 @@
1
+ Metadata-Version: 2.4
2
+ Name: git-ew
3
+ Version: 0.1.0
4
+ Summary: Git Email Workflow
5
+ Author-Email: TimothΓ©e Mazzucotelli <dev@pawamoy.fr>
6
+ License-Expression: ISC
7
+ License-File: LICENSE
8
+ Classifier: Development Status :: 4 - Beta
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Programming Language :: Python
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3 :: Only
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Programming Language :: Python :: 3.14
16
+ Classifier: Programming Language :: Python :: 3.15
17
+ Classifier: Topic :: Documentation
18
+ Classifier: Topic :: Software Development
19
+ Classifier: Topic :: Utilities
20
+ Classifier: Typing :: Typed
21
+ Project-URL: Homepage, https://pawamoy.github.io/git-ew
22
+ Project-URL: Documentation, https://pawamoy.github.io/git-ew
23
+ Project-URL: Changelog, https://pawamoy.github.io/git-ew/changelog
24
+ Project-URL: Repository, https://github.com/pawamoy/git-ew
25
+ Project-URL: Issues, https://github.com/pawamoy/git-ew/issues
26
+ Project-URL: Discussions, https://github.com/pawamoy/git-ew/discussions
27
+ Project-URL: Gitter, https://gitter.im/git-ew/community
28
+ Project-URL: Funding, https://github.com/sponsors/pawamoy
29
+ Requires-Python: >=3.12
30
+ Requires-Dist: fastapi>=0.115.0
31
+ Requires-Dist: uvicorn[standard]>=0.32.0; python_version < "3.15"
32
+ Requires-Dist: uvicorn>=0.32.0; python_version >= "3.15"
33
+ Requires-Dist: sqlalchemy>=2.0.0
34
+ Requires-Dist: alembic>=1.13.0
35
+ Requires-Dist: aiosqlite<0.22.0,>=0.20.0
36
+ Requires-Dist: jinja2>=3.1.0
37
+ Requires-Dist: python-multipart>=0.0.9
38
+ Requires-Dist: httpx>=0.27.0
39
+ Requires-Dist: aiofiles>=24.1.0
40
+ Requires-Dist: markdown>=3.5.0
41
+ Requires-Dist: pymdown-extensions>=10.0.0
42
+ Description-Content-Type: text/markdown
43
+
44
+ # git-ew
45
+
46
+ [![ci](https://github.com/pawamoy/git-ew/workflows/ci/badge.svg)](https://github.com/pawamoy/git-ew/actions?query=workflow%3Aci)
47
+ [![documentation](https://img.shields.io/badge/docs-zensical-FF9100.svg?style=flat)](https://pawamoy.github.io/git-ew/)
48
+ [![pypi version](https://img.shields.io/pypi/v/git-ew.svg)](https://pypi.org/project/git-ew/)
49
+ [![gitter](https://img.shields.io/badge/matrix-chat-4DB798.svg?style=flat)](https://app.gitter.im/#/room/#git-ew:gitter.im)
50
+
51
+ Git Email Workflow - A GitHub-like web interface for email-based git workflows
52
+
53
+ > [!NOTE]
54
+ > This project is developed with the assistance of LLMs / coding agents. It's not fully functional yet. My main use of it will be to continue my contribution of a ZSH_XTRACEFD feature to Zsh, through their zsh-workers mailing list.
55
+
56
+ ## Overview
57
+
58
+ **git-ew** provides a GitHub-style web interface for email-based git workflows. It organizes emails into threads, handles infinite nesting, and allows posting comments via plain-text emails.
59
+
60
+ ![screenshot](https://github.com/user-attachments/assets/d94cdee4-898f-4f1f-be0e-c513714508e6)
61
+
62
+ ### Features
63
+
64
+ - GitHub-like interface for viewing threads and patches
65
+ - Email integration (maildir, mbox, public archives)
66
+ - Threaded discussions with infinite nesting support
67
+ - Automatic patch detection and display
68
+ - Plain-text email replies with proper headers
69
+ - Thread flattening for long linear chains
70
+ - SQLite backend with async FastAPI
71
+
72
+ ## Installation
73
+
74
+ ```bash
75
+ pip install git-ew
76
+ ```
77
+
78
+ With [`uv`](https://docs.astral.sh/uv/):
79
+
80
+ ```bash
81
+ uv tool install git-ew
82
+ ```
83
+
84
+ ## Getting Started
85
+
86
+ ### Quick Demo
87
+
88
+ Try git-ew with sample data:
89
+
90
+ ```bash
91
+ git-ew init
92
+ python scripts/create_sample_data.py
93
+ git-ew serve
94
+ ```
95
+
96
+ Open http://127.0.0.1:8000 to view sample threads.
97
+
98
+ ### Setup
99
+
100
+ Initialize the database:
101
+
102
+ ```bash
103
+ git-ew init
104
+ ```
105
+
106
+ Use the interactive setup wizard:
107
+
108
+ ```bash
109
+ git-ew config
110
+ ```
111
+
112
+ Or configure manually:
113
+
114
+ ```python
115
+ import asyncio
116
+ from git_ew._internal.database import Database
117
+ from git_ew._internal.models import EmailSource
118
+ import json
119
+
120
+ async def setup():
121
+ db = Database()
122
+ await db.init_db()
123
+
124
+ # Configure SMTP for sending emails
125
+ await db.set_config("email_config", {
126
+ "smtp_host": "smtp.gmail.com",
127
+ "smtp_port": 587,
128
+ "from_email": "you@example.com",
129
+ "from_name": "Your Name",
130
+ "username": "you@example.com",
131
+ "password": "your-app-password", # Use app password for Gmail
132
+ "use_tls": True
133
+ })
134
+
135
+ # Add email source - Maildir
136
+ async with db.session() as session:
137
+ source = EmailSource(
138
+ name="my-inbox",
139
+ source_type="maildir",
140
+ config=json.dumps({"path": "/path/to/maildir"}),
141
+ enabled=True
142
+ )
143
+ session.add(source)
144
+
145
+ # Or add email source - Mbox
146
+ async with db.session() as session:
147
+ source = EmailSource(
148
+ name="mailing-list",
149
+ source_type="mbox",
150
+ config=json.dumps({"path": "/path/to/archive.mbox"}),
151
+ enabled=True
152
+ )
153
+ session.add(source)
154
+
155
+ asyncio.run(setup())
156
+ ```
157
+
158
+ ### Usage
159
+
160
+ Start the server:
161
+
162
+ ```bash
163
+ git-ew serve # Default: http://127.0.0.1:8000
164
+ git-ew serve --host 0.0.0.0 # Listen on all interfaces
165
+ git-ew serve --port 3000 # Custom port
166
+ git-ew serve --reload # Auto-reload (development)
167
+ ```
168
+
169
+ Access the web interface and click "Sync Emails" to fetch messages from configured sources.
170
+
171
+ ### Configuration Details
172
+
173
+ #### Email Sources
174
+
175
+ **Maildir** (local mail folders):
176
+
177
+ ```json
178
+ {"path": "/home/user/.mail/INBOX"}
179
+ ```
180
+
181
+ **Mbox** (archive files):
182
+
183
+ ```json
184
+ {"path": "/path/to/mailing-list.mbox"}
185
+ ```
186
+
187
+ **Public Inbox** (coming soon):
188
+
189
+ ```json
190
+ {"url": "https://example.org/archive/"}
191
+ ```
192
+
193
+ #### SMTP Providers
194
+
195
+ **Gmail**: Enable 2FA and generate an [app password](https://myaccount.google.com/apppasswords)
196
+
197
+ **Outlook/Office365**: Use regular or app-specific password
198
+
199
+ **Custom SMTP**: Any server supporting STARTTLS
200
+
201
+ **Fastmail**: Use a Fastmail app password with mail access enabled. Configure SMTP as
202
+ `smtp.fastmail.com` on port `587` with TLS, and configure an IMAP source using
203
+ `imap.fastmail.com` on port `993` with the folders `INBOX` and `Sent`.
204
+
205
+ To download and ingest zsh-workers archives into the database:
206
+
207
+ ```bash
208
+ git-ew ingest zsh-workers --since 2026-03-18
209
+ ```
210
+
211
+ #### Command Line
212
+
213
+ ```bash
214
+ git-ew init # Initialize database
215
+ git-ew serve # Start web server
216
+ git-ew sync # Sync emails from sources
217
+ ```
218
+
219
+ ## How It Works
220
+
221
+ ### Email Fetching
222
+
223
+ git-ew can fetch emails from various sources:
224
+
225
+ - **Maildir**: Local maildir folders
226
+ - **Mbox**: Mbox archive files
227
+ - **Public Archives**: Public-inbox archives (coming soon)
228
+
229
+ ### Thread Organization
230
+
231
+ Emails are organized into threads based on their `Message-ID`, `In-Reply-To`, and `References` headers. The system:
232
+
233
+ 1. Groups related emails into threads
234
+ 2. Builds a tree structure with infinite nesting support
235
+ 3. Detects linear chains (single replies) and marks them for flattening
236
+ 4. Renders threads with proper indentation and visual hierarchy
237
+
238
+ ### Sending Emails
239
+
240
+ When you post a comment through the web interface:
241
+
242
+ 1. The comment is sent as a **plain-text email** (no HTML)
243
+ 2. Proper email headers are set (`In-Reply-To`, `References`)
244
+ 3. The email is stored in the local database
245
+ 4. Email threading is maintained correctly
246
+
247
+ ### Patch Detection
248
+
249
+ git-ew automatically detects patches in emails by looking for:
250
+
251
+ - Git diff format (`diff --git`)
252
+ - Unified diff format (`---` and `+++`)
253
+ - `[PATCH]` in the subject line
254
+
255
+ Patches are displayed with syntax highlighting and can be viewed/hidden.
256
+
257
+ ## Architecture
258
+
259
+ ```
260
+ git-ew/
261
+ β”œβ”€β”€ models.py # SQLAlchemy database models
262
+ β”œβ”€β”€ database.py # Database operations
263
+ β”œβ”€β”€ email_parser.py # Email parsing utilities
264
+ β”œβ”€β”€ email_fetcher.py # Fetch emails from various sources
265
+ β”œβ”€β”€ email_sender.py # Send emails via SMTP
266
+ β”œβ”€β”€ thread_utils.py # Thread organization and flattening
267
+ β”œβ”€β”€ app.py # FastAPI application
268
+ β”œβ”€β”€ cli.py # Command-line interface
269
+ β”œβ”€β”€ templates/ # Jinja2 HTML templates
270
+ β”‚ β”œβ”€β”€ base.html
271
+ β”‚ β”œβ”€β”€ index.html
272
+ β”‚ └── thread.html
273
+ └── static/ # CSS and JavaScript
274
+ β”œβ”€β”€ css/style.css
275
+ └── js/main.js
276
+ ```
277
+
278
+ ## API Endpoints
279
+
280
+ - `GET /` - List threads
281
+ - `GET /thread/{id}` - View thread details
282
+ - `POST /api/thread/{id}/comment` - Post a comment (sends email)
283
+ - `POST /api/thread/{id}` - Update thread (e.g., close/reopen)
284
+ - `POST /api/sync` - Sync emails from sources
285
+ - `GET /api/threads` - Get threads as JSON
286
+ - `GET /api/thread/{id}` - Get thread details as JSON
287
+
288
+ ## Sponsors
289
+
290
+ <!-- sponsors-start -->
291
+ <!-- sponsors-end -->
@@ -0,0 +1,30 @@
1
+ git_ew-0.1.0.dist-info/METADATA,sha256=9pP8MoaTaiuvxahc7FwvskRA-t_yFGqdUgnJrWXQaoE,8573
2
+ git_ew-0.1.0.dist-info/WHEEL,sha256=IuIk3wbaEnFH1cx75iM2R1CmliRI3dFLXTbRakgvgFQ,90
3
+ git_ew-0.1.0.dist-info/entry_points.txt,sha256=j11TvmXkuMdDhLb59XWffVDgAGj3mbZSilsIGCFEinM,55
4
+ git_ew-0.1.0.dist-info/licenses/LICENSE,sha256=I3KB1-ErGw-w8Lv5cPRgpAQKNKPv_CpOJvpYunP93-E,771
5
+ git_ew/__init__.py,sha256=k0WK-LEu7zA6S2rmc4m6CvMfQhSAidvzTt7NvqT1j0U,4065
6
+ git_ew/__main__.py,sha256=ERyH_XWsQni1DzuRxFphCOGAPzCSpAXsgMudT73gkUQ,1179
7
+ git_ew/_internal/__init__.py,sha256=LH7HQJydqOYIxZva6Nc0p5zeUpQAxcvUyEwiajkZkdQ,831
8
+ git_ew/_internal/app.py,sha256=kfS_eDxKGZi8bPIOH0chAft3hVUKH_HCeX-JapdjQME,13009
9
+ git_ew/_internal/cli.py,sha256=zjZvDHMtoNG3YhXzCx3K1xjgO2P0Xak4kGL22ZKRVA0,8211
10
+ git_ew/_internal/config.py,sha256=aHlbreajf7LknYF1DU9LOAxbbETdKmnDx5A1eGMxjm8,5836
11
+ git_ew/_internal/database.py,sha256=pjH3Ka599QLB_HX1YIvguSeD774rtSnET_dGEz-Kes0,9925
12
+ git_ew/_internal/debug.py,sha256=FX1GGczGTFdTSh6Lu4DN4O9g4L3_D-N6XTr_VJGtacU,3835
13
+ git_ew/_internal/email_fetcher.py,sha256=LLnguwguTwJI9MlrhsX9WMyuWP4mcIiMg939EYbYn_8,10644
14
+ git_ew/_internal/email_parser.py,sha256=DjfhhQQ4UZBG-zZxnKLN9IXhCeWLcXamNIVEB3eXDuE,8431
15
+ git_ew/_internal/email_sender.py,sha256=jyzIZTbU-InjGnL95X0Stiws3COiY89iZCKU2nMGRj0,7129
16
+ git_ew/_internal/mailing_lists/__init__.py,sha256=fpeHW2ls_srClMUHwiBNTiBGV4ri9SAQStWaW39TW8o,859
17
+ git_ew/_internal/mailing_lists/zsh_workers/__init__.py,sha256=LH7HQJydqOYIxZva6Nc0p5zeUpQAxcvUyEwiajkZkdQ,831
18
+ git_ew/_internal/mailing_lists/zsh_workers/ingest.py,sha256=xulVC_Mv4kJno4h5ecqHVZtzTcY-e4iTVZvbuDhH56s,15346
19
+ git_ew/_internal/mailing_lists/zsh_workers/sync_archives.py,sha256=igRl3IKE2-LXuUla_c8bH3kCbrRUHzHTTcc3vTOCs3g,10388
20
+ git_ew/_internal/models.py,sha256=NSMvt4SBeHY0QrWdWMcxchBoJi9HhhhP3G6Zzhr5KA4,5969
21
+ git_ew/_internal/secrets.py,sha256=vCJq0KvgcaBPcB30UCi3I7PWEWIVqkuLZv8A6MunAGs,2025
22
+ git_ew/_internal/sync.py,sha256=hbtd8fRsUPqZhTgZQBATuLWPguvUiZfASs7anePBWak,5155
23
+ git_ew/_internal/thread_utils.py,sha256=VMAcpoeCIzfU2lUFACkCNoa89JFnBZU1poX9whtJ3GI,5308
24
+ git_ew/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
+ git_ew/static/css/style.css,sha256=e9D_hrmmamXKPk6BZvrf_hPC1z3v9XGQadkw7ouLPxA,11150
26
+ git_ew/static/js/main.js,sha256=FrEJjQEbZj6LRHRtQLEVSejsth_3m6HFtNqazitzc7o,1376
27
+ git_ew/templates/base.html,sha256=6t6QaGHRjWE-yrGp9XplErx6x7RGEmRE-Pono7OBHEA,1032
28
+ git_ew/templates/index.html,sha256=ZnH-dIz9v-t7yLw8jFCV2jWgWbBQ5ofbDxXYtRRQM2o,1483
29
+ git_ew/templates/thread.html,sha256=2COk2Ix6SrZNRYFOGsDx9TmBNFgS3O5Gi6wKYc1DHaM,5356
30
+ git_ew-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: pdm-backend (2.5.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,5 @@
1
+ [console_scripts]
2
+ git-ew = git_ew:main
3
+
4
+ [gui_scripts]
5
+
@@ -0,0 +1,15 @@
1
+ ISC License
2
+
3
+ Copyright (c) 2026, TimothΓ©e Mazzucotelli and contributors
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.