Skip to content

Commit 9430b19

Browse files
committed
fix: Add a note
1 parent 4e5a5f9 commit 9430b19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/usage.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Import the objects needed from the API:
1212
from c2pa import Builder, Reader, Signer, C2paSigningAlg, C2paSignerInfo
1313
```
1414

15+
> **Note**: Both `Builder` and `Reader` support being used as context managers (with `with` statements). It's recommended to use them with context managers to ensure proper resources and memory cleanup.
16+
1517
## Define manifest JSON
1618

1719
The Python library works with both file-based and stream-based operations.

0 commit comments

Comments
 (0)