atlassian-python-api 3.41.10__tar.gz → 3.41.11__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. {atlassian-python-api-3.41.10/atlassian_python_api.egg-info → atlassian-python-api-3.41.11}/PKG-INFO +1 -1
  2. atlassian-python-api-3.41.11/atlassian/VERSION +1 -0
  3. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/__init__.py +4 -1
  4. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/jira.py +51 -0
  5. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/rest_client.py +53 -1
  6. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11/atlassian_python_api.egg-info}/PKG-INFO +1 -1
  7. atlassian-python-api-3.41.10/atlassian/VERSION +0 -1
  8. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/LICENSE +0 -0
  9. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/MANIFEST.in +0 -0
  10. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/README.rst +0 -0
  11. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/__init__.py +0 -0
  12. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bamboo.py +0 -0
  13. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/base.py +0 -0
  14. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/cloud/__init__.py +0 -0
  15. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/cloud/base.py +0 -0
  16. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/cloud/common/__init__.py +0 -0
  17. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/cloud/common/builds.py +0 -0
  18. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/cloud/common/comments.py +0 -0
  19. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/cloud/common/users.py +0 -0
  20. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/cloud/repositories/__init__.py +0 -0
  21. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/cloud/repositories/branchRestrictions.py +0 -0
  22. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/cloud/repositories/commits.py +0 -0
  23. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/cloud/repositories/defaultReviewers.py +0 -0
  24. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/cloud/repositories/deploymentEnvironments.py +0 -0
  25. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/cloud/repositories/diffstat.py +0 -0
  26. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/cloud/repositories/groupPermissions.py +0 -0
  27. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/cloud/repositories/issues.py +0 -0
  28. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/cloud/repositories/pipelines.py +0 -0
  29. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/cloud/repositories/pullRequests.py +0 -0
  30. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/cloud/repositories/refs.py +0 -0
  31. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/cloud/repositories/repositoryVariables.py +0 -0
  32. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/cloud/workspaces/__init__.py +0 -0
  33. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/cloud/workspaces/members.py +0 -0
  34. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/cloud/workspaces/permissions.py +0 -0
  35. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/cloud/workspaces/projects.py +0 -0
  36. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/server/__init__.py +0 -0
  37. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/server/base.py +0 -0
  38. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/server/common/__init__.py +0 -0
  39. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/server/common/permissions.py +0 -0
  40. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/server/globalPermissions.py +0 -0
  41. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/server/projects/__init__.py +0 -0
  42. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/bitbucket/server/projects/repos/__init__.py +0 -0
  43. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/cloud_admin.py +0 -0
  44. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/confluence.py +0 -0
  45. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/crowd.py +0 -0
  46. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/errors.py +0 -0
  47. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/insight.py +0 -0
  48. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/marketplace.py +0 -0
  49. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/portfolio.py +0 -0
  50. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/request_utils.py +0 -0
  51. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/service_desk.py +0 -0
  52. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/statuspage.py +0 -0
  53. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/utils.py +0 -0
  54. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian/xray.py +0 -0
  55. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian_python_api.egg-info/SOURCES.txt +0 -0
  56. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian_python_api.egg-info/dependency_links.txt +0 -0
  57. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian_python_api.egg-info/not-zip-safe +0 -0
  58. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian_python_api.egg-info/requires.txt +0 -0
  59. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/atlassian_python_api.egg-info/top_level.txt +0 -0
  60. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/pyproject.toml +0 -0
  61. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/requirements.txt +0 -0
  62. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/setup.cfg +0 -0
  63. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/setup.py +0 -0
  64. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__init__.py +0 -0
  65. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/__init__.cpython-311.pyc +0 -0
  66. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/mockup.cpython-311.pyc +0 -0
  67. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_base.cpython-311-pytest-7.2.0.pyc +0 -0
  68. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_base.cpython-311-pytest-7.2.1.pyc +0 -0
  69. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_base.cpython-311-pytest-7.3.1.pyc +0 -0
  70. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_base.cpython-311-pytest-7.4.0.pyc +0 -0
  71. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_base.cpython-311-pytest-7.4.2.pyc +0 -0
  72. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.2.0.pyc +0 -0
  73. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.2.1.pyc +0 -0
  74. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.3.1.pyc +0 -0
  75. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.4.0.pyc +0 -0
  76. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.4.2.pyc +0 -0
  77. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.2.0.pyc +0 -0
  78. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.2.1.pyc +0 -0
  79. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.3.1.pyc +0 -0
  80. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.4.0.pyc +0 -0
  81. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.4.2.pyc +0 -0
  82. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.2.0.pyc +0 -0
  83. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.2.1.pyc +0 -0
  84. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.3.1.pyc +0 -0
  85. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.4.0.pyc +0 -0
  86. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.4.2.pyc +0 -0
  87. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.2.0.pyc +0 -0
  88. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.2.1.pyc +0 -0
  89. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.3.1.pyc +0 -0
  90. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.4.0.pyc +0 -0
  91. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.4.2.pyc +0 -0
  92. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.2.0.pyc +0 -0
  93. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.2.1.pyc +0 -0
  94. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.3.1.pyc +0 -0
  95. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.4.0.pyc +0 -0
  96. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.4.2.pyc +0 -0
  97. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_jira.cpython-311-pytest-7.2.0.pyc +0 -0
  98. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_jira.cpython-311-pytest-7.2.1.pyc +0 -0
  99. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_jira.cpython-311-pytest-7.3.1.pyc +0 -0
  100. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_jira.cpython-311-pytest-7.4.0.pyc +0 -0
  101. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_jira.cpython-311-pytest-7.4.2.pyc +0 -0
  102. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.2.0.pyc +0 -0
  103. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.2.1.pyc +0 -0
  104. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.3.1.pyc +0 -0
  105. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.4.0.pyc +0 -0
  106. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.4.2.pyc +0 -0
  107. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/mockup.py +0 -0
  108. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/GET +0 -0
  109. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/TestRepositoryCreated/POST +0 -0
  110. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/GET +0 -0
  111. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/17203842/DELETE +0 -0
  112. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/17203842/GET +0 -0
  113. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/17203842/PUT +0 -0
  114. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/GET +0 -0
  115. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/default-reviewers/DefaultReviewer1Uuid/DELETE +0 -0
  116. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/default-reviewers/DefaultReviewer1Uuid/GET +0 -0
  117. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/default-reviewers/GET +0 -0
  118. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/3/DELETE +0 -0
  119. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/3/GET +0 -0
  120. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/3/PUT +0 -0
  121. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/GET +0 -0
  122. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/POST +0 -0
  123. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/GET +0 -0
  124. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/POST +0 -0
  125. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/GET +0 -0
  126. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/GET +0 -0
  127. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/{PipelineStep1Uuid}/GET +0 -0
  128. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/{PipelineStep2Uuid}/GET +0 -0
  129. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/{PipelineStep2Uuid}/log/GET +0 -0
  130. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/stopPipeline/POST +0 -0
  131. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/GET +0 -0
  132. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/approve/DELETE +0 -0
  133. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/approve/POST +0 -0
  134. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/comments/GET +0 -0
  135. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/comments/POST +0 -0
  136. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/commits/GET +0 -0
  137. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/decline/POST +0 -0
  138. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/merge/POST +0 -0
  139. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/request-changes/DELETE +0 -0
  140. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/request-changes/POST +0 -0
  141. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/statuses/GET +0 -0
  142. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/123456/DELETE +0 -0
  143. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/123456/PUT +0 -0
  144. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/GET +0 -0
  145. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/POST +0 -0
  146. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/25/GET +0 -0
  147. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/GET +0 -0
  148. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/POST +0 -0
  149. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/workspaces/GET +0 -0
  150. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace1/GET +0 -0
  151. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace2/GET +0 -0
  152. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace3/GET +0 -0
  153. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/groups/DELETE +0 -0
  154. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/groups/GET +0 -0
  155. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/groups/none/GET +0 -0
  156. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/users/DELETE +0 -0
  157. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/users/GET +0 -0
  158. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/users/none/GET +0 -0
  159. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/GET +0 -0
  160. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/GET +0 -0
  161. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/PUT +0 -0
  162. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/groups/DELETE +0 -0
  163. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/groups/GET +0 -0
  164. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/groups/none/GET +0 -0
  165. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/users/DELETE +0 -0
  166. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/users/GET +0 -0
  167. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/users/none/GET +0 -0
  168. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/GET +0 -0
  169. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/GET +0 -0
  170. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/PUT +0 -0
  171. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/archive/GET +0 -0
  172. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/contributing/GET +0 -0
  173. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/default-branch/GET +0 -0
  174. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/default-branch/PUT +0 -0
  175. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/forks/GET +0 -0
  176. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/license/GET +0 -0
  177. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/groups/DELETE +0 -0
  178. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/groups/GET +0 -0
  179. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/groups/none/GET +0 -0
  180. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/users/DELETE +0 -0
  181. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/users/GET +0 -0
  182. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/users/none/GET +0 -0
  183. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/readme/GET +0 -0
  184. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/related/GET +0 -0
  185. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/3/DELETE +0 -0
  186. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/3/GET +0 -0
  187. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/3/PUT +0 -0
  188. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/GET +0 -0
  189. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/POST +0 -0
  190. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/jira/rest/agile/1.0/epic/BAR-22/issue/GET +0 -0
  191. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/jira/rest/agile/1.0/epic/none/issue/GET +0 -0
  192. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/jira/rest/api/2/comment/list/POST +0 -0
  193. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/jira/rest/api/2/issue/FOO-123/GET +0 -0
  194. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/jira/rest/api/2/issue/FOO-123/comment/10000/GET +0 -0
  195. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/jira/rest/api/2/issue/FOO-123/comment/GET +0 -0
  196. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar1/DELETE +0 -0
  197. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar1/GET +0 -0
  198. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar1/PUT +0 -0
  199. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar2New/PUT +0 -0
  200. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/GET +0 -0
  201. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/jira/rest/api/2/issue/POST +0 -0
  202. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/jira/rest/api/2/issue/REGEX-123/file.txt +0 -0
  203. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/servicedesk/rest/servicedeskapi/customer/POST +0 -0
  204. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/servicedesk/rest/servicedeskapi/organization/GET +0 -0
  205. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/servicedesk/rest/servicedeskapi/organization/POST +0 -0
  206. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/DELETE +0 -0
  207. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/GET +0 -0
  208. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/property/GET +0 -0
  209. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/DELETE +0 -0
  210. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/GET +0 -0
  211. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/POST +0 -0
  212. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/DELETE +0 -0
  213. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/GET +0 -0
  214. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/POST +0 -0
  215. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/DELETE +0 -0
  216. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/GET +0 -0
  217. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/POST +0 -0
  218. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/test_base.py +0 -0
  219. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/test_bitbucket_cloud_oo.py +0 -0
  220. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/test_bitbucket_server.py +0 -0
  221. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/test_bitbucket_server_oo.py +0 -0
  222. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/test_confluence_advanced_mode.py +0 -0
  223. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/test_confluence_attach.py +0 -0
  224. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/test_jira.py +0 -0
  225. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tests/test_servicedesk.py +0 -0
  226. {atlassian-python-api-3.41.10 → atlassian-python-api-3.41.11}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atlassian-python-api
