¿ä¼ú ÀåÀÌ ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- The Apache License 2.0
- °Ô½ÃÀÚ À̸§:
- Brian Waldon
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- https://github.com/bcwaldon/
¿ä¼ú ÀåÀÌ Å±×
¿ä¼ú ÀåÀÌ ¼³¸í
WarlockÀº JSON Schemas.how1À» »ç¿ëÇÏ¿© ÀÚü À¯È¿¼º °Ë»ç °´Ã¼¸¦ ÀÛ¼ºÇÏ´Â Python ¸ðµâÀÔ´Ï´Ù. ½ºÅ°¸¶ ¸¸µé±â >>> Schema = { 'À̸§': '±¹°¡', '¼Ó¼º': { ''String '},'abbreviation ': {'À¯Çü ':'¹®ÀÚ¿ '} }, 'Ãß°¡ ÇÁ·Î Àû°ø': °ÅÁþ,} 2. ¸ðµ¨ ¸¸µé±â >>> Import Warlock >>> ±¹°¡ = warlock.model_factory (½ºÅ°¸¶) 3. ¸ðµ¨À» »ç¿ëÇÏ¿© °´Ã¼ ¸¸µé±â >>> ½º¿þµ§ = ±¹°¡ (À̸§ = '½º¿þµ§', ¾à¾î = 'se') 4. °´Ã¼°¡ ÀÚ½ÅÀ» °ËÁõÇϵµ·ÏÇϽʽÿÀ! >>> Sweden.name = 5 ÃßÀû (°¡Àå ÃÖ±ÙÀÇ ÅëÈ ¸¶Áö¸·) : "", ÆÄÀÏ "warlock / core.py", __setattr__¿¡¼ __setattr__ ÀÎ»ó ¹«È¿È () WARLOCK. core.invalidoperation >>> sweden.overlord = 'bears'traceback (°¡Àå Ãֱ٠ȣÃâ ¸¶Áö¸·) : "", ÆÄÀÏ "warlock / core.py", line 53, __setattr__ ires ¹«È¿È () warlock.core.invalidoperation Á¦Ç°ÀÇ È¨ÆäÀÌÁö
¿ä¼ú ÀåÀÌ °ü·Ã ¼ÒÇÁÆ®¿þ¾î