1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
|
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "elasticsearch"
description = "Python client for Elasticsearch"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.9"
authors = [
{ name = "Elastic Client Library Maintainers", email = "client-libs@elastic.co" },
]
maintainers = [
{ name = "Elastic Client Library Maintainers", email = "client-libs@elastic.co" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
keywords = [
"elasticsearch",
"elastic",
"kibana",
"mapping",
"REST",
"search",
"client",
"index",
]
dynamic = ["version"]
dependencies = [
"elastic-transport>=9.1.0,<10",
"python-dateutil",
"typing-extensions",
]
[project.optional-dependencies]
async = ["aiohttp>=3,<4"]
requests = ["requests>=2.4.0, !=2.32.2, <3.0.0"]
orjson = ["orjson>=3"]
pyarrow = ["pyarrow>=1"]
# Maximal Marginal Relevance (MMR) for search results
vectorstore_mmr = ["numpy>=1", "simsimd>=3"]
dev = [
"requests>=2, <3",
"aiohttp",
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-asyncio",
"coverage",
"jinja2",
"python-dateutil",
"unasync",
"pyyaml>=5.4",
"isort",
"black",
"twine",
"build",
"nox",
"orjson",
"numpy",
"simsimd",
"pyarrow",
"pandas",
"mapbox-vector-tile",
"jinja2",
"nltk",
"sentence_transformers",
"tqdm",
"mypy",
"pyright",
"types-python-dateutil",
"types-tqdm",
]
docs = [
"sphinx",
"sphinx-rtd-theme>=2.0",
"sphinx-autodoc-typehints"
]
[project.urls]
Documentation = "https://elasticsearch-py.readthedocs.io/"
Homepage = "https://github.com/elastic/elasticsearch-py"
"Issue Tracker" = "https://github.com/elastic/elasticsearch-py/issues"
"Source Code" = "https://github.com/elastic/elasticsearch-py"
[tool.hatch.version]
path = "elasticsearch/_version.py"
pattern = "__versionstr__ = \"(?P<version>[^']+)\""
[tool.hatch.build.targets.sdist]
include = [
"/elasticsearch",
"/CHANGELOG.md",
"/CONTRIBUTING.md",
"/LICENSE",
"/NOTICE",
"/README.md",
"/setup.cfg",
"/docs/sphinx",
]
[tool.hatch.build.targets.wheel]
packages = ["elasticsearch"]
[tool.pytest.ini_options]
junit_family = "legacy"
xfail_strict = true
markers = [
"otel",
"sync: mark a test as performing I/O without asyncio.",
]
filterwarnings = [
"ignore:Legacy index templates are deprecated in favor of composable templates.:elasticsearch.exceptions.ElasticsearchWarning",
"ignore:datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version..*:DeprecationWarning",
"default:enable_cleanup_closed ignored.*:DeprecationWarning",
]
[tool.isort]
profile = "black"
[tool.coverage.report]
exclude_lines = [
"raise NotImplementedError*",
]
[tool.mypy]
ignore_missing_imports = true
|