3
- Version: 3.41.10
3
+ Version: 3.41.11
4
4
  Summary: Python Atlassian REST API Wrapper
5
5
  Home-page: https://github.com/atlassian-api/atlassian-python-api
6
6
  Download-URL: https://github.com/atlassian-api/atlassian-python-api
@@ -0,0 +1 @@
1
+ 3.41.11
@@ -1781,7 +1781,10 @@ class Bitbucket(BitbucketBase):
1781
1781
  :param start:
1782
1782
  :return:
1783
1783
  """
1784
- url = "{}/activity".format(self._url_pull_request(project_key, repository_slug, pull_request_id))
1784
+ if self.cloud:
1785
+ url = "{}/activity".format(self._url_pull_request(project_key, repository_slug, pull_request_id))
1786
+ else:
1787
+ url = "{}/activities".format(self._url_pull_request(project_key, repository_slug, pull_request_id))
1785
1788
  params = {}
1786
1789
  if start:
1787
1790
  params["start"] = start
@@ -1,6 +1,7 @@
1
1
  # coding=utf-8
2
2
  import logging
3
3
  import re
4
+ import os
4
5
  from warnings import warn
5
6
  from deprecated import deprecated
6
7
  from requests import HTTPError
@@ -163,6 +164,18 @@ class Jira(AtlassianRestAPI):
163
164
  Reference: https://docs.atlassian.com/software/jira/docs/api/REST/8.5.0/#api/2/attachment
164
165
  """
