Zephyr (TM4J) Python REST API wrapper
Project description
Zephyr-python-api
Project description
This is a wrapper for Zephyr Scale (TM4J) REST API. This means you can interact with Zephyr Scale without GUI in a browser!
NOTE: Currently only Scale Cloud wrappers are implemented.
To be done:
- Scale Server wrappers implementations
- Usage examples
Installation
pip install zephyr-python-api
Example usage
Zephyr Cloud auth:
from zephyr import ZephyrScale
zscale = ZephyrScale(token=<your_token>)
Zephyr Server (TM4J) auth:
from zephyr import API_V1, ZephyrScale
# Auth can be made with Jira token
auth = {"token": "<your_jira_token>"}
# or with login and password (suggest using get_pass)
auth = {"username": "<your_login>", "password": "<your_password>"}
# or even session cookie dict
auth = {"cookies": "<session_cookie_dict>"}
zscale = ZephyrScale(api=API_V1, base_url=<your_base_url>, **auth)
Then it is possible to interact with api wrappers:
zapi = zscale.api
all_test_cases = zapi.test_cases.get_test_cases()
License
This library is licensed under the Apache 2.0 License.
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for zephyr-python-api-0.0.1.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e82e3c90be0e72d115a1eed80595e203bb8a7ef25d9ec8472f16a860d15c4e3b |
|
MD5 | 7182d4782aa723b4d5200b840bd1fbaf |
|
BLAKE2b-256 | edec499d0eb5df63dfd0d265281fb45b02425148f4359a09ebe00a2215e7eac5 |
Close
Hashes for zephyr_python_api-0.0.1.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6d60c9f4575d6e2c79e9beb26ec9a7396009cab3004b889410677d15e8f82b4 |
|
MD5 | 6dfb9b85b3f61a252f0053a8cc129d05 |
|
BLAKE2b-256 | 218ff645a90e8364fcd5827639f99dba187700d6df204ad2fae2a55397282d73 |