rally-cly:Rally API Client
Install
From code repo dir:
pip install --user --editable .
Use
RallyTypeGeneric class is used for all models with no specific model Class
from typing import List
from rallycli import RallyAPI
from rallycli.models import RallyTypeGeneric, type_names, US, Feature, User
rally_api = RallyAPI(key_based_auth=True,
external_key="<your_external_key_here>",
baseurl="https://eu1.rallydev.com/",
workspace="/workspace/<workspace_OID_here>")
project_ref: str = "/project/<your_project_OID_here>"
## getting the project
project: RallyTypeGeneric = rally_api.project_api.get_project_by_ref(project_ref)
## getting project releases
releases: List[RallyTypeGeneric] = rally_api.timebox_api.get_releases_for_project(project_ref=project.ref)
## getting project iterations
iterations: List[RallyTypeGeneric] = rally_api.timebox_api.get_active_iterations_for_project(project_ref=project.ref)
## create UserStory
us: US = US()
us.Name = f"Autocreated Us {n}"
us.Project = project_ref
us.Description = f"Test US {n} para rallycli python module. By {rally_api.user_api.get_this_user().EmailAddress}"
us.Owner = rally_api.user_api.get_this_user()
us.Release = releases[0].ref
us.Iteration = iterations[0].ref
created_us: US = rally_api.artifact_api.create_artifact(us, type_names.US)
print(created_us)
feature: Feature = rally_api.artifact_api.get_artifact_by_formattedid("FE1")
print(feature.Name)
# Get all disabled users using 4 parallel threads
users: List[User] = rally_api.query("( Disabled = true)", "user", fetch="Username",model_class=User,
threads=4, pagesize=80)
Metadata
Release files for rally-cli 2.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rally_cli-2.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Release files / rally_cli-2.0.4-py3-none-any.whl
| Download URL | rally_cli-2.0.4-py3-none-any.whl |
|---|---|
| Size | 31.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
23b3c7e6bd2b102adef2119a10d123d487cb75e4bf610d33abfe077bcba3230d
|
|
BLAKE2b-256 checksum How to use checksums |
4a663f5bd9ac789a3719b14be757db55c9efe6c1a4c50fc408d6abbed1ce772a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|