Install this version:
emerge -a =dev-python/openai-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/openai-9999
Or alternatively:
emerge --autounmask-write -a =dev-python/openai-9999
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1 git-r3 optfeature
DESCRIPTION="The official Python library for the OpenAI API"
HOMEPAGE="https://github.com/openai/openai-python"
EGIT_REPO_URI="https://github.com/openai/openai-python.git"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="datalib test"
RDEPEND="dev-python/anyio[${PYTHON_USEDEP}]
dev-python/distro[${PYTHON_USEDEP}]
dev-python/httpx[${PYTHON_USEDEP}]
dev-python/jiter[${PYTHON_USEDEP}]
dev-python/pydantic[${PYTHON_USEDEP}]
dev-python/sniffio[${PYTHON_USEDEP}]
dev-python/tqdm[${PYTHON_USEDEP}]
dev-python/typing-extensions[${PYTHON_USEDEP}]
datalib? ( dev-python/numpy[${PYTHON_USEDEP}]
dev-python/pandas[${PYTHON_USEDEP}]
dev-python/pandas-stubs[${PYTHON_USEDEP}] )"
BDEPEND="test? ( dev-python/dirty-equals[${PYTHON_USEDEP}]
dev-python/inline-snapshot[${PYTHON_USEDEP}]
dev-python/nest-asyncio[${PYTHON_USEDEP}]
dev-python/respx[${PYTHON_USEDEP}]
dev-python/rich[${PYTHON_USEDEP}] )"
EPYTEST_XDIST=1
EPYTEST_PLUGINS=( pytest-asyncio respx )
distutils_enable_tests pytest
EPYTEST_IGNORE=(
# requires npm mock server
tests/api_resources
tests/lib/chat/test_completions_streaming.py
)
pkg_postinst() {
optfeature "support realtime" dev-python/websockets
}
Manage flags for this package:
euse -i <flag> -p dev-python/openai |
euse -E <flag> -p dev-python/openai |
euse -D <flag> -p dev-python/openai
dev-python/anyio[] dev-python/distro[] dev-python/httpx[] dev-python/jiter[] dev-python/pydantic[] dev-python/sniffio[] dev-python/tqdm[] dev-python/typing-extensions[] datalib? ( dev-python/numpy[] dev-python/pandas[] dev-python/pandas-stubs[] )
test? ( dev-python/dirty-equals[] dev-python/inline-snapshot[] dev-python/nest-asyncio[] dev-python/respx[] dev-python/rich[] )