-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #270 from uploadcare/feature/260-aws_rekognition_m…
…oderation AWS Rekognition Moderation and bugfixes for addons, closes #260
- Loading branch information
Showing
15 changed files
with
556 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "pyuploadcare" | ||
version = "4.1.3" | ||
version = "4.2.0" | ||
description = "Python library for Uploadcare.com" | ||
authors = ["Uploadcare Inc <[email protected]>"] | ||
readme = "README.md" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
tests/functional/api/cassettes/test_aws_rekognition_detect_labels_execute.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
interactions: | ||
- request: | ||
body: '{"target": "485f5c0e-3567-46b1-a5c9-96a8ffc45713"}' | ||
headers: | ||
accept: | ||
- '*/*' | ||
accept-encoding: | ||
- gzip, deflate | ||
connection: | ||
- keep-alive | ||
content-length: | ||
- '50' | ||
content-type: | ||
- application/json | ||
host: | ||
- api.uploadcare.com | ||
user-agent: | ||
- PyUploadcare/4.1.2/5d5bb5639e3f2df33674 (CPython/3.11.5) | ||
method: POST | ||
uri: https://api.uploadcare.com/addons/aws_rekognition_detect_labels/execute/ | ||
response: | ||
content: '{"request_id": "6e8424be-749a-4eee-bc1e-05393a7b6938"}' | ||
headers: | ||
Access-Control-Allow-Origin: | ||
- https://uploadcare.com | ||
Allow: | ||
- OPTIONS, POST | ||
Connection: | ||
- keep-alive | ||
Content-Encoding: | ||
- gzip | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Thu, 09 Nov 2023 17:03:43 GMT | ||
Server: | ||
- nginx | ||
Transfer-Encoding: | ||
- chunked | ||
Vary: | ||
- Accept-Encoding | ||
- Accept | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- SAMEORIGIN | ||
X-Robots-Tag: | ||
- noindex, nofollow, nosnippet, noarchive | ||
X-Uploadcare-Request-Id: | ||
- 6e8424be-749a-4eee-bc1e-05393a7b6938 | ||
X-XSS-Protection: | ||
- 1; mode=block | ||
http_version: HTTP/1.1 | ||
status_code: 200 | ||
version: 1 |
48 changes: 48 additions & 0 deletions
48
tests/functional/api/cassettes/test_aws_rekognition_detect_labels_status.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
interactions: | ||
- request: | ||
body: '' | ||
headers: | ||
accept: | ||
- '*/*' | ||
accept-encoding: | ||
- gzip, deflate | ||
connection: | ||
- keep-alive | ||
host: | ||
- api.uploadcare.com | ||
user-agent: | ||
- PyUploadcare/4.1.2/5d5bb5639e3f2df33674 (CPython/3.11.5) | ||
method: GET | ||
uri: https://api.uploadcare.com/addons/aws_rekognition_detect_labels/execute/status/?request_id=6e8424be-749a-4eee-bc1e-05393a7b6938 | ||
response: | ||
content: '{"status": "done"}' | ||
headers: | ||
Access-Control-Allow-Origin: | ||
- https://uploadcare.com | ||
Allow: | ||
- GET, HEAD, OPTIONS | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '18' | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Thu, 09 Nov 2023 17:05:14 GMT | ||
Server: | ||
- nginx | ||
Vary: | ||
- Accept | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- SAMEORIGIN | ||
X-Robots-Tag: | ||
- noindex, nofollow, nosnippet, noarchive | ||
X-Uploadcare-Request-Id: | ||
- 568d9e58-c2a6-4a87-a589-6e62c93fb3d8 | ||
X-XSS-Protection: | ||
- 1; mode=block | ||
http_version: HTTP/1.1 | ||
status_code: 200 | ||
version: 1 |
55 changes: 55 additions & 0 deletions
55
tests/functional/api/cassettes/test_aws_rekognition_detect_moderation_labels_execute.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
interactions: | ||
- request: | ||
body: '{"target": "485f5c0e-3567-46b1-a5c9-96a8ffc45713"}' | ||
headers: | ||
accept: | ||
- '*/*' | ||
accept-encoding: | ||
- gzip, deflate | ||
connection: | ||
- keep-alive | ||
content-length: | ||
- '50' | ||
content-type: | ||
- application/json | ||
host: | ||
- api.uploadcare.com | ||
user-agent: | ||
- PyUploadcare/4.1.2/5d5bb5639e3f2df33674 (CPython/3.11.5) | ||
method: POST | ||
uri: https://api.uploadcare.com/addons/aws_rekognition_detect_moderation_labels/execute/ | ||
response: | ||
content: '{"request_id": "6666a652-a79d-4991-9c4b-3f7705ed7c6c"}' | ||
headers: | ||
Access-Control-Allow-Origin: | ||
- https://uploadcare.com | ||
Allow: | ||
- OPTIONS, POST | ||
Connection: | ||
- keep-alive | ||
Content-Encoding: | ||
- gzip | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Thu, 09 Nov 2023 16:40:41 GMT | ||
Server: | ||
- nginx | ||
Transfer-Encoding: | ||
- chunked | ||
Vary: | ||
- Accept-Encoding | ||
- Accept | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- SAMEORIGIN | ||
X-Robots-Tag: | ||
- noindex, nofollow, nosnippet, noarchive | ||
X-Uploadcare-Request-Id: | ||
- 6666a652-a79d-4991-9c4b-3f7705ed7c6c | ||
X-XSS-Protection: | ||
- 1; mode=block | ||
http_version: HTTP/1.1 | ||
status_code: 200 | ||
version: 1 |
48 changes: 48 additions & 0 deletions
48
tests/functional/api/cassettes/test_aws_rekognition_detect_moderation_labels_status.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
interactions: | ||
- request: | ||
body: '' | ||
headers: | ||
accept: | ||
- '*/*' | ||
accept-encoding: | ||
- gzip, deflate | ||
connection: | ||
- keep-alive | ||
host: | ||
- api.uploadcare.com | ||
user-agent: | ||
- PyUploadcare/4.1.2/5d5bb5639e3f2df33674 (CPython/3.11.5) | ||
method: GET | ||
uri: https://api.uploadcare.com/addons/aws_rekognition_detect_moderation_labels/execute/status/?request_id=6666a652-a79d-4991-9c4b-3f7705ed7c6c | ||
response: | ||
content: '{"status": "done"}' | ||
headers: | ||
Access-Control-Allow-Origin: | ||
- https://uploadcare.com | ||
Allow: | ||
- GET, HEAD, OPTIONS | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '18' | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Thu, 09 Nov 2023 16:58:59 GMT | ||
Server: | ||
- nginx | ||
Vary: | ||
- Accept | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- SAMEORIGIN | ||
X-Robots-Tag: | ||
- noindex, nofollow, nosnippet, noarchive | ||
X-Uploadcare-Request-Id: | ||
- 83aee3a8-cdb3-4684-b364-6278fc8a10b8 | ||
X-XSS-Protection: | ||
- 1; mode=block | ||
http_version: HTTP/1.1 | ||
status_code: 200 | ||
version: 1 |
Oops, something went wrong.