fetch2gmail 1.0.5__tar.gz → 1.0.7__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.
- {fetch2gmail-1.0.5/src/fetch2gmail.egg-info → fetch2gmail-1.0.7}/PKG-INFO +12 -1
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7}/README.md +11 -0
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7}/pyproject.toml +1 -1
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7/src/fetch2gmail.egg-info}/PKG-INFO +12 -1
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7}/src/fetcher/__init__.py +2 -1
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7}/src/fetcher/cli.py +4 -0
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7}/LICENSE +0 -0
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7}/setup.cfg +0 -0
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7}/src/fetch2gmail.egg-info/SOURCES.txt +0 -0
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7}/src/fetch2gmail.egg-info/dependency_links.txt +0 -0
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7}/src/fetch2gmail.egg-info/entry_points.txt +0 -0
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7}/src/fetch2gmail.egg-info/requires.txt +0 -0
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7}/src/fetch2gmail.egg-info/top_level.txt +0 -0
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7}/src/fetcher/auth_server.py +0 -0
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7}/src/fetcher/auth_ui.py +0 -0
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7}/src/fetcher/config.py +0 -0
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7}/src/fetcher/env_file.py +0 -0
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7}/src/fetcher/gmail_client.py +0 -0
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7}/src/fetcher/imap_client.py +0 -0
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7}/src/fetcher/log_buffer.py +0 -0
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7}/src/fetcher/run.py +0 -0
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7}/src/fetcher/state.py +0 -0
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7}/src/fetcher/ui_auth.py +0 -0
- {fetch2gmail-1.0.5 → fetch2gmail-1.0.7}/src/fetcher/web_ui.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fetch2gmail
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.7
|
|
4
4
|
Summary: Self-hosted email fetcher: IMAP to Gmail API import with idempotent state tracking
|
|
5
5
|
Author: Fetch2Gmail Contributors
|
|
6
6
|
License-Expression: MIT
|
|
@@ -295,6 +295,17 @@ To run from a git clone (e.g. to test changes before pushing):
|
|
|
295
295
|
- `fetch2gmail auth` — get token (put **credentials.json** in the current directory first)
|
|
296
296
|
- `fetch2gmail run` or `fetch2gmail run --dry-run` — if you have **config.json** and secrets set up
|
|
297
297
|
|
|
298
|
+
**Testing the UI locally (no need to reinstall or touch the service):** To try code changes without stopping the system service or reinstalling, run the UI from your clone on a **different port** so it doesn’t conflict with the service. Point the app at your data directory (where your config, credentials, token, and `.ui_auth` live) so it finds everything:
|
|
299
|
+
|
|
300
|
+
```bash
|
|
301
|
+
cd /path/to/your/fetch2gmail # your git clone
|
|
302
|
+
source .venv/bin/activate # or .venv\Scripts\activate on Windows
|
|
303
|
+
pip install -e . # if you haven’t already (editable = your changes are used)
|
|
304
|
+
FETCH2GMAIL_CONFIG=/path/to/your/data/config.json fetch2gmail serve --port 8766
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
Replace `/path/to/your/data` with your actual data directory (e.g. `/opt/fetch2gmail` or `~/fetch2gmail`). Then open **http://127.0.0.1:8766** in your browser. The system service (if it’s running) stays on 8765; this process uses your local code. Edit code, restart this command, and refresh the browser to test. If you prefer to use port 8765, stop the service first (`sudo systemctl stop fetch2gmail`), run `fetch2gmail serve` (no `--port`), then start the service again when you’re done.
|
|
308
|
+
|
|
298
309
|
5. **Before pushing: test the build** so the package still builds and you catch errors:
|
|
299
310
|
```bash
|
|
300
311
|
pip install build
|
|
@@ -264,6 +264,17 @@ To run from a git clone (e.g. to test changes before pushing):
|
|
|
264
264
|
- `fetch2gmail auth` — get token (put **credentials.json** in the current directory first)
|
|
265
265
|
- `fetch2gmail run` or `fetch2gmail run --dry-run` — if you have **config.json** and secrets set up
|
|
266
266
|
|
|
267
|
+
**Testing the UI locally (no need to reinstall or touch the service):** To try code changes without stopping the system service or reinstalling, run the UI from your clone on a **different port** so it doesn’t conflict with the service. Point the app at your data directory (where your config, credentials, token, and `.ui_auth` live) so it finds everything:
|
|
268
|
+
|
|
269
|
+
```bash
|
|
270
|
+
cd /path/to/your/fetch2gmail # your git clone
|
|
271
|
+
source .venv/bin/activate # or .venv\Scripts\activate on Windows
|
|
272
|
+
pip install -e . # if you haven’t already (editable = your changes are used)
|
|
273
|
+
FETCH2GMAIL_CONFIG=/path/to/your/data/config.json fetch2gmail serve --port 8766
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
Replace `/path/to/your/data` with your actual data directory (e.g. `/opt/fetch2gmail` or `~/fetch2gmail`). Then open **http://127.0.0.1:8766** in your browser. The system service (if it’s running) stays on 8765; this process uses your local code. Edit code, restart this command, and refresh the browser to test. If you prefer to use port 8765, stop the service first (`sudo systemctl stop fetch2gmail`), run `fetch2gmail serve` (no `--port`), then start the service again when you’re done.
|
|
277
|
+
|
|
267
278
|
5. **Before pushing: test the build** so the package still builds and you catch errors:
|
|
268
279
|
```bash
|
|
269
280
|
pip install build
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fetch2gmail
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.7
|
|
4
4
|
Summary: Self-hosted email fetcher: IMAP to Gmail API import with idempotent state tracking
|
|
5
5
|
Author: Fetch2Gmail Contributors
|
|
6
6
|
License-Expression: MIT
|
|
@@ -295,6 +295,17 @@ To run from a git clone (e.g. to test changes before pushing):
|
|
|
295
295
|
- `fetch2gmail auth` — get token (put **credentials.json** in the current directory first)
|
|
296
296
|
- `fetch2gmail run` or `fetch2gmail run --dry-run` — if you have **config.json** and secrets set up
|
|
297
297
|
|
|
298
|
+
**Testing the UI locally (no need to reinstall or touch the service):** To try code changes without stopping the system service or reinstalling, run the UI from your clone on a **different port** so it doesn’t conflict with the service. Point the app at your data directory (where your config, credentials, token, and `.ui_auth` live) so it finds everything:
|
|
299
|
+
|
|
300
|
+
```bash
|
|
301
|
+
cd /path/to/your/fetch2gmail # your git clone
|
|
302
|
+
source .venv/bin/activate # or .venv\Scripts\activate on Windows
|
|
303
|
+
pip install -e . # if you haven’t already (editable = your changes are used)
|
|
304
|
+
FETCH2GMAIL_CONFIG=/path/to/your/data/config.json fetch2gmail serve --port 8766
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
Replace `/path/to/your/data` with your actual data directory (e.g. `/opt/fetch2gmail` or `~/fetch2gmail`). Then open **http://127.0.0.1:8766** in your browser. The system service (if it’s running) stays on 8765; this process uses your local code. Edit code, restart this command, and refresh the browser to test. If you prefer to use port 8765, stop the service first (`sudo systemctl stop fetch2gmail`), run `fetch2gmail serve` (no `--port`), then start the service again when you’re done.
|
|
308
|
+
|
|
298
309
|
5. **Before pushing: test the build** so the package still builds and you catch errors:
|
|
299
310
|
```bash
|
|
300
311
|
pip install build
|
|
@@ -219,6 +219,10 @@ def _cmd_set_ui_password(args: argparse.Namespace) -> None:
|
|
|
219
219
|
if not password:
|
|
220
220
|
print("Password cannot be empty.", file=sys.stderr)
|
|
221
221
|
sys.exit(1)
|
|
222
|
+
password_confirm = getpass.getpass("Confirm password: ")
|
|
223
|
+
if password != password_confirm:
|
|
224
|
+
print("Passwords do not match.", file=sys.stderr)
|
|
225
|
+
sys.exit(1)
|
|
222
226
|
create_ui_auth(config_dir, username, password)
|
|
223
227
|
print("Done. The web UI will now require this username and password when you run it")
|
|
224
228
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|