Registry / testing / qase-api-client

qase-api-client

JSON →
library2.0.9pypypiunverified

The Qase API Client provides a Python interface for interacting with the Qase TestOps API (v1). It allows programmatic access to manage test cases, test runs, defects, and other TestOps entities. The current version is 2.0.6, and it's part of a larger monorepo with frequent, modular releases across various Qase Python integrations.

pip install qase-api-client
INSTALL
IMPORT
SIG · QASE-API-CLIENT
Q
qase-api-client
testingpythonv2.0.9
Install
3.7s avg
Import
Disk
32MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.0.9 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 33.1MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 3.7s · import 0.000s · 33MB
32MB installed
● package 32MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Configuration
from qase.api_client import Configuration
from qase.api_client.configuration import Configuration

This quickstart demonstrates how to initialize the Qase API client, configure it with an API token, and then use it to retrieve test cases from a specified project. Ensure your QASE_TOKEN and QASE_PROJECT_CODE environment variables are set or replace the placeholders.

import os from qaseio.api_client.configuration import Configuration from qaseio.api_client.api_client import ApiClient from qaseio.api_client.api.cases_api import CasesApi QASE_TOKEN = os.environ.get('QASE_TOKEN', 'YOUR_QASE_TOKEN') QASE_PROJECT_CODE = os.environ.get('QASE_PROJECT_CODE', 'PRJ') # e.g., 'PRJ' if QASE_TOKEN == 'YOUR_QASE_TOKEN' or QASE_PROJECT_CODE == 'PRJ': print("Please set QASE_TOKEN and QASE_PROJECT_CODE environment variables or replace placeholders.") else: try: # Configure API key authorization: TokenAuth configuration = Configuration( host="https://api.qase.io/v1", api_key={"TokenAuth": QASE_TOKEN} ) # Create an API client with ApiClient(configuration) as api_client: # Create an instance of the API you want to use cases_api = CasesApi(api_client) # Example: Get all cases for a project response = cases_api.get_cases(QASE_PROJECT_CODE) print(f"Successfully retrieved {len(response.result.entities)} cases.") # print(response.to_dict()) except Exception as e: print(f"An error occurred: {e}")
Debug
Known issues
gotchaThe `qase-python` GitHub repository is a monorepo containing multiple packages (e.g., `qase-api-client`, `qase-api-v2-client`, `qase-pytest`, `qase-robotframework`). Ensure you install `qase-api-client` specifically if you intend to use the base API client, as other packages may have different dependencies or purposes.
fix
Explicitly install `qase-api-client` via `pip install qase-api-client`. Do not assume `pip install qase-python` will install this client (it's not a package).
affects: All versions
gotchaAuthentication uses an 'API Token' which is mapped to `api_key` in the generated client's `Configuration` object. The parameter name for the Qase API is `TokenAuth`.
fix
When initializing `Configuration`, pass your Qase API Token like this: `api_key={'TokenAuth': 'your_token_here'}`.
affects: All versions
breakingQase has both `qase-api-client` (v1) and `qase-api-v2-client` (v2) packages. While they currently share the same version number (2.0.x) in the monorepo, they target different API versions. Using the wrong client for a specific API version can lead to unexpected behavior or missing functionality.
fix
Always refer to the official Qase documentation or the specific API client's README to confirm which client (v1 or v2) corresponds to the API endpoints you intend to use. Install `qase-api-v2-client` if targeting the v2 API.
affects: 2.0.0+
Upgrade
Version history
2.0.9latest on PyPI · released Jun 10, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Amazon
1
Resources
qase-api-client — pip install qase-api-client · libregistry