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
Copy file name to clipboardExpand all lines: README.md
+26-4Lines changed: 26 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
# C2PA Python
2
2
3
-
Python bindings for the C2PA Content Authenticity Initiative (CAI) library.
3
+
This repository implements Python bindings for the Content Authenticity Initiative (CAI) library.
4
4
5
5
This library enables you to read and validate C2PA data in supported media files and add signed manifests to supported media files.
6
6
7
-
**NOTE**: This is a completely different API from 0.4.0. Check[Release notes](#release-notes) for changes.
7
+
**NOTE**: Starting with version 0.5.0, this package has a completely different API from version 0.4.0. See[Release notes](#release-notes) for more information.
8
8
9
9
**WARNING**: This is an prerelease version of this library. There may be bugs and unimplemented features, and the API is subject to change.
10
10
@@ -18,6 +18,16 @@ pip install -U c2pa-python
18
18
19
19
This is a platform wheel built with Rust that works on Windows, macOS, and most Linux distributions (using [manylinux](https://github.com/pypa/manylinux)). If you need to run on another platform, see [Development](#development) for information on how to build from source.
20
20
21
+
### Updating
22
+
23
+
Determine what version you've got by entering this command:
24
+
25
+
```
26
+
pip list | grep c2pa-python
27
+
```
28
+
29
+
If the version shown is lower than the most recent version, then update by [reinstalling](#installation).
30
+
21
31
### Reinstalling
22
32
23
33
If you tried unsuccessfully to install this package before the [0.40 release](https://github.com/contentauth/c2pa-python/releases/tag/v0.4), then use this command to reinstall:
@@ -292,10 +302,22 @@ deactivate
292
302
293
303
## Release notes
294
304
305
+
### Version 0.5.2
306
+
307
+
New features:
308
+
309
+
- Allow EC signatures in DER format from signers and verify signature format during validation.
310
+
- Fix bug in signing audio and video files in ISO Base Media File Format (BMFF).
311
+
- Add the ability to verify PDF files (but not to sign them).
312
+
- Increase speed of `sign_file` by 2x or more, when using file paths (uses native Rust file I/O).
313
+
- Fixes for RIFF and GIF formats.
314
+
295
315
### Version 0.5.0
296
316
297
-
- This release rewrites the API to be stream based using a Builder and Reader model.
298
-
- The functions now support throwing c2pa.Error values, caught with try/except.
317
+
New features in this release:
318
+
319
+
- Rewrites the API to be stream-based using a Builder / Reader model.
320
+
- The functions now support throwing `c2pa.Error` values, caught with `try`/`except`.
299
321
- Instead of `c2pa.read_file` you now call `c2pa_api.Reader.from_file` and `reader.json`.
300
322
- Read thumbnails and other resources use `reader.resource_to_stream` or `reader.resource.to_file`.
301
323
- Instead of `c2pa.sign_file` use `c2pa_api.Builder.from_json` and `builder.sign` or `builder.sign_file`.
0 commit comments