c2pa-python 0.27.1__tar.gz → 0.29.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 (22) hide show
  1. {c2pa_python-0.27.1/src/c2pa_python.egg-info → c2pa_python-0.29.0}/PKG-INFO +21 -2
  2. {c2pa_python-0.27.1 → c2pa_python-0.29.0}/README.md +20 -1
  3. {c2pa_python-0.27.1 → c2pa_python-0.29.0}/pyproject.toml +1 -1
  4. {c2pa_python-0.27.1 → c2pa_python-0.29.0}/src/c2pa/__init__.py +16 -2
  5. {c2pa_python-0.27.1 → c2pa_python-0.29.0}/src/c2pa/c2pa.py +1835 -1000
  6. {c2pa_python-0.27.1 → c2pa_python-0.29.0}/src/c2pa/lib.py +42 -12
  7. {c2pa_python-0.27.1 → c2pa_python-0.29.0/src/c2pa_python.egg-info}/PKG-INFO +21 -2
  8. {c2pa_python-0.27.1 → c2pa_python-0.29.0}/tests/test_unit_tests.py +2658 -275
  9. {c2pa_python-0.27.1 → c2pa_python-0.29.0}/tests/test_unit_tests_threaded.py +1028 -264
  10. {c2pa_python-0.27.1 → c2pa_python-0.29.0}/LICENSE-APACHE +0 -0
  11. {c2pa_python-0.27.1 → c2pa_python-0.29.0}/LICENSE-MIT +0 -0
  12. {c2pa_python-0.27.1 → c2pa_python-0.29.0}/MANIFEST.in +0 -0
  13. {c2pa_python-0.27.1 → c2pa_python-0.29.0}/requirements.txt +0 -0
  14. {c2pa_python-0.27.1 → c2pa_python-0.29.0}/scripts/download_artifacts.py +0 -0
  15. {c2pa_python-0.27.1 → c2pa_python-0.29.0}/setup.cfg +0 -0
  16. {c2pa_python-0.27.1 → c2pa_python-0.29.0}/setup.py +0 -0
  17. {c2pa_python-0.27.1 → c2pa_python-0.29.0}/src/c2pa/build.py +0 -0
  18. {c2pa_python-0.27.1 → c2pa_python-0.29.0}/src/c2pa_python.egg-info/SOURCES.txt +0 -0
  19. {c2pa_python-0.27.1 → c2pa_python-0.29.0}/src/c2pa_python.egg-info/dependency_links.txt +0 -0
  20. {c2pa_python-0.27.1 → c2pa_python-0.29.0}/src/c2pa_python.egg-info/entry_points.txt +0 -0
  21. {c2pa_python-0.27.1 → c2pa_python-0.29.0}/src/c2pa_python.egg-info/requires.txt +0 -0
  22. {c2pa_python-0.27.1 → c2pa_python-0.29.0}/src/c2pa_python.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: c2pa-python
3
- Version: 0.27.1
3
+ Version: 0.29.0
4
4
  Summary: Python bindings for the C2PA Content Authenticity Initiative (CAI) library
5
5
  Author-email: Gavin Peacock <gvnpeacock@adobe.com>, Tania Mathern <mathern@adobe.com>
6
6
  Maintainer-email: Gavin Peacock <gpeacock@adobe.com>
@@ -35,6 +35,22 @@ Features:
35
35
  - Add assertions and ingredients to assets.
36
36
  - Examples and unit tests to demonstrate usage.
37
37
 
