pyvalidate.

Python ¸Þ¼­µåÀÇ ¸Å°³ º¯¼ö À¯È¿¼º °Ë»ç ¶óÀ̺귯¸®, Pythonic Decorator
Áö±Ý ´Ù¿î·Îµå

pyvalidate. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Freeware
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Vahid Mardani
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://pylover.dobisel.com/

pyvalidate. ű×


pyvalidate. ¼³¸í

PyValidate´ÂÀÌ Àμö¸¦ »ç¿ëÇÏ¿© È£Ãâ °¡´ÉÇÑ È£ÃâÀÇ ÀÔ·Â ¸Å°³ º¯¼ö¸¦ È®ÀÎÇÏ´Â ÆÄÀ̽㠸ðµâÀÔ´Ï´Ù. param : arg_types : Çʼö ÀμöÀÇ À¯Çü ¸ñ·Ï, orderParamÀÇ À¯Çü ¹× °è¼ö : DENY_MATCH ¹®ÀÚ¿­, Á¤±Ô½Ä ÆÐÅÏ, Àμö°¡ ÆÐÅÏ°ú ÀÏÄ¡ÇÏ´Â °æ¿ì, ¿¹¿Ü RAISESPARAM : ¿ä±¸ »çÇ× : MandatoryParamÀ» È®ÀÎÇÏ´Â ÇÊµå ¸ñ·Ï : Deny : String, Regex ÆÐÅÏ, ÆÐÅÏ°ú ÀÏÄ¡ÇÏ´Â °æ¿ì, Exception Raisesparam : Deny_Except : String, DenyParam¿¡¼­ Çʵå Á¦¿Ü¿¡ ´ëÇÑ Á¤±Ô½Ä ÆÐÅÏ : À¯Çü : À̸§ ¹× °ª : Çü½ÄÀ» È®ÀÎÇϽʽÿÀ. exceptionParam : °ªÀ» È®ÀÎÇϽʽÿÀ. exceptionparam : °ª : À̸§ ¹× °ª : mismatchparam : ¹«½Ã : string, string, filterparam¿¡ ¸Å°³ º¯¼ö ÆÐÅÏ : ±âº»°ª : ±âº»°ª : key of key : name and value : imany : MandatoryException : MandatoryException : Çʼö ÀԷ¿¡ ÇÊ¿äÇÑ °æ¿ì argumentException : Àμö°¡ À¯È¿ÇÏÁö ¾ÊÀº °æ¿ì ª°Å³ª ºÒÀÏÄ¡ À¯Çü. ¶óÀ̽º : Denia LEXCEPTION : DENY LISKRAISE¿¡¼­ PARAMÀ» ãÀº °æ¿ì : parametErtyPeException : ¸Å°³ º¯¼ö À¯Çü Invalidraise : ParameterValueException : °ªÀÌ ¿Ã¹Ù¸£Áö ¾ÊÀº °æ¿ì : pyvalidate °¡Á® ¿À±â À¯È¿¼º °ËÁõ : validationException @ validate (arg_types = , deny_match = [xxx) ',' 'ÀüÈ­', Deny = 'query', deny_except = 'query2', types = {ÀüÈ­ ': str,'address ': str,'age ': int}, °ª = {ÀüÈ­ ':'^ \ d * $ '}, ignore ='³ªÀÌ ', defaults = {'ÁÖ¼Ò ': Nothing'}) def add_person (Á÷·Ä, À̸§, lastname, phone = none, ÁÖ¼Ò = ¾øÀ½, ³ªÀÌ = ¾øÀ½, ** kW) : '»ç¶÷ Ãß°¡ "% s : % s % s : % s"serial : % s : % s ÀüÈ­ : % s : % s ÁÖ¼Ò : % s : % s ¿¬·É : % s S : % s '% (firstname, type (firstname), lastname, type (lastname), ÀÏ·ÃÀÇ À¯Çü (Á÷·Ä), ÀüÈ­, À¯Çü (ÀüÈ­), ÁÖ¼Ò, ÁÖ¼Ò, À¯Çü (ÁÖ¼Ò), ³ªÀÌ, À¯Çü (³ªÀÌ)) def test (* args, ** kwargs) : ½Ãµµ : add_person (* args, ** kwargs, * args, ** kwargs) print ex.messagef main () : test (12, "vahid", mardani ", phone ="09122451075) ", ÁÖ¼Ò ="Tehran ") Å×½ºÆ® ("12 ","Vahid ","Mardani ", ÀüÈ­ = '+ 9122451075', ÁÖ¼Ò ="Tehran ") Å×½ºÆ® ("12 ","vahid ","mardani ", ÀüÈ­ = '1') Å×½ºÆ® ("12 ","Vahid ","Mardani ", ÀüÈ­ = 'tiktik') Å×½ºÆ® ( "12", "xxx", "mardani", ÀüÈ­ = '') Å×½ºÆ® ( "12", "", "mardani",) Å×½ºÆ® ( "12", "" "Mardani" , ÀüÈ­ = '1', Query = '123') Å×½ºÆ® ( "12", ""mardani ", phone = '1', query2 = '123') Å×½ºÆ® ("12 "," "mardani" , ÀüÈ­ = '1', ³ªÀÌ = '123') __name__ == '__main__': main () Á¦Ç°ÀÇ È¨ÆäÀÌÁö


pyvalidate. °ü·Ã ¼ÒÇÁÆ®¿þ¾î

PY-TERY.

¼öÇÐ ºÐ¾ß¿¡¼­ ¹«ÀÛÀ§ °Ë»ç¸¦ ¸¸µå´Â ±³»ç¸¦ µ½´Â ÇÁ·ÎÁ§Æ® ...

84

´Ù¿î·Îµå