schematics
schematics copied to clipboard
Python Data Structures for Humans™.
I was using the wrong Type, but still HashType raises an error on to_native(), because it expects a Class attribute LENGTH. This works for SHA and the derived hashtypes because...
I copied a simple code from https://gist.github.com/voidfiles/5c70471450ee476796c7, to extract a JSON schema for Swagger. It turned out that the code does not run properly. SO, I did some debugging and...
Two things: * Add `long_description`: https://pypi.org/project/schematics/ says only "The author of this package has not provided a project description". Instead, it's common to put the README contents in the `long_description`...
Hi gang! It's been a while! Python 2 is dead and Python 3 is the present. This PR removes Python 2 compatibility and starts adopting Python 3 features. It: -...
As a developer I want the ability to avoid generating the list of choices for a type during class definition (which is usually at module scope) as doing so for...
Enable to use `Enum._missing_` classmethod overriding. This method is available after Python3.6. https://docs.python.org/3.6/library/enum.html#supported-sunder-names To enable `_missing_` override, use `Enum(value)` instead of checking each value by for-loop.
(preface) Hi o/ not sure if you're looking for PRs in this category of work but I saw https://github.com/schematics/schematics/issues/571 and it was annoying me in my builds, so I thought...
If you call `Model.import_dict()` with a dictionary that is created by some other part of your program, it might be empty, but the `import_dict` method should still work the same...
The related pr: https://github.com/schematics/schematics/pull/550