38
+ <div style={{display: 'none'}}>
39
+
40
+ For the best experience, read the docs on the [CAI Open Source SDK documentation website](https://opensource.contentauthenticity.org/docs/c2pa-c).
41
+
42
+ If you want to view the documentation in GitHub, see:
43
+ - [Using the Python library](docs/usage.md)
44
+ - [Supported formats](https://github.com/contentauth/c2pa-rs/blob/main/docs/supported-formats.md)
45
+ - [Configuring the SDK using `Context` and `Settings`](docs/context-settings.md)
46
+ - [Using Builder intents](docs/intents.md) to ensure spec-compliant manifests
47
+ - Using [working stores and archvies](docs/working-stores.md)
48
+ - Selectively constructing manifests by [filtering actions and ingredients](docs/selective-manifests.md)
49
+ - [Diagram of public classes in the Python library and their relationships](docs/class-diagram.md)
50
+ - [Release notes](docs/release-notes.md)
51
+
52
+ </div>
53
+
38
54
  ## Prerequisites
39
55
 
40
56
  This library requires Python version 3.10+.
@@ -57,12 +73,15 @@ import c2pa
57
73
 
58
74
  See the [`examples` directory](https://github.com/contentauth/c2pa-python/tree/main/examples) for some helpful examples:
59
75
 
76
+ - `examples/read.py` shows how to read and verify an asset with a C2PA manifest.
60
77
  - `examples/sign.py` shows how to sign and verify an asset with a C2PA manifest.
61
78
  - `examples/training.py` demonstrates how to add a "Do Not Train" assertion to an asset and verify it.
62
79
 
63
80
  ## API reference documentation
64
81
 
65
- See [the section in Contributing to the project](https://github.com/contentauth/c2pa-python/blob/main/docs/project-contributions.md#api-reference-documentation).
82
+ Documentation is published at [github.io/c2pa-python/api/c2pa](https://contentauth.github.io/c2pa-python/api/c2pa/index.html).
83
+
84
+ To build documentation locally, refer to [this section in Contributing to the project](https://github.com/contentauth/c2pa-python/blob/main/docs/project-contributions.md#api-reference-documentation).
66
85
 
67
86
  ## Contributing
68
87
 
@@ -12,6 +12,22 @@ Features:
12
12
  - Add assertions and ingredients to assets.
13
13
  - Examples and unit tests to demonstrate usage.
14
14
 
15
+ <div style={{display: 'none'}}>
16
+
17
+ For the best experience, read the docs on the [CAI Open Source SDK documentation website](https://opensource.contentauthenticity.org/docs/c2pa-c).
18
+
19
+ If you want to view the documentation in GitHub, see:
20
+ - [Using the Python library](docs/usage.md)
21
+ - [Supported formats](https://github.com/contentauth/c2pa-rs/blob/main/docs/supported-formats.md)
22
+ - [Configuring the SDK using `Context` and `Settings`](docs/context-settings.md)
23
+ - [Using Builder intents](docs/intents.md) to ensure spec-compliant manifests
24
+ - Using [working stores and archvies](docs/working-stores.md)
25
+ - Selectively constructing manifests by [filtering actions and ingredients](docs/selective-manifests.md)
26
+ - [Diagram of public classes in the Python library and their relationships](docs/class-diagram.md)
27
+ - [Release notes](docs/release-notes.md)
28
+
29
+ </div>
30
+
15
31
  ## Prerequisites
16
32
 
17
33
  This library requires Python version 3.10+.
@@ -34,12 +50,15 @@ import c2pa
34
50
 
35
51
  See the [`examples` directory](https://github.com/contentauth/c2pa-python/tree/main/examples) for some helpful examples:
36
52
 
53
+ - `examples/read.py` shows how to read and verify an asset with a C2PA manifest.
37
54
  - `examples/sign.py` shows how to sign and verify an asset with a C2PA manifest.
38
55
  - `examples/training.py` demonstrates how to add a "Do Not Train" assertion to an asset and verify it.
39
56
 
40
57
  ## API reference documentation
41
58
 
42
- See [the section in Contributing to the project](https://github.com/contentauth/c2pa-python/blob/main/docs/project-contributions.md#api-reference-documentation).
59
+ Documentation is published at [github.io/c2pa-python/api/c2pa](https://contentauth.github.io/c2pa-python/api/c2pa/index.html).
60
+
61
+ To build documentation locally, refer to [this section in Contributing to the project](https://github.com/contentauth/c2pa-python/blob/main/docs/project-contributions.md#api-reference-documentation).
43
62
 
44
63
  ## Contributing
45
64
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "c2pa-python"
7
- version = "0.27.1"
7
+ version = "0.29.0"
8
8
  requires-python = ">=3.10"
9
9
  description = "Python bindings for the C2PA Content Authenticity Initiative (CAI) library"
10
10
  readme = { file = "README.md", content-type = "text/markdown" }
@@ -22,11 +22,18 @@ from .c2pa import (
22
22
  C2paError,
23
23
  Reader,
24
24
  C2paSigningAlg,
25
+ C2paDigitalSourceType,
26
+ C2paBuilderIntent,
25
27
  C2paSignerInfo,
26
28
  Signer,
27
29
  Stream,
30
+ Settings,
31
+ Context,
32
+ ContextBuilder,
33
+ ContextProvider,
28
34
  sdk_version,
29
- read_ingredient_file
35
+ read_ingredient_file,
36
+ load_settings
30
37
  ) # NOQA
31
38
 
32
39
  # Re-export C2paError and its subclasses
@@ -35,9 +42,16 @@ __all__ = [
35
42
  'C2paError',
36
43
  'Reader',
37
44
  'C2paSigningAlg',
45
+ 'C2paDigitalSourceType',
46
+ 'C2paBuilderIntent',
38
47
  'C2paSignerInfo',
39
48
  'Signer',
40
49
  'Stream',
50
+ 'Settings',
51
+ 'Context',
52
+ 'ContextBuilder',
53
+ 'ContextProvider',
41
54
  'sdk_version',
42
- 'read_ingredient_file'
55
+ 'read_ingredient_file',
56
+ 'load_settings'
43
57
  ]