Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

pyproject.toml 6.1KB

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