- Don't catch
AttributeErrorandKeyErrorforMethodField
Unclaimed project
Are you a maintainer of serpy? Claim this project to take control of your public changelog and roadmap.
Changelog
ridiculously fast object serialization
Last updated about 6 years ago
AttributeError and KeyError for MethodField| | required=True | required=False |
| --- | --- | --- |
| data = {'value': 1} | {'value': 1} | {'value': 1} |
| data = {'value': None} | {'value': None} | {'value': None} |
| data = {} | KeyError('value',) | {} |
required=False, None values will now be dropped from the outputMethodFields with required=True will trigger an exception when None value is returnedlabel parameter to Field to be able to specify the output labelAPI changes:
obj to instanceSerializer now takes context kwarg and ignores it for Django REST Framework compatSerializer now takes data kwarg and errors for Django REST Framework compatA feature-rich command-line audio/video downloader
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Python tool for converting files and office documents to Markdown.
:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.