í«îÛpython-warlock-help-1.3.3-1.oe2003sp4Ž­è¤>” Ð Ðùè<ì@ïPðT@‰Í7!.ܶ›uj¤Œï·Gû7¼oe$&openeuler@compass-ci.com ·Gû7¼oÊ þ;'{Y6‹”|+¾oÚòb˜(3Æ< Š;‰:ÒÁc­šÜŒÌ[\—žÔ†‹§Ih%zà ÞÕZå|t»[?œ°ü í ‹FRâ¼#õ6! ù4oLjïû“š!–uzéöèÏ+R-¡XÛ}D(ô°ÿ³Z,Œ<^?óýy¦/ë™9±³_¯a_ç#3n£E­âŽt„å£Ø“ÀŒ=ÿSD³õÑÓF/~l¢²«¦5¯lé¦zÜÛ:+¬Çc$ÛùšÿnÈú­zóèX¼Ca;Ï8SÛnHŒÅ¿m¬æüpC«á¼"¶pô¼gñ0²rwÀïiÎ7¹ªí¯8ïoÇŽ {zд(›2Ÿx{HSS È:ˆ]Ù¹9·Ä¡®–³^êPTdH&Øýí›SƒØÿÿÿ€Ž­è9 €? pdèéêì (í Wî¼ïÀñÔöØ÷ãø øü ý 'þ - 4 8  :  <  @  A  D H M R | € ¨ ¸ ( 78 @9 D: jF ƒG  H ¤I ¨X ¬Y ´\ È] Ì^ Ûb ëd Öe Ûf Þl àt üu v z “ Æ $ä *å lCpython-warlock-help1.3.31.oe2003sp4Development 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/warlocke$$(dc-64g.compass-ciApache-2.0http://openeuler.orgUnspecifiedhttp://github.com/bcwaldon/warlocklinuxnoarchAíe$$)rootrootpython-warlock-1.3.3-1.oe2003sp4.src.rpmÿÿÿÿpython-warlock-helppython3-warlock-doc    rpmlib(CompressedFileNames)rpmlib(FileDigests)rpmlib(PayloadFilesHavePrefix)rpmlib(PayloadIsXz)3.0.4-14.6.0-14.0-15.2-14.15.1_»¤@Python_Bot - Package Spec generateddc-64g.compass-ci 16968673681.3.3-1.oe2003sp4python-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 -fasynchronous-unwind-tables -fstack-clash-protectioncpioxz2noarch-openEuler-linux-gnudirectory>í$¥Â{Í·T@Ž¯'òutf-80c8f71ddd5c8722e371ad781720b10bf61d1af14cdcba7b5a27cb2add589e0cf?ÿÿüpý7zXZ áû ¡!#¸‡,à X] Ýb2ùu jíÓ«Ò`(y/Ù#Ø@k[LݺѮϾÅÃ:x J–×+£Œä¹X_‡Q6°–1ƒ\ü”ï%[XŸ8¨<ŠRk'¼…"_O`‚•;^„ê{{@iRÑ òš4òÛC |I×¢½óÚ§FŒŒ#ôL3¶éß YZ