python-warlock-help-1.3.3-2.oe2203sp2>  <@PT@7!.ܶujG7oduS:openeuler@compass-ci.com G7o Eg̃ź'Cϧҵ>6}=Еn6Vit9~H%,Ђ KIw9iJC;>p`k0Rm&s^7# rN,9lOᦏP;a\f!^Ĩ`^^'tw< |$8dpE|$܎ y)xBMD3ɈXXyڢ-(AߞP>cZZ&gKmm'auO턀 BJk})׫q)4c=s D要 7?d](c51f8ed2d3e473bcd89d7d94ff1b16ac9723065eb808f9582572ad1796c4ed3e9dc9d845ebe753aba1a16e2733c4305fd8371e2eD'W y]aA: >: E? 5d ( W   ' - 4 8  :  <  @  A  D H M R |    ( 78 @9 H: F G H I X Y $\ 8] <^ Kb [d [e `f cl et u v z      Cpython-warlock-help1.3.32.oe2203sp2Development documents and examples for warlock [![PyPI](https://img.shields.io/pypi/v/warlock.svg)][warlock] [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/warlock.svg)][warlock] [![PyPI - Downloads](https://img.shields.io/pypi/dw/warlock.svg)][pypistats] [![Build Status](https://travis-ci.org/bcwaldon/warlock.svg?branch=master)][ci-builds] [![Coverage Status](https://coveralls.io/repos/github/bcwaldon/warlock/badge.svg?branch=master)][coveralls] Warlock is [available on PyPI][warlock]: ```shell pip install warlock ``` 1) Create your schema ```python >>> schema = { 'name': 'Country', 'properties': { 'name': {'type': 'string'}, 'abbreviation': {'type': 'string'}, 'population': {'type': 'integer'}, }, 'additionalProperties': False, } ``` 2) Create a model ```python >>> import warlock >>> Country = warlock.model_factory(schema) ``` 3) Create an object using your model ```python >>> sweden = Country(name='Sweden', abbreviation='SE') ``` 4) Let the object validate itself ```python >>> sweden.name = 5 Traceback (most recent call last): File "", line 1, in File "warlock/core.py", line 53, in __setattr__ raise InvalidOperation(msg) warlock.core.InvalidOperation: Unable to set 'name' to '5' >>> sweden.overlord = 'Bears' Traceback (most recent call last): File "", line 1, in File "warlock/core.py", line 53, in __setattr__ raise InvalidOperation(msg) warlock.core.InvalidOperation: Unable to set 'overlord' to 'Bears' ``` 5) Generate a [JSON Patch document](http://tools.ietf.org/html/draft-ietf-appsawg-json-patch) to track changes ```python >>> sweden.population=9453000 >>> sweden.patch '[{"path": "/population", "value": 9453000, "op": "add"}]' ``` [warlock]: https://pypi.org/project/warlock/ [pip]: https://pip.pypa.io/en/stable/ [ci-builds]: https://travis-ci.org/bcwaldon/warlock [coveralls]: https://coveralls.io/github/bcwaldon/warlock?branch=master [pypistats]: https://pypistats.org/packages/warlockduS/dc-64g.compass-ciApache-2.0http://openeuler.orgUnspecifiedhttp://github.com/bcwaldon/warlocklinuxnoarchAduS0rootrootpython-warlock-1.3.3-2.oe2203sp2.src.rpmpython-warlock-helppython3-warlock-doc    rpmlib(CompressedFileNames)rpmlib(FileDigests)rpmlib(PayloadFilesHavePrefix)rpmlib(PayloadIsXz)3.0.4-14.6.0-14.0-15.2-14.17.0ch@_@xu_ping - 1.3.3-2Python_Bot - 1.3.3-1- change jsonschemema version to fix installed error- Package Spec generateddc-64g.compass-ci 16854106071.3.3-2.oe2203sp2python-warlock/usr/share/doc/-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection cpioxz2noarch-openEuler-linux-gnudirectory1a$Autf-84925b71aa96c6aa471e4348f4ffcb07c18bb15f6e222805d2bb05ffc570516e0b32e79dcbf35a8cf6b348fdcd3d11ca81307f0359417da3867ef49598c148308?`7zXZ !#, Y] b2u jӫ`(y/+D!+ YR9$| }YL57q  6W;Bb ̩.yܿ5k458gIY' YZ