Rally software API Client
Project description
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)
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
rally_cli-2.0.3-py3-none-any.whl
(31.1 kB
view details)
File details
Details for the file rally_cli-2.0.3-py3-none-any.whl.
File metadata
- Download URL: rally_cli-2.0.3-py3-none-any.whl
- Upload date:
- Size: 31.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf33dc33b79d405123a8205220ac3ab63a8c6d15afd9484fdfd84760b76b7151
|
|
| MD5 |
4c0c77ee9cfc9fdc801ea159fcfef404
|
|
| BLAKE2b-256 |
7eb2c6dc46849f93bad65012a3d1c2426718759ccb4b59547f4cc329a85e146e
|