PageRenderTime 65ms CodeModel.GetById 31ms RepoModel.GetById 0ms app.codeStats 0ms

/evernote-api-1.19/lib/python/evernote/edam/limits/constants.py

https://github.com/paul356/evernote-plugin-for-vim
Python | 200 lines | 103 code | 92 blank | 5 comment | 0 complexity | e763a5998ef4900f6c0d0a9e15698297 MD5 | raw file
  1. #
  2. # Autogenerated by Thrift
  3. #
  4. # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  5. #
  6. from thrift.Thrift import *
  7. from ttypes import *
  8. EDAM_ATTRIBUTE_LEN_MIN = 1
  9. EDAM_ATTRIBUTE_LEN_MAX = 4096
  10. EDAM_ATTRIBUTE_REGEX = "^[^\\p{Cc}\\p{Zl}\\p{Zp}]{1,4096}$"
  11. EDAM_ATTRIBUTE_LIST_MAX = 100
  12. EDAM_GUID_LEN_MIN = 36
  13. EDAM_GUID_LEN_MAX = 36
  14. EDAM_GUID_REGEX = "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
  15. EDAM_EMAIL_LEN_MIN = 6
  16. EDAM_EMAIL_LEN_MAX = 255
  17. EDAM_EMAIL_LOCAL_REGEX = "^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*$"
  18. EDAM_EMAIL_DOMAIN_REGEX = "^[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*\\.([A-Za-z]{2,})$"
  19. EDAM_EMAIL_REGEX = "^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*\\.([A-Za-z]{2,})$"
  20. EDAM_TIMEZONE_LEN_MIN = 1
  21. EDAM_TIMEZONE_LEN_MAX = 32
  22. EDAM_TIMEZONE_REGEX = "^([A-Za-z_-]+(/[A-Za-z_-]+)*)|(GMT(-|\\+)[0-9]{1,2}(:[0-9]{2})?)$"
  23. EDAM_MIME_LEN_MIN = 3
  24. EDAM_MIME_LEN_MAX = 255
  25. EDAM_MIME_REGEX = "^[A-Za-z]+/[A-Za-z0-9._+-]+$"
  26. EDAM_MIME_TYPE_GIF = "image/gif"
  27. EDAM_MIME_TYPE_JPEG = "image/jpeg"
  28. EDAM_MIME_TYPE_PNG = "image/png"
  29. EDAM_MIME_TYPE_WAV = "audio/wav"
  30. EDAM_MIME_TYPE_MP3 = "audio/mpeg"
  31. EDAM_MIME_TYPE_AMR = "audio/amr"
  32. EDAM_MIME_TYPE_INK = "application/vnd.evernote.ink"
  33. EDAM_MIME_TYPE_PDF = "application/pdf"
  34. EDAM_MIME_TYPE_DEFAULT = "application/octet-stream"
  35. EDAM_MIME_TYPES = set([
  36. "image/gif",
  37. "image/jpeg",
  38. "image/png",
  39. "audio/wav",
  40. "audio/mpeg",
  41. "audio/amr",
  42. "application/vnd.evernote.ink",
  43. "application/pdf",
  44. ])
  45. EDAM_COMMERCE_SERVICE_GOOGLE = "Google"
  46. EDAM_COMMERCE_SERVICE_PAYPAL = "Paypal"
  47. EDAM_COMMERCE_SERVICE_GIFT = "Gift"
  48. EDAM_COMMERCE_SERVICE_TRIALPAY = "TrialPay"
  49. EDAM_COMMERCE_SERVICE_TRIAL = "Trial"
  50. EDAM_COMMERCE_SERVICE_GROUP = "Group"
  51. EDAM_COMMERCE_SERVICE_CYBERSOURCE = "CYBERSRC"
  52. EDAM_COMMERCE_DEFAULT_CURRENCY_COUNTRY_CODE = "USD"
  53. EDAM_SEARCH_QUERY_LEN_MIN = 0
  54. EDAM_SEARCH_QUERY_LEN_MAX = 1024
  55. EDAM_SEARCH_QUERY_REGEX = "^[^\\p{Cc}\\p{Zl}\\p{Zp}]{0,1024}$"
  56. EDAM_HASH_LEN = 16
  57. EDAM_USER_USERNAME_LEN_MIN = 1
  58. EDAM_USER_USERNAME_LEN_MAX = 64
  59. EDAM_USER_USERNAME_REGEX = "^[a-z0-9]([a-z0-9_-]{0,62}[a-z0-9])?$"
  60. EDAM_USER_NAME_LEN_MIN = 1
  61. EDAM_USER_NAME_LEN_MAX = 255
  62. EDAM_USER_NAME_REGEX = "^[^\\p{Cc}\\p{Zl}\\p{Zp}]{1,255}$"
  63. EDAM_TAG_NAME_LEN_MIN = 1
  64. EDAM_TAG_NAME_LEN_MAX = 100
  65. EDAM_TAG_NAME_REGEX = "^[^,\\p{Cc}\\p{Z}]([^,\\p{Cc}\\p{Zl}\\p{Zp}]{0,98}[^,\\p{Cc}\\p{Z}])?$"
  66. EDAM_NOTE_TITLE_LEN_MIN = 1
  67. EDAM_NOTE_TITLE_LEN_MAX = 255
  68. EDAM_NOTE_TITLE_REGEX = "^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,253}[^\\p{Cc}\\p{Z}])?$"
  69. EDAM_NOTE_CONTENT_LEN_MIN = 0
  70. EDAM_NOTE_CONTENT_LEN_MAX = 5242880
  71. EDAM_NOTEBOOK_NAME_LEN_MIN = 1
  72. EDAM_NOTEBOOK_NAME_LEN_MAX = 100
  73. EDAM_NOTEBOOK_NAME_REGEX = "^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,98}[^\\p{Cc}\\p{Z}])?$"
  74. EDAM_NOTEBOOK_STACK_LEN_MIN = 1
  75. EDAM_NOTEBOOK_STACK_LEN_MAX = 100
  76. EDAM_NOTEBOOK_STACK_REGEX = "^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,98}[^\\p{Cc}\\p{Z}])?$"
  77. EDAM_PUBLISHING_URI_LEN_MIN = 1
  78. EDAM_PUBLISHING_URI_LEN_MAX = 255
  79. EDAM_PUBLISHING_URI_REGEX = "^[a-zA-Z0-9.~_+-]{1,255}$"
  80. EDAM_PUBLISHING_URI_PROHIBITED = set([
  81. "..",
  82. ])
  83. EDAM_PUBLISHING_DESCRIPTION_LEN_MIN = 1
  84. EDAM_PUBLISHING_DESCRIPTION_LEN_MAX = 200
  85. EDAM_PUBLISHING_DESCRIPTION_REGEX = "^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,198}[^\\p{Cc}\\p{Z}])?$"
  86. EDAM_SAVED_SEARCH_NAME_LEN_MIN = 1
  87. EDAM_SAVED_SEARCH_NAME_LEN_MAX = 100
  88. EDAM_SAVED_SEARCH_NAME_REGEX = "^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,98}[^\\p{Cc}\\p{Z}])?$"
  89. EDAM_USER_PASSWORD_LEN_MIN = 6
  90. EDAM_USER_PASSWORD_LEN_MAX = 64
  91. EDAM_USER_PASSWORD_REGEX = "^[A-Za-z0-9!#$%&'()*+,./:;<=>?@^_`{|}~\\[\\]\\\\-]{6,64}$"
  92. EDAM_NOTE_TAGS_MAX = 100
  93. EDAM_NOTE_RESOURCES_MAX = 1000
  94. EDAM_USER_TAGS_MAX = 100000
  95. EDAM_USER_SAVED_SEARCHES_MAX = 100
  96. EDAM_USER_NOTES_MAX = 100000
  97. EDAM_USER_NOTEBOOKS_MAX = 250
  98. EDAM_USER_RECENT_MAILED_ADDRESSES_MAX = 10
  99. EDAM_USER_MAIL_LIMIT_DAILY_FREE = 50
  100. EDAM_USER_MAIL_LIMIT_DAILY_PREMIUM = 200
  101. EDAM_USER_UPLOAD_LIMIT_FREE = 62914560
  102. EDAM_USER_UPLOAD_LIMIT_PREMIUM = 1073741824
  103. EDAM_NOTE_SIZE_MAX_FREE = 26214400
  104. EDAM_NOTE_SIZE_MAX_PREMIUM = 52428800
  105. EDAM_RESOURCE_SIZE_MAX_FREE = 26214400
  106. EDAM_RESOURCE_SIZE_MAX_PREMIUM = 52428800
  107. EDAM_USER_LINKED_NOTEBOOK_MAX = 100
  108. EDAM_NOTEBOOK_SHARED_NOTEBOOK_MAX = 250