--- id: openxlab version: "0.1.3" license: Apache License 2.0 license_treatment: permissive maintenance: aging --- # openxlab — openxlab tools License: permissive · Maintenance: aging · Downloads: 1.8M/mo ## 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 above — 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 pip install openxlab uv add openxlab 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_current - Install friction: low - Maintenance: aging - Downloads: 1.8M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags openxlab cli tool, openxlab api client, openxlab authentication, openxlab token generation, openxlab config management, openxlab command line, openxlab credentials, cli-tool, authentication, openxlab [View on SkillFed](https://skillfed.io/packages/openxlab) · [View on PyPI](https://pypi.org/project/openxlab/)