Wsgiservice

Latest version: v1.0.0

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

Scan your dependencies

Page 2 of 2

0.2.5

- Resource: New option `DECODE_PARAMS` that can be used to turn off
URL-decoding of parameters.

0.2.4

- Resource: Make validation more robust for the case when value is a
unicode string.
- Resource: The decorator `validate` accepts a callable `convert` used to
convert the input string values to the data format required by the
service.
- Status: Convert the Location argument for `raise_201` and others to a
string.
- Status: Correctly handle generation of the Location header when the
current request contains an extension such as .json or .xml.
- License has been clarified and is BSD.

0.2.3

- Remove Content-Type header when there is no content in the response.
- xmlserializer: Move XML serialisation into a separate module.
- Output an error message in the body of 404 responses.
- Allow specifying of the encoding to be sent with the Content Type
reponse header.
- Make compatible with WebOb 0.9.7

0.2.2

- Resource: Fix XML output for unicode strings.

0.2.1

- Routing: Use extensions defined by resource in EXTENSION_MAP dictionary
instead of the hardcoded list of '.xml' and '.json'.
- Resource: Change EXTENSION_MAP to a list instead of a dictionary, so we
can rely on the order of entries. Breaks backwards-compatibility for
resources with a custom EXTENSION_MAP.
- Resource: Remove hard-coded setting of Content-Type and Content-MD5
response headers. Move into a new generic method set_response_headers
which in turn calls the two methods set_response_content_type and
set_response_content_md5. This allows for easier overwriting in
subclasses.
- Resource: Output valid XML when serializing lists. Each child is now
<child order="N"> instead of just <N> (where N is the array index).
- Help resource: Sort the resources by name, mark parameters with
validation rules as mandatory.
- Documentation: Add a lot of additional documentation. Document the
current state of HTTP implementation.

0.2

- Initial packaged release of WsgiService.

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.