165
166
 
167
+ def get_attachments_ids_from_issue(self, issue):
168
+ """
169
+ Get attachments IDs from jira issue
170
+ :param jira issue key: str
171
+ :return: list of integers attachment IDs
172
+ """
173
+ issue_id = self.get_issue(issue)["fields"]["attachment"]
174
+ list_attachments_id = []
175
+ for attachment in issue_id:
176
+ list_attachments_id.append({"filename": attachment["filename"], "attachment_id": attachment["id"]})
177
+ return list_attachments_id
178
+
166
179
  def get_attachment(self, attachment_id):
167
180
  """
168
181
  Returns the meta-data for an attachment, including the URI of the actual attached file
@@ -173,6 +186,44 @@ class Jira(AtlassianRestAPI):
173
186
  url = "{base_url}/{attachment_id}".format(base_url=base_url, attachment_id=attachment_id)
174
187
  return self.get(url)
175
188
 
189
+ def download_attachments_from_issue(self, issue, path=None, cloud=True):
190
+ """
191
+ Downloads all attachments from a Jira issue.
192
+ :param issue: The issue-key of the Jira issue
193
+ :param path: Path to directory where attachments will be saved. If None, current working directory will be used.
194
+ :param cloud: Use True for Jira Cloud, false when using Jira Data Center or Server
195
+ :return: A message indicating the result of the download operation.
196
+ """
197
+ try:
198
+ if path is None:
199
+ path = os.getcwd()
200
+ issue_id = self.issue(issue, fields="id")["id"]
201
+ if cloud:
202
+ url = self.url + f"/secure/issueAttachments/{issue_id}.zip"
203
+ else:
204
+ url = self.url + f"/secure/attachmentzip/{issue_id}.zip"
205
+ response = self._session.get(url)
206
+ attachment_name = f"{issue_id}_attachments.zip"
207
+ file_path = os.path.join(path, attachment_name)
208
+ # if Jira issue doesn't have any attachments _session.get request response will return 22 bytes of PKzip format
209
+ file_size = sum(len(chunk) for chunk in response.iter_content(8196))
210
+ if file_size == 22:
211
+ return "No attachments found on the Jira issue"
212
+ if os.path.isfile(file_path):
213
+ return "File already exists"
214
+ with open(file_path, "wb") as f:
215
+ f.write(response.content)
216
+ return "Attachments downloaded successfully"
217
+
218
+ except FileNotFoundError:
219
+ raise FileNotFoundError("Verify if directory path is correct and/or if directory exists")
220
+ except PermissionError:
221
+ raise PermissionError(
222
+ "Directory found, but there is a problem with saving file to this directory. Check directory permissions"
223
+ )
224
+ except Exception as e:
225
+ raise e
226
+
176
227
  def get_attachment_content(self, attachment_id):
177
228
  """
