Package: taskcluster_util
PythonTaskclusterUtilities.InstallationTo installtaskcluster_util, simply:$pipinstall-Utaskcluster_utilTools UsagesTemporary CredentialsYou can get your temporary credentials fromhttps://auth.taskcluster.net/(using Persona with LDAP account).The temporary credentials will remain valid for 31 days.Or you can just runtaskcluster_loginto get your credentials. (Note: it will remove your old credentials file.)tc_credentials.jsonYou can put the credentials intotc_credentials.jsonfile under your home folder.$<YOUR_EDITOR>~/tc_credentials.jsonThe file format will be:{
    "clientId": "<YOUR_CLIENTID>",
    "accessToken": "<YOUR_ACCESSTOKEN>",
    "certificate": <YOUR_CERTIFICATE>
}Here’s a simple example:{
    "clientId": "foo-XXX",
    "accessToken": "hello-world-XXX",
    "certificate": {"version":1,"scopes":["*"],"start":1,"expiry":9,"seed":"hello","signature":"world="}
}taskcluster_downloadDownload artifacts from command line.usage:taskcluster_download[-h][--credentialsCREDENTIALS](-nNAMESPACE|-tTASK_ID)[-aARITFACT_NAME][-dDEST_DIR][-v]ThesimpledownloadtoolforTaskcluster.optionalarguments:-h,--helpshowthishelpmessageandexit--credentialsCREDENTIALSThecredentialJSONfile(default:<YOUR_HOME>/tc_credentials.json)-nNAMESPACE,--namespaceNAMESPACEThenamespaceoftask-tTASK_ID,--taskidTASK_IDThetaskIdoftask-v,--verboseTurnonverboseoutput,withallthedebuglogger.DownloadArtifact:Theartifactnameanddestfolder-aARITFACT_NAME,--artifactARITFACT_NAMETheartifactnameonTaskcluster-dDEST_DIR,--dest-dirDEST_DIRThedestfolder(default:currentworkingfolder)-u,--signed-url-onlyRetrievethesignedurlanddisplayit.Nodownloadisdone.Thetc_credentials.jsonTemplate:{"clientId":"","accessToken":"","certificate":{"version":1,"scopes":["*"],"start":xxx,"expiry":xxx,"seed":"xxx","signature":"xxx"}}taskcluster_traverseTravese namespace and download artifacts from GUI.usage:taskcluster_traverse[-h][--credentialsCREDENTIALS][-nNAMESPACE][-dDEST_DIR][-v]ThesimpleGUItraverseanddownloadtoolforTaskcluster.optionalarguments:-h,--helpshowthishelpmessageandexit--credentialsCREDENTIALSThecredentialJSONfile(default:<YOUR_HOME>/tc_credentials.json)-nNAMESPACE,--namespaceNAMESPACEThenamespaceoftask-dDEST_DIR,--dest-dirDEST_DIRThedestfolder(default:currentworkingfolder)-v,--verboseTurnonverboseoutput,withallthedebuglogger.Thetc_credentials.jsonTemplate:{"clientId":"","accessToken":"","certificate":{"version":1,"scopes":["*"],"start":xxx,"expiry":xxx,"seed":"xxx","signature":"xxx"}}taskcluster_loginLogin Taskcluster, get Temporary Credentials, and save to home directory.usage:taskcluster_login[-h][-aADDRESS][-pPORT][--fileCREDENTIALS_FILE][-v]ThesimplelogintoolforTaskcluster.optionalarguments:-h,--helpshowthishelpmessageandexit-aADDRESS,--addressADDRESSSpecifytheserveraddress.(default:localhost)-pPORT,--portPORTSpecifytheserverport.(default:0)--fileCREDENTIALS_FILEThecredentialsfile.Itwillbeoverwrittenifitalreadyexist.(default:/Users/Askeing/tc_credentials.json)-v,--verboseTurnonverboseoutput,withallthedebuglogger.(default:False)SSL InsecurePlatformWarningIf you got the following error message when running the tools, please installrequests[security]package.InsecurePlatformWarning:AtrueSSLContextobjectisnotavailable.Thispreventsurllib3fromconfiguringSSLappropriatelyandmaycausecertainSSLconnectionstofail.Formoreinformation,seehttps://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.Install package by pip install. Please note it’s not required for Python 2.7.9+.pipinstallrequests[security]If you gotSetup script exited with error: command ‘gcc’ failed with exit status 1error when installrequests[security], please installlibffi-dev. (Ubuntu)sudoapt-getinstalllibffi-devThe Other IssuesIf you meet any issues related to urllib3, SSL, or tk, please install following packages. (Ubuntu)sudoapt-getinstallpythonpython-devpython-setuptoolslibffi-devlibssl-devpython-tksudoeasy_installpipsudopipinstall-Upipsetuptoolssudopipinstall-Urequestssudopipinstall-Urequests[security]Release History0.0.30 (2016-01-29)BugfixesFix the version typo… :(0.0.28 (2016-01-29)Features and ImprovementsReduce the log information.0.0.27 (2016-01-05)Features and ImprovementsUpdate the taskcluster-client.py to 0.0.32.BugfixesFix the gzip encoding issue of download.0.0.26 (2015-12-24)Features and ImprovementsModify the taskcluster_download method for easier usage.0.0.25 (2015-11-30)Features and ImprovementsAdd taskcluster_login for getting credentials.Make user choice more strict when getting credentials.BugfixesFix the issue when query is an empty string (taskcluster_login).0.0.24 (2015-11-23)Features and ImprovementsAdd taskcluster_login for getting credentials.0.0.23 (2015-11-23)Features and ImprovementsCheck the credentials does or doesn’t expired, and print on console.BugfixesRaise exception when loading credentials file error.0.0.22 (2015-11-06)BugfixesClean the cache of dest_dir and download_file_list after downloading.0.0.21 (2015-11-04)Features and ImprovementsProvide a way to give TaskCluster builds to Bitbar (Bug 1189354).0.0.20 (2015-11-02)Features and ImprovementsModify the class for inheritance.0.0.19 (2015-10-30)Features and ImprovementsModify the logger and gui of taskcluster_traverse.0.0.18 (2015-10-30)Features and ImprovementsMove tc_credentials.json to User’s Home folder.Update README file.Update usage.Modify the Credentials input GUI of taskcluster_traverse.0.0.17 (2015-10-27)Features and ImprovementsAdd the credentials information.0.0.16 (2015-10-13)BugfixesFix the issue of downloading public artifact when no credentials0.0.15 (2015-10-02)Features and ImprovementsUpgrade the taskcluster library to 0.0.27, which fixed the bewit issue.Download artifacts by Signed URL, not API method.0.0.14 (2015-10-01)BugfixesFix the internal server error (cause by taskcluster v0.0.21).0.0.13 (2015-09-07)Features and ImprovementsRefactoring.Using the prograssbar package to display the download progress.Add hooking point ‘do_after_download’ after downloading.0.0.12 (2015-09-04)BugfixesFix some description error.0.0.11 (2015-09-04)Features and ImprovementsAdd taskcluster_traverse.Modify setup.py, HISTORY, and README.Add more function of TaskFinder.Add Makefile and travis ci settings.Add unittest cases.BugfixesFix the temp folder deleted issue when downloading multiple times.0.0.10 (2015-08-04)Features and ImprovementsDownload artifacts from taskcluster.0.0.1 (2015-07-15)Initiate the project.