sdk-python icon indicating copy to clipboard operation
sdk-python copied to clipboard

Python SDK for CloudEvents

Results 30 sdk-python issues
Sort by recently updated
recently updated
newest added

Almost all code now lacks proper pydocs across almost all the codebase. We should consider the following PRs are gonna improve the situation. It should be prohibited to merge PRs...

enhancement

We should consider exposing public APIs explicitly using `__init__.py`. This not only makes the usage easier but also allows evolving non-public APIs without breaking outside usage and providing better backward-compatibility.

enhancement

Evaluate https://cibuildwheel.readthedocs.io/en/stable/ as a potential way to ease multi-OS and multi-arch and multi-Python builds. Although this is not very critical it may be helpful to prepare such a setup to...

enhancement

The comment for a "structured" event used the word "binary"

Python 3.6 EOL was more than 6 months ago. Dropping 3.6 support will allow to modernize the codebase and start using more modern language features.

While we already have some typings available it may be beneficial to configure [MyPy](https://mypy.readthedocs.io/en/stable/index.html) in order to ensure type safety of the codebase as well as add the [`py.typed`](https://peps.python.org/pep-0561/) file...

enhancement

https://github.com/cloudevents/spec/blob/master/json-format.md#4-json-batch-format ## Expected Behavior To be able to use the sdk in order to send a batch of `CloudEvent` ## Actual Behavior Only the JSON Format is supported by the...

enhancement

## Expected Behavior When using `cloudevents.http.from_http(headers, body)`, an event that is missing _any_ of the required fields should result in a `cloud_exceptions.MissingRequiredFields` exception with a message that indicates which field...

MultiDict (https://github.com/aio-libs/multidict) is a better option to work with HTTP headers

We may want to add the following to [pypi_release.yml](https://github.com/cloudevents/sdk-python/blob/master/.github/workflows/pypi-release.yml): ``` with: skip_existing: true ``` to enable readme adjustments pushed to master. Unsure if this is the best way of handling...