178
229
  Returns the content for an attachment
@@ -3,6 +3,7 @@ import logging
3
3
  from json import dumps
4
4
 
5
5
  import requests
6
+ from requests.adapters import HTTPAdapter
6
7
 
7
8
  try:
8
9
  from oauthlib.oauth1.rfc5849 import SIGNATURE_RSA_SHA512 as SIGNATURE_RSA
@@ -11,6 +12,7 @@ except ImportError:
11
12
  from requests import HTTPError
12
13
  from requests_oauthlib import OAuth1, OAuth2
13
14
  from six.moves.urllib.parse import urlencode
15
+ from urllib3.util import Retry
14
16
 
15
17
  from atlassian.request_utils import get_default_logger
16
18
 
@@ -61,7 +63,44 @@ class AtlassianRestAPI(object):
61
63
  proxies=None,
62
64
  token=None,
63
65
  cert=None,
66
+ backoff_and_retry=False,
67
+ retry_status_codes=[413, 429, 503],
68
+ max_backoff_seconds=1800,
69
+ max_backoff_retries=1000,
64
70
  ):
71
+ """
72
+ init function for the AtlassianRestAPI object.
73
+
74
+ :param url: The url to be used in the request.
75
+ :param username: Username. Defaults to None.
76
+ :param password: Password. Defaults to None.
77
+ :param timeout: Request timeout. Defaults to 75.
78
+ :param api_root: Root for the api requests. Defaults to "rest/api".
79
+ :param api_version: Version of the API to use. Defaults to "latest".
80
+ :param verify_ssl: Turn on / off SSL verification. Defaults to True.
81
+ :param session: Pass an existing Python requests session object. Defaults to None.
82
+ :param oauth: oauth. Defaults to None.
83
+ :param oauth2: oauth2. Defaults to None.
84
+ :param cookies: Cookies to send with the request. Defaults to None.
85
+ :param advanced_mode: Return results in advanced mode. Defaults to None.
86
+ :param kerberos: Kerberos. Defaults to None.
87
+ :param cloud: Specify if using Atlassian Cloud. Defaults to False.
88
+ :param proxies: Specify proxies to use. Defaults to None.
89
+ :param token: Atlassian / Jira auth token. Defaults to None.
90
+ :param cert: Client-side certificate to use. Defaults to None.
91
+ :param backoff_and_retry: Enable exponential backoff and retry.
92
+ This will retry the request if there is a predefined failure. Primarily
93
+ designed for Atlassian Cloud where API limits are commonly hit if doing
94
+ operations on many issues, and the limits require a cooling off period.
95
+ The wait period before the next request increases exponentially with each
96
+ failed retry. Defaults to False.
97
+ :param retry_status_codes: Errors to match, passed as a list of HTTP
98
+ response codes. Defaults to [413, 429, 503].
99
+ :param max_backoff_seconds: Max backoff seconds. When backing off, requests won't
100
+ wait any longer than this. Defaults to 1800.
101
+ :param max_backoff_retries: Maximum number of retries to try before
102
+ continuing. Defaults to 1000.
103
+ """
65
104
  self.url = url
