sdk-python/samples/http-image-cloudevents
Curtis Mason 4bd0a62367
http-json-cloudevents testing (#80)
* Added tests to http-json-cloudevents

Signed-off-by: Curtis Mason <cumason@google.com>

* removed outdated python-requests sample code

Signed-off-by: Curtis Mason <cumason@google.com>

* lint fix

Signed-off-by: Curtis Mason <cumason@google.com>

* Added flask to requirements

Signed-off-by: Curtis Mason <cumason@google.com>

* lint fix

Signed-off-by: Curtis Mason <cumason@google.com>
2020-07-30 16:44:23 -07:00
..
README.md http-json-cloudevents testing (#80) 2020-07-30 16:44:23 -07:00
client.py Top level http (#83) 2020-07-30 15:21:59 -07:00
image_sample_server.py http-json-cloudevents testing (#80) 2020-07-30 16:44:23 -07:00
image_sample_test.py http-json-cloudevents testing (#80) 2020-07-30 16:44:23 -07:00
requirements.txt Image sample code (#65) 2020-07-21 23:53:35 -07:00

README.md

Image Payloads Quickstart

Install dependencies:

pip3 install -r requirements.txt

Start server:

python3 image_sample_server.py

In a new shell, run the client code which sends a structured and binary cloudevent to your local server:

python3 client.py http://localhost:3000/

Test

pytest