sdk-python/samples/http-json-cloudevents
Grant Timmerman b83bfc58eb
docs: add cloudevents module requirement in samples (#129)
Signed-off-by: Grant Timmerman <timmerman+devrel@google.com>

Co-authored-by: Dustin Ingram <di@users.noreply.github.com>
2020-10-23 02:05:28 -05:00
..
README.md Release v1.0.0 (#89) 2020-08-10 19:47:10 -07:00
client.py Fix formatting (#131) 2020-10-20 11:31:02 -05:00
json_sample_server.py V1.1.0 dev (#114) 2020-08-18 10:49:02 -04:00
json_sample_test.py V1.1.0 dev (#114) 2020-08-18 10:49:02 -04:00
requirements.txt docs: add cloudevents module requirement in samples (#129) 2020-10-23 02:05:28 -05:00

README.md

Quickstart

Install dependencies:

pip3 install -r requirements.txt

Start server:

python3 json_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