You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pyproject.toml 6.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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. opentelemetry-api = "1.27.0"
  49. opentelemetry-distro = "0.48b0"
  50. opentelemetry-exporter-otlp = "1.27.0"
  51. opentelemetry-exporter-otlp-proto-common = "1.27.0"
  52. opentelemetry-exporter-otlp-proto-grpc = "1.27.0"
  53. opentelemetry-exporter-otlp-proto-http = "1.27.0"
  54. opentelemetry-instrumentation = "0.48b0"
  55. opentelemetry-instrumentation-celery = "0.48b0"
  56. opentelemetry-instrumentation-flask = "0.48b0"
  57. opentelemetry-instrumentation-sqlalchemy = "0.48b0"
  58. opentelemetry-propagator-b3 = "1.27.0"
  59. opentelemetry-proto = "1.27.0" # 1.28.0 depends on protobuf (>=5.0,<6.0), conflict with googleapis-common-protos (1.63.0)
  60. opentelemetry-sdk = "1.27.0"
  61. opentelemetry-semantic-conventions = "0.48b0"
  62. opentelemetry-util-http = "0.48b0"
  63. opik = "~1.3.4"
  64. pandas = { version = "~2.2.2", extras = ["performance", "excel", "output-formatting"] }
  65. pandas-stubs = "~2.2.3.241009"
  66. pandoc = "~2.4"
  67. psycogreen = "~1.0.2"
  68. psycopg2-binary = "~2.9.6"
  69. pycryptodome = "3.19.1"
  70. pydantic = "~2.9.2"
  71. pydantic-settings = "~2.6.0"
  72. pydantic_extra_types = "~2.9.0"
  73. pyjwt = "~2.8.0"
  74. pypdfium2 = "~4.30.0"
  75. python = ">=3.11,<3.13"
  76. python-docx = "~1.1.0"
  77. python-dotenv = "1.0.1"
  78. pyyaml = "~6.0.1"
  79. readabilipy = "0.2.0"
  80. redis = { version = "~5.0.3", extras = ["hiredis"] }
  81. resend = "~0.7.0"
  82. sentry-sdk = { version = "~1.44.1", extras = ["flask"] }
  83. sqlalchemy = "~2.0.29"
  84. starlette = "0.41.0"
  85. tiktoken = "~0.8.0"
  86. tokenizers = "~0.15.0"
  87. transformers = "~4.35.0"
  88. unstructured = { version = "~0.16.1", extras = ["docx", "epub", "md", "ppt", "pptx"] }
  89. validators = "0.21.0"
  90. yarl = "~1.18.3"
  91. # Before adding new dependency, consider place it in alphabet order (a-z) and suitable group.
  92. ############################################################
  93. # [ Indirect ] dependency group
  94. # Related transparent dependencies with pinned version
  95. # required by main implementations
  96. ############################################################
  97. [tool.poetry.group.indirect.dependencies]
  98. kaleido = "0.2.1"
  99. rank-bm25 = "~0.2.2"
  100. safetensors = "~0.4.3"
  101. ############################################################
  102. # [ Tools ] dependency group
  103. ############################################################
  104. [tool.poetry.group.tools.dependencies]
  105. cloudscraper = "1.2.71"
  106. nltk = "3.9.1"
  107. ############################################################
  108. # [ Storage ] dependency group
  109. # Required for storage clients
  110. ############################################################
  111. [tool.poetry.group.storage.dependencies]
  112. azure-storage-blob = "12.13.0"
  113. bce-python-sdk = "~0.9.23"
  114. cos-python-sdk-v5 = "1.9.30"
  115. esdk-obs-python = "3.24.6.1"
  116. google-cloud-storage = "2.16.0"
  117. opendal = "~0.45.16"
  118. oss2 = "2.18.5"
  119. supabase = "~2.8.1"
  120. tos = "~2.7.1"
  121. ############################################################
  122. # [ VDB ] dependency group
  123. # Required by vector store clients
  124. ############################################################
  125. [tool.poetry.group.vdb.dependencies]
  126. alibabacloud_gpdb20160503 = "~3.8.0"
  127. alibabacloud_tea_openapi = "~0.3.9"
  128. chromadb = "0.5.20"
  129. clickhouse-connect = "~0.7.16"
  130. couchbase = "~4.3.0"
  131. elasticsearch = "8.14.0"
  132. opensearch-py = "2.4.0"
  133. oracledb = "~2.2.1"
  134. pgvecto-rs = { version = "~0.2.1", extras = ['sqlalchemy'] }
  135. pgvector = "0.2.5"
  136. pymilvus = "~2.5.0"
  137. pymochow = "1.3.1"
  138. pyobvector = "~0.1.6"
  139. qdrant-client = "1.7.3"
  140. tablestore = "6.1.0"
  141. tcvectordb = "~1.6.4"
  142. tidb-vector = "0.0.9"
  143. upstash-vector = "0.6.0"
  144. volcengine-compat = "~1.0.156"
  145. weaviate-client = "~3.21.0"
  146. xinference-client = "~1.2.2"
  147. ############################################################
  148. # [ Dev ] dependency group
  149. # Required for development and running tests
  150. ############################################################
  151. [tool.poetry.group.dev]
  152. optional = true
  153. [tool.poetry.group.dev.dependencies]
  154. coverage = "~7.2.4"
  155. faker = "~32.1.0"
  156. lxml-stubs = "~0.5.1"
  157. mypy = "~1.15.0"
  158. pytest = "~8.3.2"
  159. pytest-benchmark = "~4.0.0"
  160. pytest-env = "~1.1.3"
  161. pytest-mock = "~3.14.0"
  162. types-aiofiles = "~24.1.0"
  163. types-beautifulsoup4 = "~4.12.0"
  164. types-cachetools = "~5.5.0"
  165. types-colorama = "~0.4.15"
  166. types-defusedxml = "~0.7.0"
  167. types-deprecated = "~1.2.15"
  168. types-docutils = "~0.21.0"
  169. types-flask-cors = "~5.0.0"
  170. types-flask-migrate = "~4.1.0"
  171. types-gevent = "~24.11.0"
  172. types-greenlet = "~3.1.0"
  173. types-html5lib = "~1.1.11"
  174. types-markdown = "~3.7.0"
  175. types-oauthlib = "~3.2.0"
  176. types-objgraph = "~3.6.0"
  177. types-olefile = "~0.47.0"
  178. types-openpyxl = "~3.1.5"
  179. types-pexpect = "~4.9.0"
  180. types-protobuf = "~5.29.1"
  181. types-psutil = "~7.0.0"
  182. types-psycopg2 = "~2.9.21"
  183. types-pygments = "~2.19.0"
  184. types-pymysql = "~1.1.0"
  185. types-python-dateutil = "~2.9.0"
  186. types-pywin32 = "~310.0.0"
  187. types-pyyaml = "~6.0.12"
  188. types-regex = "~2024.11.6"
  189. types-requests = "~2.32.0"
  190. types-requests-oauthlib = "~2.0.0"
  191. types-shapely = "~2.0.0"
  192. types-simplejson = "~3.20.0"
  193. types-six = "~1.17.0"
  194. types-tensorflow = "~2.18.0"
  195. types-tqdm = "~4.67.0"
  196. types-ujson = "~5.10.0"
  197. ############################################################
  198. # [ Lint ] dependency group
  199. # Required for code style linting
  200. ############################################################
  201. [tool.poetry.group.lint]
  202. optional = true
  203. [tool.poetry.group.lint.dependencies]
  204. dotenv-linter = "~0.5.0"
  205. ruff = "~0.11.0"