| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2025-09-28 | 2.8 kB | |
| v2.4.1 source code.tar.gz | 2025-09-28 | 2.0 MB | |
| v2.4.1 source code.zip | 2025-09-28 | 2.1 MB | |
| Totals: 3 Items | 4.1 MB | 0 | |
- Correct bug in controller inheritance that would prevent argument types and return type hints from working as expected (#594). By @martinmkhitaryan.
- Improve the code responsible of mapping input request parameters into instances of desired types. Change the inner workings of
blacksheep.server.bindingsto make the code more configurable and easier to maintain. - Add support for
StrEnumandIntEnumto binders for request handlers' parameters. See #588. Enums can be mapped by key and by value. The class that matchesStrEnummake case sensitive checks; override the__missing__method of your user-defined enums to support case insensitive checks; or define a customStrEnumConverterclass. This feature requiresPython >= 3.11. - Add support for
Literalto binders for request handlers' parameters. See #588. String literals are case sensitive by default. - Minor breaking change. Remove the dependency on
python-dateutil(#544), which was always used to parse inputdatetimeparameters. The datetime parsing logic is replaced with a function that only supports the most common ISO formats:%Y-%m-%dT%H:%M:%S.%f,%Y-%m-%dT%H:%M:%S,%Y-%m-%d, and is much more performant for such formats. The new code API offers a simple way to keep usingpython-dateutilfor those who desire doing so. - Fix erroneous assumption when parsing a request body declared as
bytes. When the declared requested input body isbytes, the framework has been corrected to not require URL-safe base64 encoded data, and to read the input body as-is. - Add support for defining
convertfunctions in customBoundValueclasses that are used to convert Python objects from parsed JSON into more specific classes. - Correct bug that prevented request body input to be mapped properly to a
listusing the default logic. - Upgrade
pytest-asyncioto the latest version. Fix #596. - Fix a Cython segmentation fault happening when the user defines an exception handler with a wrong signature (#592), or that contains a bug and causes exceptions itself. Replace the Application
exception_handlersdictionary with a user defined dictionary that validates values, and change a piece of code that causes a recursive error when an exception handler itself is buggy. - Add support for specifying the status code in view functions (#591).
- Fix
licensefield inpyproject.toml.