Skip to content

Commit 18d1c4b

Browse files
committed
Remove duplicate example
1 parent 00c6702 commit 18d1c4b

File tree

1 file changed

+0
-48
lines changed

1 file changed

+0
-48
lines changed

docs/tasks/includes/_python-build.md

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -58,52 +58,4 @@ try:
5858

5959
except Exception as err:
6060
print(err)
61-
```
62-
63-
FROM SIGNING:
64-
65-
```python
66-
request_data = ... # This is the asset being signed.
67-
content_type = ... # MIME type of the asset.
68-
69-
manifest = json.dumps({
70-
"title": "image.jpg",
71-
"format": "image/jpeg",
72-
"claim_generator_info": [
73-
{
74-
"name": "Documentation example",
75-
"version": "0.0.1"
76-
}
77-
],
78-
"assertions": [
79-
{
80-
"label": "c2pa.actions",
81-
"data": {
82-
"actions": [
83-
{
84-
"action": "c2pa.edited",
85-
"softwareAgent": {
86-
"name": "C2PA Python Example",
87-
"version": "0.1.0"
88-
}
89-
}
90-
]
91-
}
92-
}
93-
]
94-
})
95-
96-
try:
97-
builder = Builder(manifest)
98-
99-
signer = create_signer(kms_sign, signing_alg,
100-
cert_chain, timestamp_url)
101-
102-
result = io.BytesIO(b"")
103-
builder.sign(signer, content_type, io.BytesIO(request_data), result)
104-
105-
return result.getvalue()
106-
except Exception as e:
107-
logging.error(e)
108-
abort(500, description=e)
10961
```

0 commit comments

Comments
 (0)