eks-token
EKS Token package, an alternate to "aws eks get-token ..." CLI
Decision gist · record as of 2026-08-14
Yes, if you need programmatic EKS token generation in Python and want to avoid subprocess calls to the AWS CLI. The package is actively maintained, has low install friction, and carries no known vulnerabilities. The main caveat is that the license is unclear—verify it directly in the repository before use in proprietary projects. It is suitable for production use in CI/CD, deployment automation, and Kubernetes client integrations.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires AWS credentials to be configured in the environment (via awscli or AWS SDK configuration) to authenticate against EKS.
- Low install friction with a pure Python wheel.
- The package is actively maintained with a recent commit on 2026-08-12 and has been in active development since its first release on 2020-10-01.
License · maintenance · safety
(unclear) — License status is unclear—no SPDX identifier or raw license text is available in the package metadata. Before using in a commercial or proprietary project, verify the actual license by checking the repository directly.
last release 2025-01-03 (588 days) · last repo commit 2026-08-12 · 28 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 275,308 downloads/mo, #8,180 on PyPI
Alternatives
Verify before relying
pip install eks-token
from eks_token import get_token
token = get_token(cluster_name='my-cluster')['status']['token']
print(token)- Whether the package supports IAM role assumption for cross-account EKS access beyond the role_arn parameter shown in examples.
- Token expiration handling and refresh behavior when tokens expire during long-running operations.
- Performance characteristics when generating tokens for multiple clusters or roles in sequence.
What it is and what it does
eks-token is a Python library that generates Kubernetes authentication tokens for AWS EKS clusters without invoking the AWS CLI. It wraps the token generation logic that `aws eks get-token` provides, making it suitable for programmatic use in Python applications that need to authenticate to EKS. The package returns tokens in the Kubernetes ExecCredential format, which can be used directly by kubectl or other Kubernetes clients.
The library depends on awscli and supports Python 3.6 and later. It allows you to specify a cluster name, optionally an IAM role ARN to assume, and a custom AWS region. The token is returned as part of a structured response containing metadata and expiration information, which you can extract and use for cluster authentication.
Use it for
- Automate EKS cluster authentication in CI/CD pipelines without shelling out to the AWS CLI.
- Generate tokens for specific IAM roles when your application needs cross-role or cross-account EKS access.
- Embed EKS authentication directly in Python deployment or management tools that orchestrate Kubernetes workloads on AWS.
- Programmatically obtain tokens with custom region configuration for multi-region EKS deployments.
- Integrate EKS authentication into custom credential providers or Kubernetes client libraries written in Python.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need programmatic EKS token generation in Python and want to avoid subprocess calls to the AWS CLI.
The package is actively maintained, has low install friction, and carries no known vulnerabilities. The main caveat is that the license is unclear—verify it directly in the repository before use in proprietary projects. It is suitable for production use in CI/CD, deployment automation, and Kubernetes client integrations.
Install
eks-token on PyPI
Before you install
Low install friction with a pure Python wheel. The package is actively maintained with a recent commit on 2026-08-12 and has been in active development since its first release on 2020-10-01. It depends only on awscli, which is a common AWS tooling dependency.
Requires AWS credentials to be configured in the environment (via awscli or AWS SDK configuration) to authenticate against EKS.
License in practice
License status is unclear—no SPDX identifier or raw license text is available in the package metadata. Before using in a commercial or proprietary project, verify the actual license by checking the repository directly.
Quickstart
pip install eks-token
from eks_token import get_token
token = get_token(cluster_name='my-cluster')['status']['token']
print(token)
Verify before relying
- Whether the package supports IAM role assumption for cross-account EKS access beyond the role_arn parameter shown in examples.
- Token expiration handling and refresh behavior when tokens expire during long-running operations.
- Performance characteristics when generating tokens for multiple clusters or roles in sequence.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageawscli |
| Maintenance | Actively maintained 588 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 275,308 / month, #8,180 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Operating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: eks_token-0.3.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “eks kubernetes authentication token”
- eks-tokenGenerates Kubernetes authentication tokens for AWS EKS clusters…
- awslabs.eks-mcp-serverConnects AI code assistants to Amazon EKS clusters via the Model…
- pulumi-eksPulumi component for provisioning and managing AWS EKS Kubernetes…
Give your agent the search over MCP, or paste the wish link into any chat.
More Networking packages
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
psutil retrieves real-time information about running processes and system resources (CPU, memory, disks, network, sensors) across multiple operating systems, enabling system monitoring, process profiling, and resource management.
pyOpenSSL wraps OpenSSL's SSL/TLS functionality for Python, providing high-level connection objects and certificate handling through a Python-friendly interface around OpenSSL's cryptographic operations.
uvloop is a drop-in replacement for Python's built-in asyncio event loop, implemented in Cython and using libuv, that accelerates async I/O operations.
execnet lets you spawn and communicate with Python interpreters across local processes, remote hosts, and different platforms, using a simple API for task distribution and inter-process messaging.
However, the aging maintenance status (275 days since last release) means you should verify it meets your concurrency and performance needs before committing to a…
PyZMQ provides Python bindings for ZeroMQ (ØMQ), a lightweight messaging library that enables fast, asynchronous communication between distributed processes and applications.
See also awslabs.eks-mcp-server · pulumi-eks · aws-requests-auth · kubernetes-asyncio · kubernetes · aws-assume-role-lib · aws-msk-iam-sasl-signer-python · requests-aws-sign · pulumi-kubernetes · kappa