sdk-python/samples/http-json-cloudevents
Yurii Serhiichuk 5e64e3fea1
release: v1.6.0 (#189)
* chore: bump version.

Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>

* docs: Update changelog with the release

Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>

* docs: Use new `conversion` module over deprecated APIs.

Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* docs: Also sort imports in README

Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>

* docs: cleanup README and refereance latest Flask

Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-08-18 07:24:20 -07:00
..
README.md Release v1.0.0 (#89) 2020-08-10 19:47:10 -07:00
client.py release: v1.6.0 (#189) 2022-08-18 07:24:20 -07:00
json_sample_server.py chore: unify copyright with other SDKs and update/add it where needed. (#170) 2022-07-11 12:56:07 -07:00
json_sample_test.py release: v1.6.0 (#189) 2022-08-18 07:24:20 -07: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