You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: Clarify version docs
* fix: Add the test that verifies direct instance throws
* fix: Add the tests for the factory method
* fix: Add tests for from_asset
* fix: Add tests
* fix: Typos in docs
* fix: Add docs
* fix: Docs
* fix: Typo
* fix: Rename method
* fix: Exception classes hierarchy
* fix: COmment typos...
* fix: Typos in comments
* fix: In examples, add link to the app repo example
* fix: In examples, add link to the app repo example
* fix: In examples, add link to the app repo example
* fix: Add docs link
* fix: Add docs link
* fix: Clean up exception handling
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,9 @@ See the [`examples` directory](https://github.com/contentauth/c2pa-python/tree/m
39
39
40
40
## API reference documentation
41
41
42
-
See [the section in Contributing to the project](https://github.com/contentauth/c2pa-python/blob/main/docs/project-contributions.md#api-reference-documentation).
42
+
Documentation is published at [github.io/c2pa-python/api/c2pa](https://contentauth.github.io/c2pa-python/api/c2pa/index.html).
43
+
44
+
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).
Copy file name to clipboardExpand all lines: examples/README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Python example code
1
+
# Python example code
2
2
3
3
The `examples` directory contains some small examples of using the Python library.
4
4
The examples use asset files from the `tests/fixtures` directory, save the resulting signed assets to the temporary `output` directory, and display manifest store data and other output to the console.
@@ -96,3 +96,7 @@ In this example, `SignerInfo` creates a `Signer` object that signs the manifest.
96
96
```bash
97
97
python examples/sign_info.py
98
98
```
99
+
100
+
## Backend application example
101
+
102
+
[c2pa-python-example](https://github.com/contentauth/c2pa-python-example) is an example of a simple application that accepts an uploaded JPEG image file, attaches a C2PA manifest, and signs it using a certificate. The app uses the CAI Python library and the Flask Python framework to implement a back-end REST endpoint; it does not have an HTML front-end, so you have to use something like curl to access it. This example is a development setup and should not be deployed as-is to a production environment.
0 commit comments