Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/validators/__init__.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

22 statements  

1"""Validate Anything!""" 

2 

3# local 

4from .between import between 

5from .card import amex, card_number, diners, discover, jcb, mastercard, unionpay, visa 

6from .country import calling_code, country_code, currency 

7from .cron import cron 

8from .crypto_addresses import bsc_address, btc_address, eth_address, trx_address 

9from .domain import domain 

10from .email import email 

11from .encoding import base16, base32, base58, base64 

12from .finance import cusip, isin, sedol 

13from .hashes import md5, sha1, sha224, sha256, sha384, sha512 

14from .hostname import hostname 

15from .i18n import ( 

16 es_cif, 

17 es_doi, 

18 es_nie, 

19 es_nif, 

20 fi_business_id, 

21 fi_ssn, 

22 fr_department, 

23 fr_ssn, 

24 ind_aadhar, 

25 ind_pan, 

26) 

27from .iban import iban 

28from .ip_address import ipv4, ipv6 

29from .length import length 

30from .mac_address import mac_address 

31from .slug import slug 

32from .url import url 

33from .utils import ValidationError, validator 

34from .uuid import uuid 

35 

36__all__ = ( 

37 # ... 

38 "between", 

39 # crypto_addresses 

40 "bsc_address", 

41 "btc_address", 

42 "eth_address", 

43 "trx_address", 

44 # cards 

45 "amex", 

46 "card_number", 

47 "diners", 

48 "discover", 

49 "jcb", 

50 "mastercard", 

51 "visa", 

52 "unionpay", 

53 # country 

54 "calling_code", 

55 "country_code", 

56 "currency", 

57 # ... 

58 "cron", 

59 # ... 

60 "domain", 

61 # ... 

62 "email", 

63 # encodings 

64 "base16", 

65 "base32", 

66 "base58", 

67 "base64", 

68 # finance 

69 "cusip", 

70 "isin", 

71 "sedol", 

72 # hashes 

73 "md5", 

74 "sha1", 

75 "sha224", 

76 "sha256", 

77 "sha384", 

78 "sha512", 

79 # ... 

80 "hostname", 

81 # i18n 

82 "es_cif", 

83 "es_doi", 

84 "es_nie", 

85 "es_nif", 

86 "fi_business_id", 

87 "fi_ssn", 

88 "fr_department", 

89 "fr_ssn", 

90 "ind_aadhar", 

91 "ind_pan", 

92 # ... 

93 "iban", 

94 # ip_addresses 

95 "ipv4", 

96 "ipv6", 

97 # ... 

98 "length", 

99 # ... 

100 "mac_address", 

101 # ... 

102 "slug", 

103 # ... 

104 "url", 

105 # ... 

106 "uuid", 

107 # utils 

108 "ValidationError", 

109 "validator", 

110) 

111 

112__version__ = "0.34.0"