signal-export 2.0.0.dev0__tar.gz → 2.0.0.dev1__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.
- {signal_export-2.0.0.dev0 → signal_export-2.0.0.dev1}/PKG-INFO +1 -1
- {signal_export-2.0.0.dev0 → signal_export-2.0.0.dev1}/pyproject.toml +2 -1
- {signal_export-2.0.0.dev0 → signal_export-2.0.0.dev1}/sigexport/main.py +9 -4
- {signal_export-2.0.0.dev0 → signal_export-2.0.0.dev1}/LICENSE +0 -0
- {signal_export-2.0.0.dev0 → signal_export-2.0.0.dev1}/README.md +0 -0
- {signal_export-2.0.0.dev0 → signal_export-2.0.0.dev1}/sigexport/__init__.py +0 -0
- {signal_export-2.0.0.dev0 → signal_export-2.0.0.dev1}/sigexport/data.py +0 -0
- {signal_export-2.0.0.dev0 → signal_export-2.0.0.dev1}/sigexport/logging.py +0 -0
- {signal_export-2.0.0.dev0 → signal_export-2.0.0.dev1}/sigexport/merge.py +0 -0
- {signal_export-2.0.0.dev0 → signal_export-2.0.0.dev1}/sigexport/models.py +0 -0
- {signal_export-2.0.0.dev0 → signal_export-2.0.0.dev1}/sigexport/style.css +0 -0
- {signal_export-2.0.0.dev0 → signal_export-2.0.0.dev1}/sigexport/templates.py +0 -0
- {signal_export-2.0.0.dev0 → signal_export-2.0.0.dev1}/sigexport/utils.py +0 -0
- {signal_export-2.0.0.dev0 → signal_export-2.0.0.dev1}/tests/data/attachments.noindex/image.jpeg +0 -0
- {signal_export-2.0.0.dev0 → signal_export-2.0.0.dev1}/tests/data/attachments.noindex/voicenote.m4a +0 -0
- {signal_export-2.0.0.dev0 → signal_export-2.0.0.dev1}/tests/data/config.json +0 -0
- {signal_export-2.0.0.dev0 → signal_export-2.0.0.dev1}/tests/data/sql/db.sqlite +0 -0
- {signal_export-2.0.0.dev0 → signal_export-2.0.0.dev1}/tests/test_integration.py +0 -0
- {signal_export-2.0.0.dev0 → signal_export-2.0.0.dev1}/tests/test_utils.py +0 -0
|
@@ -17,6 +17,7 @@ dev-dependencies = [
|
|
|
17
17
|
check = "pyright"
|
|
18
18
|
build = "docker buildx build --tag=carderne/sigexport:dev ."
|
|
19
19
|
test = "docker run --rm --entrypoint='' -v ./:/fresh carderne/sigexport:dev bash -c 'cd /fresh && pip install . pytest && pytest'"
|
|
20
|
+
run = "sigexport"
|
|
20
21
|
|
|
21
22
|
[tool.pdm.build]
|
|
22
23
|
includes = [
|
|
@@ -92,7 +93,7 @@ dependencies = [
|
|
|
92
93
|
"Markdown ~= 3.4",
|
|
93
94
|
"typer[all] ~= 0.7",
|
|
94
95
|
]
|
|
95
|
-
version = "2.0.0.
|
|
96
|
+
version = "2.0.0.dev1"
|
|
96
97
|
|
|
97
98
|
[project.license]
|
|
98
99
|
text = "BSD 3-Clause License"
|
|
@@ -9,6 +9,7 @@ import sys
|
|
|
9
9
|
from collections.abc import Iterable
|
|
10
10
|
from datetime import datetime
|
|
11
11
|
from pathlib import Path
|
|
12
|
+
from typing import Optional
|
|
12
13
|
|
|
13
14
|
import markdown
|
|
14
15
|
from bs4 import BeautifulSoup
|
|
@@ -313,10 +314,14 @@ def create_html(dest: Path, msgs_per_page: int = 100) -> Iterable[tuple[Path, st
|
|
|
313
314
|
yield ht_path, ht_text
|
|
314
315
|
|
|
315
316
|
|
|
317
|
+
# these are here because tiangolo/typer doesn't like Foo | None syntax
|
|
318
|
+
OptionalPath = Optional[Path]
|
|
319
|
+
OptionalStr = Optional[str]
|
|
320
|
+
|
|
316
321
|
def main(
|
|
317
322
|
dest: Path = Argument(None),
|
|
318
|
-
source:
|
|
319
|
-
old:
|
|
323
|
+
source: OptionalPath = Option(None, help="Path to Signal source database"),
|
|
324
|
+
old: OptionalPath = Option(None, help="Path to previous export to merge"),
|
|
320
325
|
overwrite: bool = Option(
|
|
321
326
|
False, "--overwrite", "-o", help="Overwrite existing output"
|
|
322
327
|
),
|
|
@@ -330,7 +335,7 @@ def main(
|
|
|
330
335
|
paginate: int = Option(
|
|
331
336
|
100, "--paginate", "-p", help="Messages per page in HTML; set to 0 for infinite"
|
|
332
337
|
),
|
|
333
|
-
chats:
|
|
338
|
+
chats: OptionalStr = Option(
|
|
334
339
|
None, help="Comma-separated chat names to include: contact names or group names"
|
|
335
340
|
),
|
|
336
341
|
html: bool = Option(True, help="Whether to create HTML output"),
|
|
@@ -351,7 +356,7 @@ def main(
|
|
|
351
356
|
print_data: bool = Option(
|
|
352
357
|
False, help="Print extracted DB data and exit (for use by Docker container)"
|
|
353
358
|
),
|
|
354
|
-
_: bool
|
|
359
|
+
_: bool = Option(False, "--version", callback=utils.version_callback),
|
|
355
360
|
) -> None:
|
|
356
361
|
"""Read the Signal directory and output attachments and chat to DEST directory."""
|
|
357
362
|
logging.verbose = verbose
|
|
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
|
{signal_export-2.0.0.dev0 → signal_export-2.0.0.dev1}/tests/data/attachments.noindex/image.jpeg
RENAMED
|
File without changes
|
{signal_export-2.0.0.dev0 → signal_export-2.0.0.dev1}/tests/data/attachments.noindex/voicenote.m4a
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|