pyproject.toml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. [project]
  2. name = "dify-api"
  3. requires-python = ">=3.11,<3.13"
  4. dynamic = [ "dependencies" ]
  5. [build-system]
  6. requires = ["poetry-core>=2.0.0"]
  7. build-backend = "poetry.core.masonry.api"
  8. [tool.poetry]
  9. package-mode = false
  10. ############################################################
  11. # [ Main ] Dependency group
  12. ############################################################
  13. [tool.poetry.dependencies]
  14. authlib = "1.3.1"
  15. azure-identity = "1.16.1"
  16. beautifulsoup4 = "4.12.2"
  17. boto3 = "1.35.99"
  18. bs4 = "~0.0.1"
  19. cachetools = "~5.3.0"
  20. celery = "~5.4.0"
  21. chardet = "~5.1.0"
  22. flask = "~3.1.0"
  23. flask-compress = "~1.17"
  24. flask-cors = "~4.0.0"
  25. flask-login = "~0.6.3"
  26. flask-migrate = "~4.0.7"
  27. flask-restful = "~0.3.10"
  28. flask-sqlalchemy = "~3.1.1"
  29. gevent = "~24.11.1"
  30. gmpy2 = "~2.2.1"
  31. google-api-core = "2.18.0"
  32. google-api-python-client = "2.90.0"
  33. google-auth = "2.29.0"
  34. google-auth-httplib2 = "0.2.0"
  35. google-cloud-aiplatform = "1.49.0"
  36. googleapis-common-protos = "1.63.0"
  37. gunicorn = "~23.0.0"
  38. httpx = { version = "~0.27.0", extras = ["socks"] }
  39. jieba = "0.42.1"
  40. langfuse = "~2.51.3"
  41. langsmith = "~0.1.77"
  42. mailchimp-transactional = "~1.0.50"
  43. markdown = "~3.5.1"
  44. numpy = "~1.26.4"
  45. oci = "~2.135.1"
  46. openai = "~1.61.0"
  47. openpyxl = "~3.1.5"
  48. opik = "~1.3.4"
  49. pandas = { version = "~2.2.2", extras = ["performance", "excel", "output-formatting"] }
  50. pandas-stubs = "~2.2.3.241009"
  51. psycogreen = "~1.0.2"
  52. psycopg2-binary = "~2.9.6"
  53. pycryptodome = "3.19.1"
  54. pydantic = "~2.9.2"
  55. pydantic-settings = "~2.6.0"
  56. pydantic_extra_types = "~2.9.0"
  57. pyjwt = "~2.8.0"
  58. pypdfium2 = "~4.30.0"
  59. python = ">=3.11,<3.13"
  60. python-docx = "~1.1.0"
  61. python-dotenv = "1.0.1"
  62. pyyaml = "~6.0.1"
  63. readabilipy = "0.2.0"
  64. redis = { version = "~5.0.3", extras = ["hiredis"] }
  65. resend = "~0.7.0"
  66. sentry-sdk = { version = "~1.44.1", extras = ["flask"] }
  67. sqlalchemy = "~2.0.29"
  68. starlette = "0.41.0"
  69. tiktoken = "~0.8.0"
  70. tokenizers = "~0.15.0"
  71. transformers = "~4.35.0"
  72. unstructured = { version = "~0.16.1", extras = ["docx", "epub", "md", "msg", "ppt", "pptx"] }
  73. validators = "0.21.0"
  74. yarl = "~1.18.3"
  75. # Before adding new dependency, consider place it in alphabet order (a-z) and suitable group.
  76. ############################################################
  77. # [ Indirect ] dependency group
  78. # Related transparent dependencies with pinned version
  79. # required by main implementations
  80. ############################################################
  81. [tool.poetry.group.indirect.dependencies]
  82. kaleido = "0.2.1"
  83. rank-bm25 = "~0.2.2"
  84. safetensors = "~0.4.3"
  85. ############################################################
  86. # [ Tools ] dependency group
  87. ############################################################
  88. [tool.poetry.group.tools.dependencies]
  89. cloudscraper = "1.2.71"
  90. nltk = "3.9.1"
  91. ############################################################
  92. # [ Storage ] dependency group
  93. # Required for storage clients
  94. ############################################################
  95. [tool.poetry.group.storage.dependencies]
  96. azure-storage-blob = "12.13.0"
  97. bce-python-sdk = "~0.9.23"
  98. cos-python-sdk-v5 = "1.9.30"
  99. esdk-obs-python = "3.24.6.1"
  100. google-cloud-storage = "2.16.0"
  101. opendal = "~0.45.16"
  102. oss2 = "2.18.5"
  103. supabase = "~2.8.1"
  104. tos = "~2.7.1"
  105. ############################################################
  106. # [ VDB ] dependency group
  107. # Required by vector store clients
  108. ############################################################
  109. [tool.poetry.group.vdb.dependencies]
  110. alibabacloud_gpdb20160503 = "~3.8.0"
  111. alibabacloud_tea_openapi = "~0.3.9"
  112. chromadb = "0.5.20"
  113. clickhouse-connect = "~0.7.16"
  114. couchbase = "~4.3.0"
  115. elasticsearch = "8.14.0"
  116. opensearch-py = "2.4.0"
  117. oracledb = "~2.2.1"
  118. pgvecto-rs = { version = "~0.2.1", extras = ['sqlalchemy'] }
  119. pgvector = "0.2.5"
  120. pymilvus = "~2.5.0"
  121. pymochow = "1.3.1"
  122. pyobvector = "~0.1.6"
  123. qdrant-client = "1.7.3"
  124. tcvectordb = "1.3.2"
  125. tidb-vector = "0.0.9"
  126. upstash-vector = "0.6.0"
  127. volcengine-compat = "~1.0.156"
  128. weaviate-client = "~3.21.0"
  129. xinference-client = "~1.2.2"
  130. ############################################################
  131. # [ Dev ] dependency group
  132. # Required for development and running tests
  133. ############################################################
  134. [tool.poetry.group.dev]
  135. optional = true
  136. [tool.poetry.group.dev.dependencies]
  137. coverage = "~7.2.4"
  138. faker = "~32.1.0"
  139. mypy = "~1.13.0"
  140. pytest = "~8.3.2"
  141. pytest-benchmark = "~4.0.0"
  142. pytest-env = "~1.1.3"
  143. pytest-mock = "~3.14.0"
  144. types-beautifulsoup4 = "~4.12.0.20241020"
  145. types-deprecated = "~1.2.15.20250304"
  146. types-flask-cors = "~5.0.0.20240902"
  147. types-flask-migrate = "~4.1.0.20250112"
  148. types-html5lib = "~1.1.11.20241018"
  149. types-openpyxl = "~3.1.5.20241225"
  150. types-protobuf = "~5.29.1.20241207"
  151. types-psutil = "~6.1.0.20241221"
  152. types-psycopg2 = "~2.9.21.20250121"
  153. types-python-dateutil = "~2.9.0.20241206"
  154. types-pytz = "~2024.2.0.20241221"
  155. types-pyyaml = "~6.0.12.20241230"
  156. types-regex = "~2024.11.6.20241221"
  157. types-requests = "~2.32.0.20241016"
  158. types-six = "~1.17.0.20241205"
  159. types-tqdm = "~4.67.0.20241221"
  160. ############################################################
  161. # [ Lint ] dependency group
  162. # Required for code style linting
  163. ############################################################
  164. [tool.poetry.group.lint]
  165. optional = true
  166. [tool.poetry.group.lint.dependencies]
  167. dotenv-linter = "~0.5.0"
  168. ruff = "~0.11.0"