pyproject.toml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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. anthropic = "~0.23.1"
  15. authlib = "1.3.1"
  16. azure-ai-inference = "~1.0.0b8"
  17. azure-ai-ml = "~1.20.0"
  18. azure-identity = "1.16.1"
  19. beautifulsoup4 = "4.12.2"
  20. boto3 = "1.36.12"
  21. bs4 = "~0.0.1"
  22. cachetools = "~5.3.0"
  23. celery = "~5.4.0"
  24. chardet = "~5.1.0"
  25. cohere = "~5.2.4"
  26. dashscope = { version = "~1.17.0", extras = ["tokenizer"] }
  27. fal-client = "0.5.6"
  28. flask = "~3.1.0"
  29. flask-compress = "~1.17"
  30. flask-cors = "~4.0.0"
  31. flask-login = "~0.6.3"
  32. flask-migrate = "~4.0.7"
  33. flask-restful = "~0.3.10"
  34. flask-sqlalchemy = "~3.1.1"
  35. gevent = "~24.11.1"
  36. gmpy2 = "~2.2.1"
  37. google-ai-generativelanguage = "0.6.9"
  38. google-api-core = "2.18.0"
  39. google-api-python-client = "2.90.0"
  40. google-auth = "2.29.0"
  41. google-auth-httplib2 = "0.2.0"
  42. google-cloud-aiplatform = "1.49.0"
  43. google-generativeai = "0.8.1"
  44. googleapis-common-protos = "1.63.0"
  45. gunicorn = "~23.0.0"
  46. httpx = { version = "~0.27.0", extras = ["socks"] }
  47. huggingface-hub = "~0.16.4"
  48. jieba = "0.42.1"
  49. langfuse = "~2.51.3"
  50. langsmith = "~0.1.77"
  51. mailchimp-transactional = "~1.0.50"
  52. markdown = "~3.5.1"
  53. nomic = "~3.1.2"
  54. novita-client = "~0.5.7"
  55. numpy = "~1.26.4"
  56. oci = "~2.135.1"
  57. openai = "~1.61.0"
  58. openpyxl = "~3.1.5"
  59. opik = "~1.3.4"
  60. pandas = { version = "~2.2.2", extras = ["performance", "excel"] }
  61. pandas-stubs = "~2.2.3.241009"
  62. psycogreen = "~1.0.2"
  63. psycopg2-binary = "~2.9.6"
  64. pycryptodome = "3.19.1"
  65. pydantic = "~2.9.2"
  66. pydantic-settings = "~2.6.0"
  67. pydantic_extra_types = "~2.9.0"
  68. pyjwt = "~2.8.0"
  69. pypdfium2 = "~4.30.0"
  70. python = ">=3.11,<3.13"
  71. python-docx = "~1.1.0"
  72. python-dotenv = "1.0.1"
  73. pyyaml = "~6.0.1"
  74. readabilipy = "0.2.0"
  75. redis = { version = "~5.0.3", extras = ["hiredis"] }
  76. replicate = "~0.22.0"
  77. resend = "~0.7.0"
  78. sagemaker = "~2.231.0"
  79. scikit-learn = "~1.5.1"
  80. sentry-sdk = { version = "~1.44.1", extras = ["flask"] }
  81. sqlalchemy = "~2.0.29"
  82. starlette = "0.41.0"
  83. tencentcloud-sdk-python-hunyuan = "~3.0.1294"
  84. tiktoken = "~0.8.0"
  85. tokenizers = "~0.15.0"
  86. transformers = "~4.35.0"
  87. unstructured = { version = "~0.16.1", extras = ["docx", "epub", "md", "msg", "ppt", "pptx"] }
  88. validators = "0.21.0"
  89. volcengine-python-sdk = {extras = ["ark"], version = "~1.0.98"}
  90. websocket-client = "~1.7.0"
  91. xinference-client = "0.15.2"
  92. yarl = "~1.18.3"
  93. youtube-transcript-api = "~0.6.2"
  94. zhipuai = "~2.1.5"
  95. # Before adding new dependency, consider place it in alphabet order (a-z) and suitable group.
  96. ############################################################
  97. # [ Indirect ] dependency group
  98. # Related transparent dependencies with pinned version
  99. # required by main implementations
  100. ############################################################
  101. [tool.poetry.group.indirect.dependencies]
  102. kaleido = "0.2.1"
  103. rank-bm25 = "~0.2.2"
  104. safetensors = "~0.4.3"
  105. ############################################################
  106. # [ Tools ] dependency group
  107. ############################################################
  108. [tool.poetry.group.tools.dependencies]
  109. arxiv = "2.1.0"
  110. cloudscraper = "1.2.71"
  111. duckduckgo-search = "~6.3.0"
  112. jsonpath-ng = "1.6.1"
  113. matplotlib = "~3.8.2"
  114. mplfonts = "~0.0.8"
  115. newspaper3k = "0.2.8"
  116. nltk = "3.9.1"
  117. numexpr = "~2.9.0"
  118. pydub = "~0.25.1"
  119. qrcode = "~7.4.2"
  120. twilio = "~9.0.4"
  121. vanna = { version = "0.7.5", extras = ["postgres", "mysql", "clickhouse", "duckdb", "oracle"] }
  122. wikipedia = "1.4.0"
  123. yfinance = "~0.2.40"
  124. ############################################################
  125. # [ Storage ] dependency group
  126. # Required for storage clients
  127. ############################################################
  128. [tool.poetry.group.storage.dependencies]
  129. azure-storage-blob = "12.13.0"
  130. bce-python-sdk = "~0.9.23"
  131. cos-python-sdk-v5 = "1.9.30"
  132. esdk-obs-python = "3.24.6.1"
  133. google-cloud-storage = "2.16.0"
  134. opendal = "~0.45.12"
  135. oss2 = "2.18.5"
  136. supabase = "~2.8.1"
  137. tos = "~2.7.1"
  138. ############################################################
  139. # [ VDB ] dependency group
  140. # Required by vector store clients
  141. ############################################################
  142. [tool.poetry.group.vdb.dependencies]
  143. alibabacloud_gpdb20160503 = "~3.8.0"
  144. alibabacloud_tea_openapi = "~0.3.9"
  145. chromadb = "0.5.20"
  146. clickhouse-connect = "~0.7.16"
  147. couchbase = "~4.3.0"
  148. elasticsearch = "8.14.0"
  149. opensearch-py = "2.4.0"
  150. oracledb = "~2.2.1"
  151. pgvecto-rs = { version = "~0.2.1", extras = ['sqlalchemy'] }
  152. pgvector = "0.2.5"
  153. pymilvus = "~2.5.0"
  154. pymochow = "1.3.1"
  155. pyobvector = "~0.1.6"
  156. qdrant-client = "1.7.3"
  157. tcvectordb = "1.3.2"
  158. tidb-vector = "0.0.9"
  159. upstash-vector = "0.6.0"
  160. volcengine-compat = "~1.0.156"
  161. weaviate-client = "~3.21.0"
  162. ############################################################
  163. # [ Dev ] dependency group
  164. # Required for development and running tests
  165. ############################################################
  166. [tool.poetry.group.dev]
  167. optional = true
  168. [tool.poetry.group.dev.dependencies]
  169. coverage = "~7.2.4"
  170. faker = "~32.1.0"
  171. mypy = "~1.13.0"
  172. pytest = "~8.3.2"
  173. pytest-benchmark = "~4.0.0"
  174. pytest-env = "~1.1.3"
  175. pytest-mock = "~3.14.0"
  176. types-beautifulsoup4 = "~4.12.0.20241020"
  177. types-flask-cors = "~5.0.0.20240902"
  178. types-flask-migrate = "~4.1.0.20250112"
  179. types-html5lib = "~1.1.11.20241018"
  180. types-openpyxl = "~3.1.5.20241225"
  181. types-protobuf = "~5.29.1.20241207"
  182. types-psutil = "~6.1.0.20241221"
  183. types-psycopg2 = "~2.9.21.20250121"
  184. types-python-dateutil = "~2.9.0.20241206"
  185. types-pytz = "~2024.2.0.20241221"
  186. types-pyyaml = "~6.0.12.20241230"
  187. types-regex = "~2024.11.6.20241221"
  188. types-requests = "~2.32.0.20241016"
  189. types-six = "~1.17.0.20241205"
  190. types-tqdm = "~4.67.0.20241221"
  191. ############################################################
  192. # [ Lint ] dependency group
  193. # Required for code style linting
  194. ############################################################
  195. [tool.poetry.group.lint]
  196. optional = true
  197. [tool.poetry.group.lint.dependencies]
  198. dotenv-linter = "~0.5.0"
  199. ruff = "~0.9.2"