pyproject.toml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. [tool.poetry]
  2. name = "embedchain"
  3. version = "0.1.119"
  4. description = "Simplest open source retrieval (RAG) framework"
  5. authors = [
  6. "Taranjeet Singh <taranjeet@embedchain.ai>",
  7. "Deshraj Yadav <deshraj@embedchain.ai>",
  8. ]
  9. license = "Apache License"
  10. readme = "README.md"
  11. exclude = [
  12. "db",
  13. "configs",
  14. "notebooks"
  15. ]
  16. packages = [
  17. { include = "embedchain" },
  18. ]
  19. [build-system]
  20. build-backend = "poetry.core.masonry.api"
  21. requires = ["poetry-core"]
  22. [tool.ruff]
  23. select = ["ASYNC", "E", "F"]
  24. ignore = []
  25. fixable = ["ALL"]
  26. unfixable = []
  27. exclude = [
  28. ".bzr",
  29. ".direnv",
  30. ".eggs",
  31. ".git",
  32. ".git-rewrite",
  33. ".hg",
  34. ".mypy_cache",
  35. ".nox",
  36. ".pants.d",
  37. ".pytype",
  38. ".ruff_cache",
  39. ".svn",
  40. ".tox",
  41. ".venv",
  42. "__pypackages__",
  43. "_build",
  44. "buck-out",
  45. "build",
  46. "dist",
  47. "node_modules",
  48. "venv"
  49. ]
  50. line-length = 120
  51. dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
  52. target-version = "py38"
  53. [tool.ruff.mccabe]
  54. max-complexity = 10
  55. # Ignore `E402` (import violations) in all `__init__.py` files, and in `path/to/file.py`.
  56. [tool.ruff.per-file-ignores]
  57. "embedchain/__init__.py" = ["E401"]
  58. [tool.black]
  59. line-length = 120
  60. target-version = ["py38", "py39", "py310", "py311"]
  61. include = '\.pyi?$'
  62. exclude = '''
  63. /(
  64. \.eggs
  65. | \.git
  66. | \.hg
  67. | \.mypy_cache
  68. | \.nox
  69. | \.pants.d
  70. | \.pytype
  71. | \.ruff_cache
  72. | \.svn
  73. | \.tox
  74. | \.venv
  75. | __pypackages__
  76. | _build
  77. | buck-out
  78. | build
  79. | dist
  80. | node_modules
  81. | venv
  82. )/
  83. '''
  84. [tool.black.format]
  85. color = true
  86. [tool.poetry.dependencies]
  87. python = ">=3.9,<=3.13"
  88. python-dotenv = "^1.0.0"
  89. langchain = ">0.2,<=0.3"
  90. requests = "^2.31.0"
  91. openai = ">=1.1.1"
  92. chromadb = "^0.4.24"
  93. posthog = "^3.0.2"
  94. rich = "^13.7.0"
  95. beautifulsoup4 = "^4.12.2"
  96. pypdf = "^4.0.1"
  97. gptcache = "^0.1.43"
  98. pysbd = "^0.3.4"
  99. mem0ai = "^0.0.9"
  100. tiktoken = { version = "^0.7.0", optional = true }
  101. sentence-transformers = { version = "^2.2.2", optional = true }
  102. torch = { version = "2.3.0", optional = true }
  103. # Torch 2.0.1 is not compatible with poetry (https://github.com/pytorch/pytorch/issues/100974)
  104. gpt4all = { version = "2.0.2", optional = true }
  105. # 1.0.9 is not working for some users (https://github.com/nomic-ai/gpt4all/issues/1394)
  106. opensearch-py = { version = "2.3.1", optional = true }
  107. elasticsearch = { version = "^8.9.0", optional = true }
  108. cohere = { version = "^5.3", optional = true }
  109. together = { version = "^1.2.1", optional = true }
  110. lancedb = { version = "^0.6.2", optional = true }
  111. weaviate-client = { version = "^3.24.1", optional = true }
  112. qdrant-client = { version = "^1.6.3", optional = true }
  113. pymilvus = { version = "2.4.3", optional = true }
  114. google-cloud-aiplatform = { version = "^1.26.1", optional = true }
  115. replicate = { version = "^0.15.4", optional = true }
  116. schema = "^0.7.5"
  117. psycopg = { version = "^3.1.12", optional = true }
  118. psycopg-binary = { version = "^3.1.12", optional = true }
  119. psycopg-pool = { version = "^3.1.8", optional = true }
  120. mysql-connector-python = { version = "^8.1.0", optional = true }
  121. google-generativeai = { version = "^0.3.0", optional = true }
  122. google-api-python-client = { version = "^2.111.0", optional = true }
  123. google-auth-oauthlib = { version = "^1.2.0", optional = true }
  124. google-auth = { version = "^2.25.2", optional = true }
  125. google-auth-httplib2 = { version = "^0.2.0", optional = true }
  126. google-api-core = { version = "^2.15.0", optional = true }
  127. langchain-mistralai = { version = "^0.1.9", optional = true }
  128. langchain-openai = "^0.1.7"
  129. langchain-google-vertexai = { version = "^1.0.6", optional = true }
  130. sqlalchemy = "^2.0.27"
  131. alembic = "^1.13.1"
  132. langchain-cohere = "^0.1.4"
  133. langchain-community = "^0.2.6"
  134. [tool.poetry.group.dev.dependencies]
  135. black = "^23.3.0"
  136. pre-commit = "^3.2.2"
  137. ruff = "^0.1.11"
  138. pytest = "^7.3.1"
  139. pytest-mock = "^3.10.0"
  140. pytest-env = "^0.8.1"
  141. click = "^8.1.3"
  142. isort = "^5.12.0"
  143. pytest-cov = "^4.1.0"
  144. responses = "^0.23.3"
  145. mock = "^5.1.0"
  146. pytest-asyncio = "^0.21.1"
  147. [tool.poetry.extras]
  148. opensource = ["sentence-transformers", "torch", "gpt4all"]
  149. lancedb = ["lancedb"]
  150. elasticsearch = ["elasticsearch"]
  151. opensearch = ["opensearch-py"]
  152. weaviate = ["weaviate-client"]
  153. qdrant = ["qdrant-client"]
  154. together = ["together"]
  155. milvus = ["pymilvus"]
  156. vertexai = ["langchain-google-vertexai"]
  157. llama2 = ["replicate"]
  158. gmail = [
  159. "requests",
  160. "google-api-python-client",
  161. "google-auth",
  162. "google-auth-oauthlib",
  163. "google-auth-httplib2",
  164. "google-api-core",
  165. ]
  166. googledrive = ["google-api-python-client", "google-auth-oauthlib", "google-auth-httplib2"]
  167. postgres = ["psycopg", "psycopg-binary", "psycopg-pool"]
  168. mysql = ["mysql-connector-python"]
  169. google = ["google-generativeai"]
  170. mistralai = ["langchain-mistralai"]
  171. [tool.poetry.group.docs.dependencies]
  172. [tool.poetry.scripts]
  173. ec = "embedchain.cli:cli"