Cadwyn

Latest version: v3.15.7

Safety actively analyzes 638730 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 9 of 11

2.3.1

Changed

* Migrate from external verselect to stable verselect

2.3.0

Fixed

* Previously whenever we generated routes, we wrapped all endpoints and callbacks in decorators for every version which caused stacktraces to be unnecessarily huge. Now there is only one wrapper for all versions

Added

* `cadwyn.Cadwyn` class similar to `fastapi.FastAPI` that provides header routing and encapsulates all information about versioned routes
* Migrated from `fastapi-header-routing` to `verselect`
* `cadwyn.routing.VERSION_HEADER_FORMAT` from `verselect.routing`

Changed

* `*versions` argument in `cadwyn.VersionBundle` is now split into a required positional-only `latest_version` and `*other_versions` to make it possible to see an invalid versionless definition statically. Note that it is not a breaking change because the presence of at least one version was also implicitly required before and would produce a failure at runtime

Removed

* `cadwyn.get_cadwyn_dependency` and `cadwyn.header` because it is fully replaced with `verselect`

2.2.0

Added

* Validation for the spelling of HTTP methods in `cadwyn.structure.endpoint`.

2.1.0

Added

* A prototype of AST-based code generation where we try to keep as much of the old field/annotation structure as possible

2.0.5

Fixed

* `UploadFile` and forms have previously caused exceptions on request migration

2.0.4

Fixed

* `ContextVar[datetime.date]` being incompatible with `VersionBundle`

Page 9 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.