Python 88.3%
TypeScript 7.6%
Shell 4.1%
1[build-system]2requires = ["setuptools", "wheel", "twine>=6.1.0", "packaging>=24.2", "pkginfo>=1.12.0"]34[project]5name = "google-genai"6version = "2.24.0"7description = "GenAI Python SDK"8readme = "README.md"9license = "Apache-2.0"10requires-python = ">=3.10"11authors = [12 { name = "Google LLC", email = "googleapis-packages@google.com" },13]14classifiers = [15 "Intended Audience :: Developers",16 "Operating System :: OS Independent",17 "Programming Language :: Python",18 "Programming Language :: Python :: 3",19 "Programming Language :: Python :: 3.10",20 "Programming Language :: Python :: 3.11",21 "Programming Language :: Python :: 3.12",22 "Programming Language :: Python :: 3.13",23 "Programming Language :: Python :: 3.14",24 "Topic :: Internet",25 "Topic :: Software Development :: Libraries :: Python Modules",26]27dependencies = [28 "anyio>=4.8.0, <5.0.0",29 "google-auth[requests]>=2.56.0, <3.0.0",30 "httpx>=0.28.1, <1.0.0",31 "pydantic>=2.12.5, <3.0.0",32 "requests>=2.28.1, <3.0.0",33 "tenacity>=8.2.3, <9.2.0",34 "websockets>=13.0.0, <17.0",35 "typing-extensions>=4.14.0, <5.0.0",36 "distro>=1.7.0, <2",37 "sniffio",38]3940[project.optional-dependencies]41aiohttp = ["aiohttp>=3.10.11, <4.0.0"]42local-tokenizer = [43 "sentencepiece>=0.2.0",44 "protobuf",45 "pillow",46 "torch",47 "torchvision",48 "transformers",49]50pyopenssl = ["pyopenssl"]5152[project.urls]53Homepage = "https://github.com/googleapis/python-genai"5455# Other [tool.setuptools] settings are in setup.cfg5657[tool.setuptools.package-data]58"google.genai" = ["py.typed"]5960[tool.pytest.ini_options]61asyncio_mode = "auto"62asyncio_default_fixture_loop_scope = "function"6364[tool.mypy]65exclude = ["tests/", "_test_api_client\\.py", "_gaos/"]66explicit_package_bases = true67plugins = ["pydantic.mypy"]68# we are ignoring 'unused-ignore' because we run mypy on Python 3.9 - 3.13 and69# some errors in _automatic_function_calling_util.py only apply in 3.10+70# 'import-not-found' and 'import-untyped' are environment specific71disable_error_code = [72 "import-not-found",73 "import-untyped",74 "unused-ignore",75]76strict = true7778pretty = true79show_error_codes = true8081[[tool.mypy.overrides]]82module = [83 "google.genai._gaos",84 "google.genai._gaos.*"85]86# Auto-generated code in _gaos has type errors; ignore them but keep type info87# for imports. This will only affect the _gaos module.88ignore_errors = true8990# This particularly for interactions.py.91[[tool.mypy.overrides]]92module = "google.genai.interactions"93disable_error_code = [94 "misc",95 "assignment",96 # Intentionally overriding imported alias, runtime safe.97 "no-redef",98]99100