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

We probably want to test version bumps using test pypi in [pypi-release.yml](https://github.com/cloudevents/sdk-python/blob/master/.github/workflows/pypi-release.yml) May also want to add stable branch creation to [pypi_packaging.py](https://github.com/cloudevents/sdk-python/blob/master/pypi_packaging.py) and [RELEASING.md](https://github.com/cloudevents/sdk-python/blob/master/RELEASING.md)

updates: - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) - [github.com/pycqa/isort: 6.0.1 → 7.0.0](https://github.com/pycqa/isort/compare/6.0.1...7.0.0) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 25.1.0 → 25.12.0](https://github.com/psf/black-pre-commit-mirror/compare/25.1.0...25.12.0) - [github.com/pre-commit/mirrors-mypy: v1.16.0 → v1.19.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.16.0...v1.19.0)

Fixes #211 ## Changes The `content-type` attribute will violate the attribute naming rules, so the attribute has been modified to `datacontenttype`. ## One line description for the changelog Converted `content-type`...

Fixes https://github.com/cloudevents/sdk-python/issues/231 ## Changes Received the following warning: "PydanticDeprecatedSince20: Using extra keyword arguments on Field is deprecated and will be removed. Use json_schema_extra instead. (Extra keys: 'example')." so we updated...

I get this warning message: /Users/...-ZX1ANZWw-py3.11/lib/python3.11/site-packages/pydantic/fields.py:799: PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 'example'). Deprecated in Pydantic V2.0 to...

good first issue

``` CloudEvent(..., data=CloudEvent(...)).json() ``` will not work I will fix it myself

Initial draft for a major refactor of the repository. ## One line description for the changelog V2 roadmap proposal

## Expected Behavior I am using to_structured() but there are non-ascii symbols that I want to have included. I cannot alter its behaviour. ## Actual Behavior to_structured method returns them...

enhancement

https://github.com/cloudevents/sdk-python/blob/ef982743b68866abbe0049dbffac76f5a2e3efb4/cloudevents/kafka/conversion.py#L90 This will call `CloudEvent._get_attributes()["content-type"]` but a `content-type` attribute will violate the attribute naming rules: https://github.com/cloudevents/spec/blob/30f1a081743bfe06b45b85519dd145f14a1ad22c/cloudevents/spec.md?plain=1#L173-L175 > CloudEvents attribute names MUST consist of lower-case letters ('a' to 'z') or digits...

bug

As discussed [here](https://github.com/cloudevents/sdk-python/pull/221#discussion_r1333488704) we've agreed to review the activity of the SDK maintainers in half a year and see if the maintainers are still active.