Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cloudevents/sdk-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: cloudevents/sdk-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 14 commits
  • 115 files changed
  • 4 contributors

Commits on Sep 30, 2024

  1. chore: V2 migrate to uv (#239)

    * Migrate project to rye and ruff for v2
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Just run ruff
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Add the core package stub
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Move cloudevents to v1
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Add extra rye configs. update locks to be OS-aware
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Migrate from rye to uv
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Use python 3.12 by default for linting
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Do not mention rye in docs
    
    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
    
    * Use stricter mypy rules. exclude v1
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Run isort, flake8
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * fix isort
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Run ruff with isort
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Move mypy config to pyproject
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Exclude samples as well
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Exclude samples as well
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Fix mypy pre-commit setup
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    ---------
    
    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>
    xSAVIKx and pre-commit-ci[bot] authored Sep 30, 2024
    Configuration menu
    Copy the full SHA
    9101ab4 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2024

  1. fix: remove last mentions of py38 (#244)

    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    PlugaruT authored Nov 14, 2024
    Configuration menu
    Copy the full SHA
    d601888 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2024

  1. feat: base CloudEvent class as per v1 specs, including attribute va…

    …lidation (#242)
    
    * feat: base `CloudEvent` class as per v1 specs, including attribute validation
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: add typings and docstrings
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: Add support for custom extension names and validate them
    
    Signed-off-by: Tudor <plugaru.tudor@protonmail.com>
    
    * chore: Add copyright and fix missing type info
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: Add getters for attributes and test happy path
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * fix: typing
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: Split validation logic into smaller methods
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: Add method to extract extension by name
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: configure ruff to sort imports also
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: Returns all the errors at ones instead of raising early. Improve tests
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * fix missing type info
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: Improve exceptions handling. Have exceptions grouped by attribute name and typed exceptions
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: Skip type checing for getters of required attributes
    
    We can't use TypedDict here becuase it does not allow for arbitrary keys which we need in order to support custom extension attributes.
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * fix: missing type
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: Improve exceptions and introduce a new one for invalid values
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * fix: str representation for validation error
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * fix: Fix missing type definitions
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * small fix
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * remove cast of defaultdict to dict
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    ---------
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    Signed-off-by: Tudor <plugaru.tudor@protonmail.com>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    PlugaruT and pre-commit-ci[bot] authored Nov 16, 2024
    Configuration menu
    Copy the full SHA
    a73c870 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2025

  1. feat: implementation for JSON format. (#245)

    * feat: draft implementation for JSON format. Only CloudEvent serialization included.
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * Implement read method
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * small fix to read method
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * wrap up JSON format completely and make it compliant with the spec
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * add type annotations
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore(docs): move docstrings from implementation to protocol class
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore(docs): document Format protocol
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    ---------
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    PlugaruT authored Oct 17, 2025
    Configuration menu
    Copy the full SHA
    a9b9904 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2025

  1. chore: drop support for PY3.19 and run tests for 3.13 and 3.14 (#252)

    * chore: drop support for PY3.9 since it reached EOL
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: run tests for 3.13 and 3.14
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: update docs
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: update actions to latest version
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    ---------
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    PlugaruT authored Nov 19, 2025
    Configuration menu
    Copy the full SHA
    44b0496 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2025

  1. feat: implement http bindings (#251)

    * chore: fix uv lock warnings
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * feat: implement http bindings
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: fix mypy in tests
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: more mypy fixes
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: another try
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: switch from using `Dict` to `dict` for type hints
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: switch type hints to use `|` rather than `Union`
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * refactor: simplify header normalization in from_http function
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * refactor: streamline header normalization in from_binary function
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * refactor: remove redundant comment in from_binary function
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    ---------
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    PlugaruT authored Nov 24, 2025
    Configuration menu
    Copy the full SHA
    db71318 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2025

  1. feat(v2): full implementation for kafka bindings (#253)

    * feat: full implementation of kafka bindings
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: no need to re-export functions from core module. let users explicitly import
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    ---------
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    PlugaruT authored Dec 15, 2025
    Configuration menu
    Copy the full SHA
    675c44b View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2025

  1. feat(v2): Full AMQP spec implementation (#254)

    * feat(v2): full AMQP 1.0 implementation
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * feat(v2): Support both `_` and `:` when reading AMQP messages
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: define type alias for EventFactory and use it everywhere
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    ---------
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    PlugaruT authored Dec 23, 2025
    Configuration menu
    Copy the full SHA
    06834b3 View commit details
    Browse the repository at this point in the history
  2. chore: provide simplified interface to read/write CE for both binary …

    …and structured even formats (#255)
    
    * chore: provide simplified interface to read/write CE for both binary and
    structured even formats
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * fix typing
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    ---------
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    PlugaruT authored Dec 23, 2025
    Configuration menu
    Copy the full SHA
    fd6f579 View commit details
    Browse the repository at this point in the history
  3. chore: v2 upgrade tooling (#257)

    * refactor(config): update dependencies and dev tools versions
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * refactor(workflows): update GitHub Actions and OS versions in workflows
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * docs(releasing): simplify and update releasing guidelines
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * docs(github): enhance pull request template with detailed guidelines and checklist
    
    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>
    xSAVIKx and pre-commit-ci[bot] authored Dec 23, 2025
    Configuration menu
    Copy the full SHA
    75c0373 View commit details
    Browse the repository at this point in the history
  4. feat(pypi): add support for v2 branch in release workflow and strea…

    …mline build/publish process using `uv` (#259)
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    xSAVIKx authored Dec 23, 2025
    Configuration menu
    Copy the full SHA
    d313d33 View commit details
    Browse the repository at this point in the history
  5. fix(workflow): update PyPI release commands for clarity and efficiency

    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    xSAVIKx committed Dec 23, 2025
    Configuration menu
    Copy the full SHA
    7001341 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2026

  1. chore: simplified interface to read/write CE using AMQP bindings. (#262)

    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    PlugaruT authored Jan 10, 2026
    Configuration menu
    Copy the full SHA
    91b092b View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2026

  1. feat(v2): add support for spec version 0.3 (#261)

    * feat: add support for spec version 0.3
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: make ruff fail on unused imports
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: Move spec version constants to spec module
    
    Moves SPECVERSION_V1_0 and SPECVERSION_V0_3 from the core __init__.py to
    a new cloudevents.core.spec module.
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    ---------
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    PlugaruT authored Jan 12, 2026
    Configuration menu
    Copy the full SHA
    0752f6f View commit details
    Browse the repository at this point in the history
Loading