Pykwalify

Latest version: v1.7.0

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

Scan your dependencies

Page 1 of 4

15.01

- Fixed a bug in unique validation for mapping keys [See: PR-12](Gonditeniz)

14.12

- Fixed broken regex matching on map keys.
- Source files with file ending `.yml` can now be loaded
- Added aliases to some directives to make it easier/faster to write
- `sequence` --> `seq`
- `mapping` --> `map`
- `required` --> `req`
- `regex` --> `re`
- Reworked all testing files to reduce number of files

14.08

- First version to be uploaded to pypi
- Keyword 'range' can now be applied to map & seq types.
- Added many more test files.
- Keyword 'length' was removed because 'range' can handle all cases now.
- Keyword 'range' now correctly checks the internal keys to be integers
- Major update to testing and increased coverage.

14.06.1

- New feature "partial schema". Define a small schema with a ID that can be reused at other places in the schema. See readme for details.
- New directive "include" that is used to include a partial schema at the specefied location.
- Cli and Core() now can handle multiple schema files.
- Directive "pattern" can no longer be used with map to validate all keys against that regex. Use "regex;" inside "mapping:"
- 'none' can now be used as a type
- Many more tests added

14.06

- New version scheme [YY.MM(.Minor-Release)]
- Added TravisCI support
- Update runtime dependency docopt to 0.6.1
- Update runtime dependency pyyaml to 3.11
- Huge refactoring of logging and how it works. Logging config files is now removed and everything is alot simpler
- Cleanup some checks that docopt now handles
- New keyword "regex;<regex-pattern>" that can be used as a key in map to give more flexibility when validating map keys
- New keyword "matching-rule" that can be used to control how keys should be matched
- Added python 3.4 & python 2.7 support (See TravisCI tests for status)
- Dropped python 3.1 support
- Alot of refactoring of testing code.
- Tests should now be runned with "nosetests" and not "python runtests.py"
- Refactored alot of exceptions to be more specific (SchemaError and RuleError for example) and not a generic Exception
- Parsed rules is now stored correctly in Core() so it can be tested from the outside
- And alot of other minor changes and improvments

1.6.1

New keywords:

- Added support for keyword *nullable*. It is now possible to allow for a key not to be empty, when *required* keyword is not used.
- Added support for keyword *class*. It will not cause any validation errors, but serves to make kwalify schemas compatible that uses that keywork.

Bug fixes:

- Improved compatibility with unicodes to validate as strings.

Changed behaviour:

- Propergate json and yaml loading errors when used from the cli to the user for easier debugging.

General changes:

- Allow ruamel.yaml versions up to 0.16
- License is now bundled with the built release.

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.