1- pyral - A Python toolkit for the Agile Central (Rally) REST API
2- ===============================================================
3-
1+ pyral - A Python toolkit for the Rally REST API
2+ ===============================================
43
54The `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
5+ and otherwise wrangle the data in your Rally subscription using the popular
76and productive Python language.
87The ``pyral `` package provides a smooth and easy to use veneer on top
9- of the Agile Central ( Rally) REST Web Services API using JSON.
8+ of the Rally REST Web Services API using JSON.
109
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'.
10+ This package is once again branded as a 'Rally' toolkit.
11+ The era of "Agile Central" branding is over, we'll not speak of it again.
1412
1513
1614.. contents ::
1715
1816Getting started
1917---------------
2018
21- Agile Central ( Rally) has created a Python package that you can quickly leverage to interact with the data in your
19+ Rally has created a Python package that you can quickly leverage to interact with the data in your
2220subscription 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) .
21+ artifacts and other entities via the Python toolkit for Rally.
2422
2523Download
2624````````
@@ -48,7 +46,7 @@ Obtain the requests_ package and install it according to that package's directio
4846As of requests-2.0.0, there is support for HTTPS over HTTP proxy via the CONNECT request.
4947Use of requests-2.x or better is recommended for use with pyral.
5048The 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 .
49+ The most recent release of pyral (1.5.0 ) has been tested using requests 2.22.0 .
5250
5351Obtain and install the six _ module (available from PyPI at https://pypi.python.org/pypi/six)
5452
@@ -72,11 +70,11 @@ relevant packages.
7270::
7371
7472 $ python
75- Python 3.6.4 [other Python interpreter info elided ...]
73+ Python 3.7.5 [other Python interpreter info elided ...]
7674 >> import requests
7775 >> import pyral
7876 >> pyral.__version__
79- (1, 4, 2 )
77+ (1, 5, 0 )
8078
8179
8280
@@ -94,13 +92,13 @@ assigned to the name **story**, the following code iterates over the tasks.
9492
9593There is no need to make a separate call to fetch all the tasks for the story.
9694When 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.
95+ Rally REST API machinery automatically loads in the necessary objects for you.
9896
9997
10098Full Documentation
10199``````````````````
102100
103- The complete documentation for the Python toolkit for Agile Central ( Rally) REST API
101+ The complete documentation for the Python toolkit for Rally REST API
104102is in the doc/build/html subdirectory in the repository.
105103The rendered version of this is also available at
106104http://pyral.readthedocs.io/en/latest/
@@ -117,7 +115,6 @@ Common setup code ::
117115 args = [arg for arg in sys.argv[1:] if arg not in options]
118116 server, user, password, apikey, workspace, project = rallyWorkset(options)
119117 rally = Rally(server, user, password, apikey=apikey, workspace=workspace, project=project)
120- rally.enableLogging('mypyral.log')
121118
122119Show a TestCase identified by the **FormattedID ** value.
123120 Copy the above boilerplate and the following code fragment and save it in a file named gettc.py
@@ -153,31 +150,15 @@ Get a list of workspaces and projects for your subscription
153150
154151 python wksprj.py
155152
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-
172153Create a new Defect
173154 Copy the above boilerplate and the following code fragment and save it in a file called crdefect.py
174155
175156::
176157
177158 proj = rally.getProject()
178159
179- # get the first (and hopefully only) user whose DisplayName is 'Sally Submitter'
180- user = rally.getUserInfo(name='Sally Submitter').pop(0)
160+ # get the first (and hopefully only) user whose DisplayName is 'Sartorious Submitter'
161+ user = rally.getUserInfo(name='Sartorius Submitter').pop(0)
181162
182163 defect_data = { "Project" : proj.ref, "SubmittedBy" : user.ref,
183164 "Name" : name, "Severity" : severity, "Priority" : priority,
@@ -227,8 +208,8 @@ Update an existing Defect
227208Config Options
228209--------------
229210
230- The ``pyral `` package uses a priority
231- chain of files, environment variables and command line arguments to set the
211+ The ``pyral `` package uses a priority chain of files,
212+ environment variables and command line arguments to set the
232213configuration context when an instance of the Rally class is created.
233214See the complete documentation for detailed information on this mechanism.
234215Here's a brief description of how you can specify a configuration when you
@@ -270,17 +251,26 @@ The item names in config files **are** case sensitive.
270251Prerequisites
271252-------------
272253
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)
254+ * Python 3.5, 3.6 or 3.7 (this package not tested with earlier versions of Python 3.x)
275255 * The requests _ package, 2.0.0 or better (2.0.0 finally includes support for https proxy),
276- requests 2.19.1 is recommended.
256+ requests 2.22.0 or more recent is recommended.
277257 * The six _ package.
278258
279259.. _requests : http://github.com/kennethreitz/requests
280260.. _six : https://bitbucket.org/gutworth/six
281261
282262Versions
283263--------
264+ **1.5.0 **
265+ Dropped all support for Python 2.7 constructs.
266+ Validated support for Python 3.7 and 3.8.
267+ Fixed defect where attachments were not returned from getAttachments method.
268+ Fixed defect where the creation or update of a custom PortfolioItem sub-type did not return a
269+ valid pyral instance of the sub-type.
270+ Fixed defect in returning correct number of items when the start index is specified as an integer.
271+ Fixed defect where a feature item could not be added to a Milestones collection
272+ Fixed defect in query construction (and results) when a target attribute value contains a '&' character.
273+
284274 **1.4.2 **
285275 Fixed defect in returning RallyRESTResponse when pagesize set to 1
286276
@@ -357,13 +347,13 @@ Versions
357347
358348TODO
359349----
360- * Dynamically construct the Agile Central ( Rally) schema class hierarchy economically.
350+ * Dynamically construct the Rally schema class hierarchy economically.
361351
362352
363353License
364354-------
365355
366- BSD3-style license. Copyright (c) 2015-2017 CA Technologies, 2010-2015 Rally Software Development.
356+ BSD3-style license. Copyright (c) 2018-2021 Broadcom, Inc., 2015-2018 CA Technologies, 2010-2015 Rally Software Development.
367357
368358See the LICENSE file provided with the source distribution for full details.
369359
@@ -376,7 +366,7 @@ None. See the LICENSE file for full text regarding this issue.
376366Support
377367-------
378368
379- The use of this package is on an *as-is * basis and there is no official support offered by CA Technologies .
369+ The use of this package is on an *as-is * basis and there is no official support offered by Broadcom .
380370The author of this module periodically checks the GitHub repository issues for this package in the
381371interests of providing defect fixes and small feature enhancements as time permits, but is not obligated to
382372respond or take action.
@@ -387,7 +377,7 @@ others who have some exposure to ``pyral`` and might be able to offer useful inf
387377Author
388378------
389379
390- * Kip Lehman <klehman@rallydev .com>
380+ * Kip Lehman <kip.lehman@broadcom .com>
391381
392382
393383Additional Credits
0 commit comments