sdk-python/samples/http-json-cloudevents
Lucas Bickel 2896d04c79
fix: merge strings on same line into single string (#153)
* fix: merge strings on same line into single string

Signed-off-by: Lucas Bickel <hairmare@rabe.ch>

* chore: blacken example

Signed-off-by: Lucas <lucas.bickel@adfinis.com>
2022-07-10 16:04:23 +03:00
..
README.md Release v1.0.0 (#89) 2020-08-10 19:47:10 -07:00
client.py fix: merge strings on same line into single string (#153) 2022-07-10 16:04:23 +03: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