talax 0.1.0__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.
Files changed (61) hide show
  1. talax-0.1.0/.github/workflows/ci.yml +73 -0
  2. talax-0.1.0/.github/workflows/release.yml +66 -0
  3. talax-0.1.0/.gitignore +45 -0
  4. talax-0.1.0/LICENSE +202 -0
  5. talax-0.1.0/PKG-INFO +192 -0
  6. talax-0.1.0/README.fr.md +162 -0
  7. talax-0.1.0/README.md +157 -0
  8. talax-0.1.0/corpus/README.md +96 -0
  9. talax-0.1.0/corpus/sets/2026-10-31-a34-edits.yaml +110 -0
  10. talax-0.1.0/corpus/sets/2026-10-31-a34.yaml +102 -0
  11. talax-0.1.0/corpus/sets/2026-10-31-s22.yaml +77 -0
  12. talax-0.1.0/corpus/sets/_template.yaml +40 -0
  13. talax-0.1.0/corpus/sets/c2pa-public-1.4.yaml +76 -0
  14. talax-0.1.0/pyproject.toml +85 -0
  15. talax-0.1.0/scripts/corpus_report.py +66 -0
  16. talax-0.1.0/src/talax/__init__.py +48 -0
  17. talax-0.1.0/src/talax/__main__.py +5 -0
  18. talax-0.1.0/src/talax/analysis.py +52 -0
  19. talax-0.1.0/src/talax/cli.py +140 -0
  20. talax-0.1.0/src/talax/clock.py +72 -0
  21. talax-0.1.0/src/talax/data/editors.yaml +19 -0
  22. talax-0.1.0/src/talax/data/fingerprints/samsung-gallery-edit.yaml +36 -0
  23. talax-0.1.0/src/talax/data/fingerprints/whatsapp-gallery.yaml +39 -0
  24. talax-0.1.0/src/talax/data/vendor_groups.yaml +14 -0
  25. talax-0.1.0/src/talax/extraction.py +107 -0
  26. talax-0.1.0/src/talax/fileinfo.py +90 -0
  27. talax-0.1.0/src/talax/fingerprints.py +183 -0
  28. talax-0.1.0/src/talax/integrity.py +133 -0
  29. talax-0.1.0/src/talax/jpeg.py +137 -0
  30. talax-0.1.0/src/talax/model.py +163 -0
  31. talax-0.1.0/src/talax/provenance.py +53 -0
  32. talax-0.1.0/src/talax/py.typed +0 -0
  33. talax-0.1.0/src/talax/report.py +168 -0
  34. talax-0.1.0/src/talax/signals/__init__.py +31 -0
  35. talax-0.1.0/src/talax/signals/base.py +63 -0
  36. talax-0.1.0/src/talax/signals/c2pa_credentials.py +129 -0
  37. talax-0.1.0/src/talax/signals/capture_time.py +143 -0
  38. talax-0.1.0/src/talax/signals/gps.py +101 -0
  39. talax-0.1.0/src/talax/signals/real_format.py +86 -0
  40. talax-0.1.0/src/talax/signals/software.py +57 -0
  41. talax-0.1.0/src/talax/signals/solar_consistency.py +139 -0
  42. talax-0.1.0/src/talax/signals/time_zone.py +88 -0
  43. talax-0.1.0/src/talax/solar.py +149 -0
  44. talax-0.1.0/src/talax/templates/report.html.j2 +138 -0
  45. talax-0.1.0/src/talax/traits.py +123 -0
  46. talax-0.1.0/tests/__init__.py +0 -0
  47. talax-0.1.0/tests/conftest.py +20 -0
  48. talax-0.1.0/tests/test_c2pa_signal.py +107 -0
  49. talax-0.1.0/tests/test_cli.py +87 -0
  50. talax-0.1.0/tests/test_corpus.py +144 -0
  51. talax-0.1.0/tests/test_extraction.py +44 -0
  52. talax-0.1.0/tests/test_fileinfo.py +49 -0
  53. talax-0.1.0/tests/test_fingerprints.py +118 -0
  54. talax-0.1.0/tests/test_integrity.py +108 -0
  55. talax-0.1.0/tests/test_jpeg.py +78 -0
  56. talax-0.1.0/tests/test_metadata_signals.py +183 -0
  57. talax-0.1.0/tests/test_model.py +75 -0
  58. talax-0.1.0/tests/test_real_format.py +48 -0
  59. talax-0.1.0/tests/test_signals.py +83 -0
  60. talax-0.1.0/tests/test_solar.py +212 -0
  61. talax-0.1.0/uv.lock +1194 -0
