Typedjsonrpc

Latest version: v0.4.0

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

Scan your dependencies

0.4.0

This update includes a few new features around debugging.

Features
- Added automatic logging of user-created errors thrown during runtime
- Added HTTP status codes to typedjsonrpc.server.Server based on JSON-RPC protocol-based errors
- Added flag to typedjsonrpc.registry.Registry for the type system to allow integers when a field accepts floats

0.3.0

This is a small update to better handle JSON encoding errors.

Bugfixes

Any exceptions thrown by a custom json.JSONEncoder will be reencoded after the exception has been thrown. JSON-RPC will not return a response if the custom encoder cannot encode the exception.

0.2.0

This is a small update from the last release based on usage.

Features
- Added ability to access the current request in method call
- Allowed more flexibility in JSON serialization

Bugfixes
- Exceptions which are not JSON-serializable are now converted to strings using repr() rather than failing serialization

Backwards compatibility breaks
- typedjsonrpc.registry.Registry.json_encoder and typedjsonrpc.registry.Registry.json_decoder are now instances rather than class objects

0.1.0

typedjsonrpc 0.1.0 is the first release. Since this is the first release, we don't have any specific release notes outside of the README.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.