pyproject.toml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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.0b3"
  17. azure-ai-ml = "~1.20.0"
  18. azure-identity = "1.16.1"
  19. beautifulsoup4 = "4.12.2"
  20. boto3 = "1.35.74"
  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.52.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. types-pytz = "~2024.2.0.20241003"
  88. unstructured = { version = "~0.16.1", extras = ["docx", "epub", "md", "msg", "ppt", "pptx"] }
  89. validators = "0.21.0"
  90. volcengine-python-sdk = {extras = ["ark"], version = "~1.0.98"}
  91. websocket-client = "~1.7.0"
  92. xinference-client = "0.15.2"
  93. yarl = "~1.18.3"
  94. youtube-transcript-api = "~0.6.2"
  95. zhipuai = "~2.1.5"
  96. # Before adding new dependency, consider place it in alphabet order (a-z) and suitable group.
  97. ############################################################
  98. # [ Indirect ] dependency group
  99. # Related transparent dependencies with pinned version
  100. # required by main implementations
  101. ############################################################
  102. [tool.poetry.group.indirect.dependencies]
  103. kaleido = "0.2.1"
  104. rank-bm25 = "~0.2.2"
  105. safetensors = "~0.4.3"
  106. ############################################################
  107. # [ Tools ] dependency group
  108. ############################################################
  109. [tool.poetry.group.tools.dependencies]
  110. arxiv = "2.1.0"
  111. cloudscraper = "1.2.71"
  112. duckduckgo-search = "~6.3.0"
  113. jsonpath-ng = "1.6.1"
  114. matplotlib = "~3.8.2"
  115. mplfonts = "~0.0.8"
  116. newspaper3k = "0.2.8"
  117. nltk = "3.9.1"
  118. numexpr = "~2.9.0"
  119. pydub = "~0.25.1"
  120. qrcode = "~7.4.2"
  121. twilio = "~9.0.4"
  122. vanna = { version = "0.7.5", extras = ["postgres", "mysql", "clickhouse", "duckdb", "oracle"] }
  123. wikipedia = "1.4.0"
  124. yfinance = "~0.2.40"
  125. ############################################################
  126. # [ Storage ] dependency group
  127. # Required for storage clients
  128. ############################################################
  129. [tool.poetry.group.storage.dependencies]
  130. azure-storage-blob = "12.13.0"
  131. bce-python-sdk = "~0.9.23"
  132. cos-python-sdk-v5 = "1.9.30"
  133. esdk-obs-python = "3.24.6.1"
  134. google-cloud-storage = "2.16.0"
  135. opendal = "~0.45.12"
  136. oss2 = "2.18.5"
  137. supabase = "~2.8.1"
  138. tos = "~2.7.1"
  139. ############################################################
  140. # [ VDB ] dependency group
  141. # Required by vector store clients
  142. ############################################################
  143. [tool.poetry.group.vdb.dependencies]
  144. alibabacloud_gpdb20160503 = "~3.8.0"
  145. alibabacloud_tea_openapi = "~0.3.9"
  146. chromadb = "0.5.20"
  147. clickhouse-connect = "~0.7.16"
  148. couchbase = "~4.3.0"
  149. elasticsearch = "8.14.0"
  150. opensearch-py = "2.4.0"
  151. oracledb = "~2.2.1"
  152. pgvecto-rs = { version = "~0.2.1", extras = ['sqlalchemy'] }
  153. pgvector = "0.2.5"
  154. pymilvus = "~2.5.0"
  155. pymochow = "1.3.1"
  156. pyobvector = "~0.1.6"
  157. qdrant-client = "1.7.3"
  158. tcvectordb = "1.3.2"
  159. tidb-vector = "0.0.9"
  160. upstash-vector = "0.6.0"
  161. volcengine-compat = "~1.0.156"
  162. weaviate-client = "~3.21.0"
  163. ############################################################
  164. # [ Dev ] dependency group
  165. # Required for development and running tests
  166. ############################################################
  167. [tool.poetry.group.dev]
  168. optional = true
  169. [tool.poetry.group.dev.dependencies]
  170. coverage = "~7.2.4"
  171. faker = "~32.1.0"
  172. mypy = "~1.13.0"
  173. pytest = "~8.3.2"
  174. pytest-benchmark = "~4.0.0"
  175. pytest-env = "~1.1.3"
  176. pytest-mock = "~3.14.0"
  177. ############################################################
  178. # [ Lint ] dependency group
  179. # Required for code style linting
  180. ############################################################
  181. [tool.poetry.group.lint]
  182. optional = true
  183. [tool.poetry.group.lint.dependencies]
  184. dotenv-linter = "~0.5.0"
  185. ruff = "~0.9.2"