66
105
  self.username = username
67
106
  self.password = password
@@ -78,6 +117,19 @@ class AtlassianRestAPI(object):
78
117
  self._session = requests.Session()
79
118
  else:
80
119
  self._session = session
120
+ if backoff_and_retry:
121
+ # Note: we only retry on status and not on any of the
122
+ # other supported reasons
123
+ retries = Retry(
124
+ total=None,
125
+ status=max_backoff_retries,
126
+ allowed_methods=None,
127
+ status_forcelist=retry_status_codes,
128
+ backoff_factor=1,
129
+ backoff_jitter=1,
130
+ backoff_max=max_backoff_seconds,
131
+ )
132
+ self._session.mount(self.url, HTTPAdapter(max_retries=retries))
81
133
  if username and password:
82
134
  self._create_basic_session(username, password)
83
135
  elif token is not None:
@@ -101,7 +153,7 @@ class AtlassianRestAPI(object):
101
153
  self._session.auth = (username, password)
102
154
 
103
155
  def _create_token_session(self, token):
104
- self._update_header("Authorization", "Bearer {token}".format(token=token))
156
+ self._update_header("Authorization", "Bearer {token}".format(token=token.strip()))
105
157
 
106
158
  def _create_kerberos_session(self, _):
107
159
  from requests_kerberos import OPTIONAL, HTTPKerberosAuth
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atlassian-python-api
3
- Version: 3.41.10
3
+ Version: 3.41.11
4
4
  Summary: Python Atlassian REST API Wrapper
5
5
  Home-page: https://github.com/atlassian-api/atlassian-python-api
6
6
  Download-URL: https://github.com/atlassian-api/atlassian-python-api
@@ -1 +0,0 @@
1
- 3.41.10