skillfed

openxlab

openxlab tools

openxlab v0.1.3 1.8M downloads/30d#3,585 on PyPI
Permissive license Apache License 2.0 AGING released

What it is and what it does

openxlab is a Python CLI and library that provides authenticated access to OpenXLab services. It manages credentials (access key and secret key) through local configuration files, environment variables, or direct parameters, and generates JWT tokens for API authentication. The package is organized around a hierarchical command structure with support for multiple subcommands, allowing users to interact with OpenXLab's model and application centers through both command-line and programmatic interfaces.

The library depends on common utilities like requests for HTTP communication, pyyaml for configuration parsing, rich for terminal output formatting, and tqdm for progress indication. It uses oss2 for object storage operations and filelock for managing concurrent access to local configuration files. The package targets developers integrating OpenXLab services into Python applications or scripts that need reliable credential management and token handling.

Use it for:

  • Set up and manage OpenXLab credentials locally via CLI, storing them in ~/.openxlab/config.json for reuse across multiple scripts.
  • Generate JWT tokens programmatically by calling get_jwt() with stored or provided credentials for authenticating API requests.
  • Build command-line tools that wrap OpenXLab functionality, leveraging the hierarchical subcommand framework.
  • Integrate OpenXLab authentication into Python applications that interact with model or application centers.
  • Upload or manage resources to OpenXLab using the CLI's demo upload workflow as a template.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A command-line interface and Python library for interacting with OpenXLab services, handling authentication, configuration management, and API token generation.

Yes, if you are actively developing against OpenXLab services and need a straightforward credential and token management layer. The low install friction and permissive license make adoption easy. However, the aging maintenance status (297 days since last release) suggests the project is not under active development—install with the understanding that you may need to maintain or patch it yourself if issues arise.

Install

openxlab on PyPI

pip

pip install openxlab

uv

uv add openxlab

poetry

poetry add openxlab

Installing openxlab

Before you install

Low install friction with a pure-Python wheel distribution. Maintenance status is aging—last release was 297 days ago—so expect limited active development and slower response to issues.

License in practice

Licensed under Apache License 2.0 (permissive), so you can use, modify, and distribute the package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install openxlab

from openxlab.xlab.handler.user_token import get_jwt
token = get_jwt(ak='your_access_key', sk='your_secret_key')

Requires Python 3.8 or later. Access key and secret key credentials must be provided either as parameters, via ~/.openxlab/config.json, or through OPENXLAB_AK and OPENXLAB_SK environment variables.

Verify before relying

  • Whether the package is actively maintained or has transitioned to maintenance-only mode.
  • The scope and stability of the OpenXLab API surface that this client wraps.
  • Whether the aging status reflects a mature, stable product or abandoned development.

Package facts

License Apache License 2.0 (permissive)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 9 — filelock, oss2, packaging, pytz, pyyaml, requests, rich, setuptools, tqdm
Maintenance aging — 297 days since the last release
First released
Downloads 1,760,643/month — #3,585 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: openxlab-0.1.3-py3-none-any.whl

Keywords: ai, openxlab

Programming Language :: Python :: 3.8Topic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules

Tags

openxlab cli toolopenxlab api clientopenxlab authenticationopenxlab token generationopenxlab config managementopenxlab command lineopenxlab credentials
cli-toolauthenticationopenxlab

More Libraries packages