@@ -0,0 +1,73 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ jobs:
9
+ lint:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v7
13
+ - uses: astral-sh/setup-uv@v10.3.3
14
+ - run: uv sync --locked
15
+ - run: uv run ruff check
16
+ - run: uv run ruff format --check
17
+ - run: uv run mypy
18
+
19
+ test:
20
+ name: test (${{ matrix.os }}, Python ${{ matrix.python }})
21
+ runs-on: ${{ matrix.os }}
22
+ strategy:
23
+ fail-fast: false
24
+ matrix:
25
+ os: [ubuntu-latest, macos-latest, windows-latest]
26
+ python: ["3.12"]
27
+ include:
28
+ - os: ubuntu-latest
29
+ python: "3.13"
30
+ steps:
31
+ - uses: actions/checkout@v7
32
+ - uses: astral-sh/setup-uv@v10.3.3
33
+ with:
34
+ python-version: ${{ matrix.python }}
35
+
36
+ # ExifTool 13+ on every system (distribution packages are too old).
37
+ - name: Install ExifTool (Linux)
38
+ if: runner.os == 'Linux'
39
+ run: |
40
+ v=$(curl -fsS https://exiftool.org/ver.txt)
41
+ curl -fsSL "https://sourceforge.net/projects/exiftool/files/Image-ExifTool-$v.tar.gz/download" \
42
+ | tar -xz -C "$RUNNER_TEMP"
43
+ echo "$RUNNER_TEMP/Image-ExifTool-$v" >> "$GITHUB_PATH"
44
+ - name: Install ExifTool (macOS)
45
+ if: runner.os == 'macOS'
46
+ run: brew install exiftool
47
+ - name: Install ExifTool (Windows)
48
+ if: runner.os == 'Windows'
49
+ shell: bash
50
+ run: |
51
+ v=$(curl -fsS https://exiftool.org/ver.txt)
52
+ curl -fsSL -o exiftool.zip "https://sourceforge.net/projects/exiftool/files/exiftool-${v}_64.zip/download"
53
+ unzip -q exiftool.zip -d "$RUNNER_TEMP"
54
+ dir="$RUNNER_TEMP/exiftool-${v}_64"
55
+ mv "$dir/exiftool(-k).exe" "$dir/exiftool.exe"
56
+ cygpath -w "$dir" >> "$GITHUB_PATH"
57
+ - run: exiftool -ver
58
+
59
+ - run: uv sync --locked
60
+ - run: uv run pytest
61
+
62
+ package:
63
+ runs-on: ubuntu-latest
64
+ steps:
65
+ - uses: actions/checkout@v7
66
+ - uses: astral-sh/setup-uv@v10.3.3
67
+ - run: uv build
68
+ - run: uvx twine check --strict dist/*
69
+ - name: Install the wheel in a clean environment
70
+ run: |
71
+ uv venv /tmp/clean
72
+ uv pip install --python /tmp/clean/bin/python dist/*.whl
73
+ /tmp/clean/bin/python -c "import talax; print(talax.__version__)"
@@ -0,0 +1,66 @@
1
+ # Publishes to PyPI with Trusted Publishing: no token is stored anywhere.
2
+ # - Run manually ("Run workflow" in the Actions tab) to publish to TestPyPI.
3
+ # - Publish a GitHub release named vX.Y.Z to publish X.Y.Z to PyPI.
4
+ # A version can be uploaded only once to each index: bump it to retry.
5
+
6
+ name: Release
7
+
8
+ on:
9
+ release:
10
+ types: [published]
11
+ workflow_dispatch:
12
+
13
+ jobs:
14
+ build:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v7
18
+ - uses: astral-sh/setup-uv@v10.3.3
19
+ - name: Check that the release tag matches the package version
20
+ if: github.event_name == 'release'
21
+ run: |
22
+ version=$(uv run --no-project python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
23
+ if [ "v$version" != "$GITHUB_REF_NAME" ]; then
24
+ echo "Tag $GITHUB_REF_NAME does not match version $version in pyproject.toml"
25
+ exit 1
26
+ fi
27
+ - run: uv build
28
+ - run: uvx twine check --strict dist/*
29
+ - uses: actions/upload-artifact@v7
30
+ with:
31
+ name: dist
32
+ path: dist/
33
+
34
+ testpypi:
35
+ if: github.event_name == 'workflow_dispatch'
36
+ needs: build
37
+ runs-on: ubuntu-latest
38
+ environment:
39
+ name: testpypi
40
+ url: https://test.pypi.org/project/talax/
41
+ permissions:
42
+ id-token: write
43
+ steps:
44
+ - uses: actions/download-artifact@v8
45
+ with:
46
+ name: dist
47
+ path: dist/
48
+ - uses: pypa/gh-action-pypi-publish@release/v1
49
+ with:
50
+ repository-url: https://test.pypi.org/legacy/
51
+
52
+ pypi:
53
+ if: github.event_name == 'release'
54
+ needs: build
55
+ runs-on: ubuntu-latest
56
+ environment:
57
+ name: pypi
58
+ url: https://pypi.org/project/talax/
59
+ permissions:
60
+ id-token: write
61
+ steps:
62
+ - uses: actions/download-artifact@v8
63
+ with:
64
+ name: dist
65
+ path: dist/
66
+ - uses: pypa/gh-action-pypi-publish@release/v1
talax-0.1.0/.gitignore ADDED
@@ -0,0 +1,45 @@
1
+ # Claude (local working files, not part of the project)
2
+ CLAUDE.md
3
+ CLAUDE.local.md
4
+ .claude/
5
+
6
+ # Reference corpus: files are never versioned (size, rights).
7
+ # Only their descriptions and measurements are.
8
+ corpus/files/
9
+
10
+ # Python
11
+ __pycache__/
12
+ *.py[cod]
13
+ .venv/
14
+ build/
15
+ dist/
16
+ *.egg-info/
17
+ .pytest_cache/
18
+ .mypy_cache/
19
+ .ruff_cache/
20
+ .coverage
21
+ htmlcov/
22
+
23
+ # Node / Angular
24
+ node_modules/
25
+ web/.angular/
26
+ web/dist/
27
+
28
+ # Secrets
29
+ .env
30
+ .env.*
31
+ !.env.example
32
+
33
+ # OS / editors
34
+ .DS_Store
35
+ Thumbs.db
36
+ .vscode/
37
+ .idea/
38
+
39
+ # External code shown for study, never versioned
40
+ code_extern_*
41
+
42
+ # Generated reports: they embed the photo and its position
43
+ rapport*.html
44
+ report*.html
45
+ exif_data.*
talax-0.1.0/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
talax-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,192 @@
1
+ Metadata-Version: 2.5
2
+ Name: talax
3
+ Version: 0.1.0
4
+ Summary: Honest image verification: original camera file or platform copy?
5
+ Project-URL: Homepage, https://github.com/ChristKTMB/talaX
6
+ Project-URL: Repository, https://github.com/ChristKTMB/talaX
7
+ Project-URL: Issues, https://github.com/ChristKTMB/talaX/issues
8
+ Project-URL: Français, https://github.com/ChristKTMB/talaX/blob/main/README.fr.md
9
+ Author: ChristKTMB
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ Keywords: c2pa,exif,fact-checking,image-forensics,journalism,metadata,osint,verification
13
+ Classifier: Development Status :: 2 - Pre-Alpha
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Intended Audience :: End Users/Desktop
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3 :: Only
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Topic :: Multimedia :: Graphics
23
+ Classifier: Topic :: Security
24
+ Classifier: Typing :: Typed
25
+ Requires-Python: >=3.12
26
+ Requires-Dist: astral>=3.2
27
+ Requires-Dist: c2pa-python==0.38.0
28
+ Requires-Dist: jinja2>=3.1
29
+ Requires-Dist: pillow>=12
30
+ Requires-Dist: pyyaml>=6.0
31
+ Requires-Dist: timezonefinder>=9.2
32
+ Requires-Dist: typer>=0.15
33
+ Requires-Dist: tzdata>=2025.1
34
+ Description-Content-Type: text/markdown
35
+
36
+ # Tala X
37
+
38
+ > *See beyond the pixel*
39
+
40
+ [Français](https://github.com/ChristKTMB/talaX/blob/main/README.fr.md)
41
+
42
+ Tala X tells you what can honestly be said about an image: whether it is an
43
+ original camera file or a copy reprocessed by a platform, where and when it was
44
+ taken, and whether it went through an editor. Video support (container
45
+ metadata) is planned.
46
+
47
+ > **Status: pre-alpha (0.1).** Usable, but rules and output may still change.
48
+
49
+ ## The question Tala X asks first
50
+
51
+ Not *"is this image fake?"* — no technology answers that reliably today. But:
52
+
53
+ > **Is this file an original from a camera, or a copy reprocessed by a
54
+ > platform?**
55
+
56
+ Every major social platform (Instagram, X, TikTok, WhatsApp…) strips EXIF,
57
+ IPTC and C2PA metadata on upload. Tala X detects that, identifies which
58
+ platform the file went through when it can, and tells you to ask your source
59
+ for the original — explaining how to send it without damaging it.
60
+
61
+ ## How it reports
62
+
63
+ Each signal returns one of four states, **always with a plain-language
64
+ explanation**:
65
+
66
+ | State | Meaning |
67
+ | --- | --- |
68
+ | Consistent | Checked, no contradiction found |
69
+ | To check | An anomaly that may have a legitimate explanation |
70
+ | Suspicious | A contradiction hard to explain otherwise |
71
+ | Unverifiable | The information needed is missing |
72
+
73
+ Tala X never says "this image is fake", and never certifies that an image is
74
+ authentic. An original camera file is not proof of truth: metadata can be
75
+ forged by anyone who knows how. Tala X is built against platform laundering
76
+ and recycled images, not against expert forgers.
77
+
78
+ ## What it checks
79
+
80
+ - File integrity and platform pipeline (WhatsApp, Instagram, X…)
81
+ - Real file format vs extension
82
+ - **Solar consistency**: is the recorded time physically possible at the
83
+ recorded place?
84
+ - Weather cross-check against historical records
85
+ - GPS position, date and time, editing software, embedded thumbnail
86
+ - C2PA provenance certificates
87
+
88
+ It also hands off to reverse image search (Google Lens, TinEye, Yandex), which
89
+ catches old photos recycled with a false caption — the most common form of
90
+ visual misinformation.
91
+
92
+ ## What it deliberately does not do
93
+
94
+ - **No AI-image detection from pixels.** Independent measurements show these
95
+ detectors fall to chance after the resizing and compression every platform
96
+ applies, with false positives on up to a third of genuine press photos.
97
+ - No Error Level Analysis used as a verdict.
98
+ - No automatic visual geolocation.
99
+ - Video: container metadata only.
100
+
101
+ ## Install
102
+
103
+ **1. Install Tala X** (Python 3.12 or newer):
104
+
105
+ ```bash
106
+ pipx install talax # or: uv tool install talax or: pip install talax
107
+ ```
108
+
109
+ **2. Install ExifTool 13.0 or newer.** Tala X refuses to run with an older
110
+ version, because it would miss manufacturer tags and give different results.
111
+
112
+ - **macOS**: `brew install exiftool`
113
+ - **Windows**: download the Windows executable from
114
+ [exiftool.org](https://exiftool.org/), unzip it, rename
115
+ `exiftool(-k).exe` to `exiftool.exe`, keep the `exiftool_files` folder next
116
+ to it, and add that folder to your `PATH`.
117
+ - **Linux**: distribution packages are often too old (Ubuntu 24.04 ships
118
+ 12.76). Install the latest release in your home folder:
119
+
120
+ ```bash
121
+ v=$(curl -fsS https://exiftool.org/ver.txt)
122
+ mkdir -p ~/.local/opt ~/.local/bin
123
+ curl -fsSL "https://sourceforge.net/projects/exiftool/files/Image-ExifTool-$v.tar.gz/download" | tar -xz -C ~/.local/opt
124
+ ln -sf ~/.local/opt/Image-ExifTool-$v/exiftool ~/.local/bin/exiftool
125
+ ```
126
+
127
+ Check with `exiftool -ver`. Tested on Linux, macOS and Windows.
128
+
129
+ ## Use it from the command line
130
+
131
+ ```bash
132
+ talax analyze photo.jpg # report in the terminal
133
+ talax analyze photo.jpg --sky day # what the photo shows, for the solar check
134
+ talax analyze photo.jpg --html report.html # self-contained HTML report
135
+ talax analyze photo.jpg --json # machine-readable
136
+ ```
137
+
138
+ Nothing is ever sent over the network. The HTML report is a single file:
139
+ opening it loads nothing from the network either.
140
+
141
+ ## Use it as a Python library
142
+
143
+ ```python
144
+ from pathlib import Path
145
+
146
+ from talax import Observation, Sky, analyze
147
+
148
+ analysis = analyze(Path("photo.jpg"), observation=Observation(Sky.DAY))
149
+ print(analysis.integrity.verdict, analysis.integrity.explanation)
150
+ for result in analysis.results:
151
+ print(result.signal_id, result.state, result.explanation)
152
+ ```
153
+
154
+ Every result carries a state, a plain-language explanation and the raw values
155
+ behind it (`result.evidence`). The JSON output of the command line follows a
156
+ versioned schema (`"schema": 1`).
157
+
158
+ ## Develop
159
+
160
+ ```bash
161
+ git clone https://github.com/ChristKTMB/talaX.git
162
+ cd talaX
163
+ uv sync
164
+ uv run pytest
165
+ uv run ruff check && uv run ruff format --check && uv run mypy
166
+ ```
167
+
168
+ Tests that need the reference corpus are skipped when `corpus/files/` is
169
+ absent: those files are not published (see the
170
+ [corpus protocol](https://github.com/ChristKTMB/talaX/blob/main/corpus/README.md)).
171
+
172
+ ## Three ways to use it
173
+
174
+ - **Python library** — `pip install talax`, to integrate into your own platform
175
+ - **CLI** — runs on your machine; your file never leaves it. Recommended for
176
+ sensitive material.
177
+ - **Web app** (coming) — hosted, for quick checks. Files will be analysed and
178
+ deleted immediately, never stored.
179
+
180
+ Requires [ExifTool](https://exiftool.org/) and, for video,
181
+ [ffprobe](https://ffmpeg.org/).
182
+
183
+ ## Contributing
184
+
185
+ The project is open to contributions. The most valuable one will be
186
+ **platform fingerprints**: measured characteristics of how a given platform
187
+ and app version reprocesses files. A contribution guide will come with the
188
+ first code.
189
+
190
+ ## License
191
+
192
+ [Apache-2.0](https://github.com/ChristKTMB/talaX/blob/main/LICENSE)