1- pyral - A Python toolkit for the Agile Central ( Rally) REST API
2- ===============================================================
1+ pyral - A Python toolkit for the Rally REST API
2+ ===============================================
33
44
55The `pyral <http://github.com/RallyTools/RallyRestToolkitForPython >`_ package enables you to push, pull
6- and otherwise wrangle the data in your Agile Central (formerly named Rally) subscription using the popular
6+ and otherwise wrangle the data in your Rally subscription using the popular
77and productive Python language.
88The ``pyral `` package provides a smooth and easy to use veneer on top
9- of the Agile Central ( Rally) REST Web Services API using JSON.
9+ of the Rally REST Web Services API using JSON.
1010
11- As of July 2015, the Rally Software Development company was acquired by CA Technologies.
12- The Rally product itself has been rebranded as 'Agile Central'. Over time, the documentation
13- will transition from using the term 'Rally' to using 'Agile Central'.
11+ This package is once again branded as a 'Rally' toolkit.
12+ The era of "Agile Central" branding is over, we'll not speak of it again...
1413
1514
1615.. contents ::
1716
1817Getting started
1918---------------
2019
21- Agile Central ( Rally) has created a Python package that you can quickly leverage to interact with the data in your
20+ Rally has created a Python package that you can quickly leverage to interact with the data in your
2221subscription via the REST web services API. You can create, read, update, and delete the common
23- artifacts and other entities via the Python toolkit for Agile Central ( Rally) .
22+ artifacts and other entities via the Python toolkit for Rally.
2423
2524Download
2625````````
@@ -48,7 +47,7 @@ Obtain the requests_ package and install it according to that package's directio
4847As of requests-2.0.0, there is support for HTTPS over HTTP proxy via the CONNECT request.
4948Use of requests-2.x or better is recommended for use with pyral.
5049The requests _ package can be found via the Python Package Index site (http://pypi/python.org/index).
51- The most recent release of pyral (1.4.2 ) has been tested using requests 2.19.1 .
50+ The most recent release of pyral (1.5.0 ) has been tested using requests 2.22.0 .
5251
5352Obtain and install the six _ module (available from PyPI at https://pypi.python.org/pypi/six)
5453
@@ -72,11 +71,11 @@ relevant packages.
7271::
7372
7473 $ python
75- Python 3.6.4 [other Python interpreter info elided ...]
74+ Python 3.7.5 [other Python interpreter info elided ...]
7675 >> import requests
7776 >> import pyral
7877 >> pyral.__version__
79- (1, 4, 2 )
78+ (1, 5, 0 )
8079
8180
8281
@@ -94,13 +93,13 @@ assigned to the name **story**, the following code iterates over the tasks.
9493
9594There is no need to make a separate call to fetch all the tasks for the story.
9695When you follow domain model attributes in the Python code, the Python toolkit for
97- Agile Central ( Rally) REST API machinery automatically loads in the necessary objects for you.
96+ Rally REST API machinery automatically loads in the necessary objects for you.
9897
9998
10099Full Documentation
101100``````````````````
102101
103- The complete documentation for the Python toolkit for Agile Central ( Rally) REST API
102+ The complete documentation for the Python toolkit for Rally REST API
104103is in the doc/build/html subdirectory in the repository.
105104The rendered version of this is also available at
106105http://pyral.readthedocs.io/en/latest/
@@ -117,7 +116,6 @@ Common setup code ::
117116 args = [arg for arg in sys.argv[1:] if arg not in options]
118117 server, user, password, apikey, workspace, project = rallyWorkset(options)
119118 rally = Rally(server, user, password, apikey=apikey, workspace=workspace, project=project)
120- rally.enableLogging('mypyral.log')
121119
122120Show a TestCase identified by the **FormattedID ** value.
123121 Copy the above boilerplate and the following code fragment and save it in a file named gettc.py
@@ -153,31 +151,15 @@ Get a list of workspaces and projects for your subscription
153151
154152 python wksprj.py
155153
156- Get a list of all users in a specific workspace
157- Copy the above boilerplate and the following code fragment and save it in a file called allusers.py
158-
159- ::
160-
161- all_users = rally.getAllUsers()
162- for user in all_users:
163- tz = user.UserProfile.TimeZone or 'default'
164- role = user.Role or '-No Role-'
165- values = (int(user.oid), user.Name, user.UserName, role, tz)
166- print("%12.12d %-24.24s %-30.30s %-12.12s" % values)
167-
168- - Run the script
169-
170- python allusers.py --rallyWorkspace="Product Engineering"
171-
172154Create a new Defect
173155 Copy the above boilerplate and the following code fragment and save it in a file called crdefect.py
174156
175157::
176158
177159 proj = rally.getProject()
178160
179- # get the first (and hopefully only) user whose DisplayName is 'Sally Submitter'
180- user = rally.getUserInfo(name='Sally Submitter').pop(0)
161+ # get the first (and hopefully only) user whose DisplayName is 'Sartorious Submitter'
162+ user = rally.getUserInfo(name='Sartorius Submitter').pop(0)
181163
182164 defect_data = { "Project" : proj.ref, "SubmittedBy" : user.ref,
183165 "Name" : name, "Severity" : severity, "Priority" : priority,
@@ -227,8 +209,8 @@ Update an existing Defect
227209Config Options
228210--------------
229211
230- The ``pyral `` package uses a priority
231- chain of files, environment variables and command line arguments to set the
212+ The ``pyral `` package uses a priority chain of files,
213+ environment variables and command line arguments to set the
232214configuration context when an instance of the Rally class is created.
233215See the complete documentation for detailed information on this mechanism.
234216Here's a brief description of how you can specify a configuration when you
@@ -270,17 +252,24 @@ The item names in config files **are** case sensitive.
270252Prerequisites
271253-------------
272254
273- * Python 3.5, 3.6 or 3.7 (this package not tested with earlier versions of Python 3.x) OR
274- * Python 2.7 (explicit support for this version will end with the 1.4.x line, 1.5.x will not support 2.7)
255+ * Python 3.5, 3.6 or 3.7 (this package not tested with earlier versions of Python 3.x)
275256 * The requests _ package, 2.0.0 or better (2.0.0 finally includes support for https proxy),
276- requests 2.19.1 is recommended.
257+ requests 2.22.0 or more recent is recommended.
277258 * The six _ package.
278259
279260.. _requests : http://github.com/kennethreitz/requests
280261.. _six : https://bitbucket.org/gutworth/six
281262
282263Versions
283264--------
265+ **1.5.0 **
266+ Fixed defect where attachments were not returned from getAttachments method.
267+ Fixed defect where the creation or update of a custom PortfolioItem sub-type did not return a
268+ valid pyral instance of the sub-type.
269+ Fixed defect in returning correct number of items when the start index is specified as an integer.
270+ Fixed defect where a feature item could not be added to a Milestones collection
271+ Fixed defect in query construction (and results) when a target attribute value contains a '&' character.
272+
284273 **1.4.2 **
285274 Fixed defect in returning RallyRESTResponse when pagesize set to 1
286275
@@ -357,13 +346,13 @@ Versions
357346
358347TODO
359348----
360- * Dynamically construct the Agile Central ( Rally) schema class hierarchy economically.
349+ * Dynamically construct the Rally schema class hierarchy economically.
361350
362351
363352License
364353-------
365354
366- BSD3-style license. Copyright (c) 2015-2017 CA Technologies, 2010-2015 Rally Software Development.
355+ BSD3-style license. Copyright (c) 2018-2021 Broadcom, Inc., 2015-2018 CA Technologies, 2010-2015 Rally Software Development.
367356
368357See the LICENSE file provided with the source distribution for full details.
369358
@@ -376,7 +365,7 @@ None. See the LICENSE file for full text regarding this issue.
376365Support
377366-------
378367
379- The use of this package is on an *as-is * basis and there is no official support offered by CA Technologies .
368+ The use of this package is on an *as-is * basis and there is no official support offered by Broadcom .
380369The author of this module periodically checks the GitHub repository issues for this package in the
381370interests of providing defect fixes and small feature enhancements as time permits, but is not obligated to
382371respond or take action.
@@ -387,7 +376,7 @@ others who have some exposure to ``pyral`` and might be able to offer useful inf
387376Author
388377------
389378
390- * Kip Lehman <klehman@rallydev .com>
379+ * Kip Lehman <kip.lehman@broadcom .com>
391380
392381
393382Additional Credits
0 commit comments