pyproject.toml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. [project]
  2. name = "dify-api"
  3. requires-python = ">=3.11,<3.13"
  4. [build-system]
  5. requires = ["poetry-core"]
  6. build-backend = "poetry.core.masonry.api"
  7. [tool.poetry]
  8. package-mode = false
  9. ############################################################
  10. # [ Main ] Dependency group
  11. ############################################################
  12. [tool.poetry.dependencies]
  13. anthropic = "~0.23.1"
  14. authlib = "1.3.1"
  15. azure-ai-inference = "~1.0.0b3"
  16. azure-ai-ml = "~1.20.0"
  17. azure-identity = "1.16.1"
  18. beautifulsoup4 = "4.12.2"
  19. boto3 = "1.35.74"
  20. bs4 = "~0.0.1"
  21. cachetools = "~5.3.0"
  22. celery = "~5.4.0"
  23. chardet = "~5.1.0"
  24. cohere = "~5.2.4"
  25. dashscope = { version = "~1.17.0", extras = ["tokenizer"] }
  26. fal-client = "0.5.6"
  27. flask = "~3.1.0"
  28. flask-compress = "~1.17"
  29. flask-cors = "~4.0.0"
  30. flask-login = "~0.6.3"
  31. flask-migrate = "~4.0.7"
  32. flask-restful = "~0.3.10"
  33. flask-sqlalchemy = "~3.1.1"
  34. gevent = "~24.11.1"
  35. gmpy2 = "~2.2.1"
  36. google-ai-generativelanguage = "0.6.9"
  37. google-api-core = "2.18.0"
  38. google-api-python-client = "2.90.0"
  39. google-auth = "2.29.0"
  40. google-auth-httplib2 = "0.2.0"
  41. google-cloud-aiplatform = "1.49.0"
  42. google-generativeai = "0.8.1"
  43. googleapis-common-protos = "1.63.0"
  44. gunicorn = "~23.0.0"
  45. httpx = { version = "~0.27.0", extras = ["socks"] }
  46. huggingface-hub = "~0.16.4"
  47. jieba = "0.42.1"
  48. langfuse = "~2.51.3"
  49. langsmith = "~0.1.77"
  50. mailchimp-transactional = "~1.0.50"
  51. markdown = "~3.5.1"
  52. nomic = "~3.1.2"
  53. novita-client = "~0.5.7"
  54. numpy = "~1.26.4"
  55. oci = "~2.135.1"
  56. openai = "~1.52.0"
  57. openpyxl = "~3.1.5"
  58. opik = "~1.3.4"
  59. pandas = { version = "~2.2.2", extras = ["performance", "excel"] }
  60. pandas-stubs = "~2.2.3.241009"
  61. psycogreen = "~1.0.2"
  62. psycopg2-binary = "~2.9.6"
  63. pycryptodome = "3.19.1"
  64. pydantic = "~2.9.2"
  65. pydantic-settings = "~2.6.0"
  66. pydantic_extra_types = "~2.9.0"
  67. pyjwt = "~2.8.0"
  68. pypdfium2 = "~4.30.0"
  69. python = ">=3.11,<3.13"
  70. python-docx = "~1.1.0"
  71. python-dotenv = "1.0.1"
  72. pyyaml = "~6.0.1"
  73. readabilipy = "0.2.0"
  74. redis = { version = "~5.0.3", extras = ["hiredis"] }
  75. replicate = "~0.22.0"
  76. resend = "~0.7.0"
  77. sagemaker = "~2.231.0"
  78. scikit-learn = "~1.5.1"
  79. sentry-sdk = { version = "~1.44.1", extras = ["flask"] }
  80. sqlalchemy = "~2.0.29"
  81. starlette = "0.41.0"
  82. tencentcloud-sdk-python-hunyuan = "~3.0.1294"
  83. tiktoken = "~0.8.0"
  84. tokenizers = "~0.15.0"
  85. transformers = "~4.35.0"
  86. types-pytz = "~2024.2.0.20241003"
  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. ############################################################
  177. # [ Lint ] dependency group
  178. # Required for code style linting
  179. ############################################################
  180. [tool.poetry.group.lint]
  181. optional = true
  182. [tool.poetry.group.lint.dependencies]
  183. dotenv-linter = "~0.5.0"
  184. ruff = "~0.9.2"