rucio-clients 34.4.1__tar.gz → 34.4.2__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.

Potentially problematic release.


This version of rucio-clients might be problematic. Click here for more details.

Files changed (188) hide show
  1. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/PKG-INFO +1 -1
  2. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/accountclient.py +43 -21
  3. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/baseclient.py +2 -2
  4. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/scopeclient.py +7 -3
  5. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/touchclient.py +7 -1
  6. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/types.py +17 -15
  7. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/vcsversion.py +3 -3
  8. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/pyproject.toml +1 -0
  9. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/AUTHORS.rst +0 -0
  10. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/ChangeLog +0 -0
  11. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/LICENSE +0 -0
  12. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/MANIFEST.in +0 -0
  13. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/README.rst +0 -0
  14. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/bin/rucio +0 -0
  15. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/bin/rucio-admin +0 -0
  16. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/etc/rse-accounts.cfg.template +0 -0
  17. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/etc/rucio.cfg.atlas.client.template +0 -0
  18. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/etc/rucio.cfg.template +0 -0
  19. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/__init__.py +0 -0
  20. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/alembicrevision.py +0 -0
  21. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/__init__.py +0 -0
  22. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/accountlimitclient.py +0 -0
  23. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/client.py +0 -0
  24. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/configclient.py +0 -0
  25. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/credentialclient.py +0 -0
  26. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/didclient.py +0 -0
  27. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/diracclient.py +0 -0
  28. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/downloadclient.py +0 -0
  29. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/exportclient.py +0 -0
  30. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/fileclient.py +0 -0
  31. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/importclient.py +0 -0
  32. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/lifetimeclient.py +0 -0
  33. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/lockclient.py +0 -0
  34. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/metaconventionsclient.py +0 -0
  35. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/pingclient.py +0 -0
  36. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/replicaclient.py +0 -0
  37. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/requestclient.py +0 -0
  38. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/rseclient.py +0 -0
  39. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/ruleclient.py +0 -0
  40. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/subscriptionclient.py +0 -0
  41. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/client/uploadclient.py +0 -0
  42. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/__init__.py +0 -0
  43. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/cache.py +0 -0
  44. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/config.py +0 -0
  45. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/constants.py +0 -0
  46. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/constraints.py +0 -0
  47. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/didtype.py +0 -0
  48. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/exception.py +0 -0
  49. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/extra.py +0 -0
  50. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/logging.py +0 -0
  51. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/pcache.py +0 -0
  52. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/plugins.py +0 -0
  53. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/policy.py +0 -0
  54. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/schema/__init__.py +0 -0
  55. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/schema/atlas.py +0 -0
  56. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/schema/belleii.py +0 -0
  57. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/schema/domatpc.py +0 -0
  58. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/schema/escape.py +0 -0
  59. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/schema/generic.py +0 -0
  60. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/schema/generic_multi_vo.py +0 -0
  61. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/schema/icecube.py +0 -0
  62. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/stomp_utils.py +0 -0
  63. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/stopwatch.py +0 -0
  64. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/test_rucio_server.py +0 -0
  65. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/common/utils.py +0 -0
  66. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/rse/__init__.py +0 -0
  67. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/rse/protocols/__init__.py +0 -0
  68. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/rse/protocols/bittorrent.py +0 -0
  69. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/rse/protocols/cache.py +0 -0
  70. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/rse/protocols/dummy.py +0 -0
  71. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/rse/protocols/gfal.py +0 -0
  72. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/rse/protocols/globus.py +0 -0
  73. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/rse/protocols/gsiftp.py +0 -0
  74. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/rse/protocols/http_cache.py +0 -0
  75. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/rse/protocols/mock.py +0 -0
  76. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/rse/protocols/ngarc.py +0 -0
  77. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/rse/protocols/posix.py +0 -0
  78. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/rse/protocols/protocol.py +0 -0
  79. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/rse/protocols/rclone.py +0 -0
  80. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/rse/protocols/rfio.py +0 -0
  81. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/rse/protocols/srm.py +0 -0
  82. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/rse/protocols/ssh.py +0 -0
  83. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/rse/protocols/storm.py +0 -0
  84. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/rse/protocols/webdav.py +0 -0
  85. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/rse/protocols/xrootd.py +0 -0
  86. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/rse/rsemanager.py +0 -0
  87. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio/version.py +0 -0
  88. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/lib/rucio_clients.egg-info/SOURCES.txt +0 -0
  89. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/pylintrc +0 -0
  90. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/requirements.txt +0 -0
  91. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/setup.cfg +0 -0
  92. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/setup.py +0 -0
  93. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/setuputil.py +0 -0
  94. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_abacus_account.py +0 -0
  95. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_abacus_collection_replica.py +0 -0
  96. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_abacus_rse.py +0 -0
  97. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_account.py +0 -0
  98. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_account_limits.py +0 -0
  99. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_api_external_representation.py +0 -0
  100. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_archive.py +0 -0
  101. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_auditor.py +0 -0
  102. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_auditor_hdfs.py +0 -0
  103. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_auditor_srmdumps.py +0 -0
  104. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_authentication.py +0 -0
  105. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_automatix.py +0 -0
  106. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_bad_replica.py +0 -0
  107. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_bb8.py +0 -0
  108. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_belleii.py +0 -0
  109. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_bin_rucio.py +0 -0
  110. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_boolean.py +0 -0
  111. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_clients.py +0 -0
  112. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_common_types.py +0 -0
  113. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_config.py +0 -0
  114. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_conveyor.py +0 -0
  115. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_conveyor_submitter.py +0 -0
  116. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_counter.py +0 -0
  117. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_credential.py +0 -0
  118. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_curl.py +0 -0
  119. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_daemons.py +0 -0
  120. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_dataset_replicas.py +0 -0
  121. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_db.py +0 -0
  122. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_did.py +0 -0
  123. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_did_meta_plugins.py +0 -0
  124. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_didtype.py +0 -0
  125. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_download.py +0 -0
  126. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_dumper.py +0 -0
  127. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_dumper_consistency.py +0 -0
  128. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_dumper_data_model.py +0 -0
  129. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_dumper_path_parsing.py +0 -0
  130. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_filter_engine.py +0 -0
  131. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_heartbeat.py +0 -0
  132. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_hermes.py +0 -0
  133. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_identity.py +0 -0
  134. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_impl_upload_download.py +0 -0
  135. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_import_export.py +0 -0
  136. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_judge_cleaner.py +0 -0
  137. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_judge_evaluator.py +0 -0
  138. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_judge_injector.py +0 -0
  139. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_judge_repairer.py +0 -0
  140. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_lifetime.py +0 -0
  141. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_message.py +0 -0
  142. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_meta_conventions.py +0 -0
  143. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_meta_did.py +0 -0
  144. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_module_import.py +0 -0
  145. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_monitor.py +0 -0
  146. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_multi_vo.py +0 -0
  147. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_naming_convention.py +0 -0
  148. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_oauthmanager.py +0 -0
  149. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_oidc.py +0 -0
  150. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_permission.py +0 -0
  151. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_pfns.py +0 -0
  152. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_ping.py +0 -0
  153. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_preparer.py +0 -0
  154. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_qos.py +0 -0
  155. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_quarantined_replica.py +0 -0
  156. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_reaper.py +0 -0
  157. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_redirect.py +0 -0
  158. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_replica.py +0 -0
  159. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_replica_recoverer.py +0 -0
  160. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_replica_sorting.py +0 -0
  161. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_request.py +0 -0
  162. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_root_proxy.py +0 -0
  163. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_rse.py +0 -0
  164. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_rse_expression_parser.py +0 -0
  165. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_rse_lfn2path.py +0 -0
  166. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_rse_protocol_gfal2.py +0 -0
  167. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_rse_protocol_gfal2_impl.py +0 -0
  168. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_rse_protocol_posix.py +0 -0
  169. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_rse_protocol_rclone.py +0 -0
  170. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_rse_protocol_rsync.py +0 -0
  171. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_rse_protocol_srm.py +0 -0
  172. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_rse_protocol_ssh.py +0 -0
  173. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_rse_protocol_webdav.py +0 -0
  174. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_rse_protocol_xrootd.py +0 -0
  175. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_rse_selector.py +0 -0
  176. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_rucio_server.py +0 -0
  177. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_rule.py +0 -0
  178. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_scope.py +0 -0
  179. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_subscription.py +0 -0
  180. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_throttler.py +0 -0
  181. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_tpc.py +0 -0
  182. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_trace.py +0 -0
  183. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_transfer.py +0 -0
  184. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_transfer_plugins.py +0 -0
  185. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_undertaker.py +0 -0
  186. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_upload.py +0 -0
  187. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tests/test_utils.py +0 -0
  188. {rucio_clients-34.4.1 → rucio_clients-34.4.2}/tools/merge_rucio_configs.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rucio-clients
3
- Version: 34.4.1
3
+ Version: 34.4.2
4
4
  Summary: Rucio Client Lite Package
5
5
  Home-page: https://rucio.cern.ch/
6
6
  Author: Rucio
@@ -13,6 +13,7 @@
13
13
  # limitations under the License.
14
14
 
15
15
  from json import dumps
16
+ from typing import TYPE_CHECKING, Any, Optional
16
17
  from urllib.parse import quote_plus
17
18
 
18
19
  from requests.status_codes import codes
@@ -20,6 +21,9 @@ from requests.status_codes import codes
20
21
  from rucio.client.baseclient import BaseClient, choice
21
22
  from rucio.common.utils import build_url
22
23
 
24
+ if TYPE_CHECKING:
25
+ from collections.abc import Iterator
26
+
23
27
 
24
28
  class AccountClient(BaseClient):
25
29
 
@@ -27,7 +31,7 @@ class AccountClient(BaseClient):
27
31
 
28
32
  ACCOUNTS_BASEURL = 'accounts'
29
33
 
30
- def add_account(self, account, type_, email):
34
+ def add_account(self, account: str, type_: str, email: str) -> bool:
31
35
  """
32
36
  Sends the request to create a new account.
33
37
 
@@ -49,7 +53,7 @@ class AccountClient(BaseClient):
49
53
  exc_cls, exc_msg = self._get_exception(headers=res.headers, status_code=res.status_code, data=res.content)
50
54
  raise exc_cls(exc_msg)
51
55
 
52
- def delete_account(self, account):
56
+ def delete_account(self, account: str) -> bool:
53
57
  """
54
58
  Sends the request to disable an account.
55
59
 
@@ -68,7 +72,7 @@ class AccountClient(BaseClient):
68
72
  exc_cls, exc_msg = self._get_exception(headers=res.headers, status_code=res.status_code, data=res.content)
69
73
  raise exc_cls(exc_msg)
70
74
 
71
- def get_account(self, account):
75
+ def get_account(self, account: str) -> Optional[dict[str, Any]]:
72
76
  """
73
77
  Sends the request to get information about a given account.
74
78
 
@@ -87,7 +91,7 @@ class AccountClient(BaseClient):
87
91
  exc_cls, exc_msg = self._get_exception(headers=res.headers, status_code=res.status_code, data=res.content)
88
92
  raise exc_cls(exc_msg)
89
93
 
90
- def update_account(self, account, key, value):
94
+ def update_account(self, account: str, key: str, value: Any) -> bool:
91
95
  """ Update a property of an account.
92
96
 
93
97
  :param account: Name of the account.
@@ -106,7 +110,12 @@ class AccountClient(BaseClient):
106
110
  exc_cls, exc_msg = self._get_exception(headers=res.headers, status_code=res.status_code, data=res.content)
107
111
  raise exc_cls(exc_msg)
108
112
 
109
- def list_accounts(self, account_type=None, identity=None, filters=None):
113
+ def list_accounts(
114
+ self,
115
+ account_type: Optional[str] = None,
116
+ identity: Optional[str] = None,
117
+ filters: Optional[dict[str, Any]] = None
118
+ ) -> "Iterator[dict[str, Any]]":
110
119
  """
111
120
  Sends the request to list all rucio accounts.
112
121
 
@@ -137,7 +146,7 @@ class AccountClient(BaseClient):
137
146
  exc_cls, exc_msg = self._get_exception(headers=res.headers, status_code=res.status_code, data=res.content)
138
147
  raise exc_cls(exc_msg)
139
148
 
140
- def whoami(self):
149
+ def whoami(self) -> Optional[dict[str, Any]]:
141
150
  """
142
151
  Get information about account whose token is used
143
152
 
@@ -146,7 +155,15 @@ class AccountClient(BaseClient):
146
155
  """
147
156
  return self.get_account('whoami')
148
157
 
149
- def add_identity(self, account, identity, authtype, email, default=False, password=None):
158
+ def add_identity(
159
+ self,
160
+ account: str,
161
+ identity: str,
162
+ authtype: str,
163
+ email: str,
164
+ default: bool = False,
165
+ password: Optional[str] = None
166
+ ) -> bool:
150
167
  """
151
168
  Adds a membership association between identity and account.
152
169
 
@@ -171,7 +188,12 @@ class AccountClient(BaseClient):
171
188
  exc_cls, exc_msg = self._get_exception(headers=res.headers, status_code=res.status_code, data=res.content)
172
189
  raise exc_cls(exc_msg)
173
190
 
174
- def del_identity(self, account, identity, authtype):
191
+ def del_identity(
192
+ self,
193
+ account: str,
194
+ identity: str,
195
+ authtype: str
196
+ ) -> bool:
175
197
  """
176
198
  Delete an identity's membership association with an account.
177
199
 
@@ -194,7 +216,7 @@ class AccountClient(BaseClient):
194
216
  exc_cls, exc_msg = self._get_exception(headers=res.headers, status_code=res.status_code, data=res.content)
195
217
  raise exc_cls(exc_msg)
196
218
 
197
- def list_identities(self, account):
219
+ def list_identities(self, account: str) -> "Iterator[dict[str, Any]]":
198
220
  """
199
221
  List all identities on an account.
200
222
 
@@ -210,7 +232,7 @@ class AccountClient(BaseClient):
210
232
  exc_cls, exc_msg = self._get_exception(headers=res.headers, status_code=res.status_code, data=res.content)
211
233
  raise exc_cls(exc_msg)
212
234
 
213
- def list_account_rules(self, account):
235
+ def list_account_rules(self, account: str) -> "Iterator[dict[str, Any]]":
214
236
  """
215
237
  List the associated rules of an account.
216
238
 
@@ -226,7 +248,7 @@ class AccountClient(BaseClient):
226
248
  exc_cls, exc_msg = self._get_exception(headers=res.headers, status_code=res.status_code, data=res.content)
227
249
  raise exc_cls(exc_msg)
228
250
 
229
- def get_account_limits(self, account, rse_expression, locality):
251
+ def get_account_limits(self, account: str, rse_expression: str, locality: str) -> dict[str, Any]:
230
252
  """
231
253
  Return the correct account limits for the given locality.
232
254
 
@@ -243,7 +265,7 @@ class AccountClient(BaseClient):
243
265
  from rucio.common.exception import UnsupportedOperation
244
266
  raise UnsupportedOperation('The provided locality (%s) for the account limit was invalid' % locality)
245
267
 
246
- def get_global_account_limit(self, account, rse_expression):
268
+ def get_global_account_limit(self, account: str, rse_expression: str) -> dict[str, Any]:
247
269
  """
248
270
  List the account limit for the specific RSE expression.
249
271
 
@@ -259,7 +281,7 @@ class AccountClient(BaseClient):
259
281
  exc_cls, exc_msg = self._get_exception(headers=res.headers, status_code=res.status_code, data=res.content)
260
282
  raise exc_cls(exc_msg)
261
283
 
262
- def get_global_account_limits(self, account):
284
+ def get_global_account_limits(self, account: str) -> dict[str, Any]:
263
285
  """
264
286
  List all RSE expression limits of this account.
265
287
 
@@ -274,7 +296,7 @@ class AccountClient(BaseClient):
274
296
  exc_cls, exc_msg = self._get_exception(headers=res.headers, status_code=res.status_code, data=res.content)
275
297
  raise exc_cls(exc_msg)
276
298
 
277
- def get_local_account_limits(self, account):
299
+ def get_local_account_limits(self, account: str) -> dict[str, Any]:
278
300
  """
279
301
  List the account rse limits of this account.
280
302
 
@@ -289,7 +311,7 @@ class AccountClient(BaseClient):
289
311
  exc_cls, exc_msg = self._get_exception(headers=res.headers, status_code=res.status_code, data=res.content)
290
312
  raise exc_cls(exc_msg)
291
313
 
292
- def get_local_account_limit(self, account, rse):
314
+ def get_local_account_limit(self, account: str, rse: str) -> dict[str, Any]:
293
315
  """
294
316
  List the account rse limits of this account for the specific rse.
295
317
 
@@ -305,7 +327,7 @@ class AccountClient(BaseClient):
305
327
  exc_cls, exc_msg = self._get_exception(headers=res.headers, status_code=res.status_code, data=res.content)
306
328
  raise exc_cls(exc_msg)
307
329
 
308
- def get_local_account_usage(self, account, rse=None):
330
+ def get_local_account_usage(self, account: str, rse: Optional[str] = None) -> "Iterator[dict[str, Any]]":
309
331
  """
310
332
  List the account usage for one or all rses of this account.
311
333
 
@@ -324,7 +346,7 @@ class AccountClient(BaseClient):
324
346
  exc_cls, exc_msg = self._get_exception(headers=res.headers, status_code=res.status_code, data=res.content)
325
347
  raise exc_cls(exc_msg)
326
348
 
327
- def get_global_account_usage(self, account, rse_expression=None):
349
+ def get_global_account_usage(self, account: str, rse_expression: Optional[str] = None) -> "Iterator[dict[str, Any]]":
328
350
  """
329
351
  List the account usage for one or all RSE expressions of this account.
330
352
 
@@ -343,7 +365,7 @@ class AccountClient(BaseClient):
343
365
  exc_cls, exc_msg = self._get_exception(headers=res.headers, status_code=res.status_code, data=res.content)
344
366
  raise exc_cls(exc_msg)
345
367
 
346
- def get_account_usage_history(self, account, rse):
368
+ def get_account_usage_history(self, account: str, rse: str) -> dict[str, Any]:
347
369
  """
348
370
  List the account usage history of this account on rse.
349
371
 
@@ -359,7 +381,7 @@ class AccountClient(BaseClient):
359
381
  exc_cls, exc_msg = self._get_exception(headers=res.headers, status_code=res.status_code, data=res.content)
360
382
  raise exc_cls(exc_msg)
361
383
 
362
- def list_account_attributes(self, account):
384
+ def list_account_attributes(self, account: str) -> "Iterator[dict[dict[str, Any], Any]]":
363
385
  """
364
386
  List the attributes for an account.
365
387
 
@@ -374,7 +396,7 @@ class AccountClient(BaseClient):
374
396
  exc_cls, exc_msg = self._get_exception(headers=res.headers, status_code=res.status_code, data=res.content)
375
397
  raise exc_cls(exc_msg)
376
398
 
377
- def add_account_attribute(self, account, key, value):
399
+ def add_account_attribute(self, account: str, key: str, value: Any) -> bool:
378
400
  """
379
401
  Adds an attribute to an account.
380
402
 
@@ -393,7 +415,7 @@ class AccountClient(BaseClient):
393
415
  exc_cls, exc_msg = self._get_exception(headers=res.headers, status_code=res.status_code, data=res.content)
394
416
  raise exc_cls(exc_msg)
395
417
 
396
- def delete_account_attribute(self, account, key):
418
+ def delete_account_attribute(self, account: str, key: str) -> bool:
397
419
  """
398
420
  Delete an attribute for an account.
399
421
 
@@ -879,8 +879,8 @@ class BaseClient:
879
879
  return False
880
880
 
881
881
  try:
882
- token_file_handler = open(self.token_file, 'r')
883
- self.auth_token = token_file_handler.readline()
882
+ with open(self.token_file, 'r') as token_file_handler:
883
+ self.auth_token = token_file_handler.readline()
884
884
  self.headers['X-Rucio-Auth-Token'] = self.auth_token
885
885
  except OSError as error:
886
886
  print("I/O error({0}): {1}".format(error.errno, error.strerror))
@@ -27,7 +27,11 @@ class ScopeClient(BaseClient):
27
27
 
28
28
  SCOPE_BASEURL = 'accounts'
29
29
 
30
- def add_scope(self, account, scope):
30
+ def add_scope(
31
+ self,
32
+ account: str,
33
+ scope: str
34
+ ) -> bool:
31
35
  """
32
36
  Sends the request to add a new scope.
33
37
 
@@ -47,7 +51,7 @@ class ScopeClient(BaseClient):
47
51
  exc_cls, exc_msg = self._get_exception(headers=r.headers, status_code=r.status_code, data=r.content)
48
52
  raise exc_cls(exc_msg)
49
53
 
50
- def list_scopes(self):
54
+ def list_scopes(self) -> list[str]:
51
55
  """
52
56
  Sends the request to list all scopes.
53
57
 
@@ -64,7 +68,7 @@ class ScopeClient(BaseClient):
64
68
  exc_cls, exc_msg = self._get_exception(headers=r.headers, status_code=r.status_code, data=r.content)
65
69
  raise exc_cls(exc_msg)
66
70
 
67
- def list_scopes_for_account(self, account):
71
+ def list_scopes_for_account(self, account: str) -> list[str]:
68
72
  """
69
73
  Sends the request to list all scopes for a rucio account.
70
74
 
@@ -13,6 +13,7 @@
13
13
  # limitations under the License.
14
14
 
15
15
  from json import dumps
16
+ from typing import Optional
16
17
 
17
18
  from requests import post
18
19
 
@@ -30,7 +31,12 @@ class TouchClient(BaseClient):
30
31
  DIDS_BASEURL = 'dids'
31
32
  TRACES_BASEURL = 'traces'
32
33
 
33
- def touch(self, scope, name, rse=None):
34
+ def touch(
35
+ self,
36
+ scope: str,
37
+ name: str,
38
+ rse: Optional[str] = None
39
+ ) -> None:
34
40
  """
35
41
  Sends a touch trace for a given file or dataset.
36
42
 
@@ -24,7 +24,7 @@ class InternalType:
24
24
  '''
25
25
  Base for Internal representations of string types
26
26
  '''
27
- def __init__(self, value, vo='def', fromExternal=True):
27
+ def __init__(self, value: Optional[str], vo: str = 'def', fromExternal: bool = True):
28
28
  if value is None:
29
29
  self.external = None
30
30
  self.internal = None
@@ -73,20 +73,22 @@ class InternalType:
73
73
  def __hash__(self):
74
74
  return hash(self.internal)
75
75
 
76
- def _calc_external(self):
76
+ def _calc_external(self) -> tuple[str, str]:
77
77
  ''' Utility to convert between internal and external representations'''
78
- split = self.internal.split('@', 1)
79
- if len(split) == 1: # if cannot convert, vo is '' and this is single vo
80
- vo = 'def'
81
- external = split[0]
82
- else:
83
- vo = split[1]
84
- external = split[0]
85
- return vo, external
86
-
87
- def _calc_internal(self):
78
+ if isinstance(self.internal, str):
79
+ split = self.internal.split('@', 1)
80
+ if len(split) == 1: # if cannot convert, vo is '' and this is single vo
81
+ vo = 'def'
82
+ external = split[0]
83
+ else:
84
+ vo = split[1]
85
+ external = split[0]
86
+ return vo, external
87
+ return '', ''
88
+
89
+ def _calc_internal(self) -> str:
88
90
  ''' Utility to convert between internal and external representations'''
89
- if self.vo == 'def':
91
+ if self.vo == 'def' and self.external is not None:
90
92
  return self.external
91
93
  internal = '{}@{}'.format(self.external, self.vo)
92
94
  return internal
@@ -96,7 +98,7 @@ class InternalAccount(InternalType):
96
98
  '''
97
99
  Internal representation of an account
98
100
  '''
99
- def __init__(self, account, vo='def', fromExternal=True):
101
+ def __init__(self, account: Optional[str], vo: str = 'def', fromExternal: bool = True):
100
102
  super(InternalAccount, self).__init__(value=account, vo=vo, fromExternal=fromExternal)
101
103
 
102
104
 
@@ -104,7 +106,7 @@ class InternalScope(InternalType):
104
106
  '''
105
107
  Internal representation of a scope
106
108
  '''
107
- def __init__(self, scope, vo='def', fromExternal=True):
109
+ def __init__(self, scope: Optional[str], vo: str = 'def', fromExternal: bool = True):
108
110
  super(InternalScope, self).__init__(value=scope, vo=vo, fromExternal=fromExternal)
109
111
 
110
112
 
@@ -4,8 +4,8 @@ This file is automatically generated; Do not edit it. :)
4
4
  '''
5
5
  VERSION_INFO = {
6
6
  'final': True,
7
- 'version': '34.4.1',
7
+ 'version': '34.4.2',
8
8
  'branch_nick': 'release-34',
9
- 'revision_id': '6699a667cf3cd9785086857295f70bc66c7c2174',
10
- 'revno': 12863
9
+ 'revision_id': '534cf95bc494f948d820be9410ac498e1dab1cbd',
10
+ 'revno': 12877
11
11
  }
@@ -56,6 +56,7 @@ ignore = [
56
56
  "UP030", # Use implicit references for positional format fields
57
57
  "UP031", # Use format specifiers instead of percent format
58
58
  "UP032", # Use f-string instead of `format` call
59
+ "UP037", # Remove quotes from type annotation. Seeing possible false positives caused by https://github.com/astral-sh/ruff/pull/11485
59
60
  "S101", # Pending https://github.com/rucio/rucio/issues/6680
60
61
  "S105", # Pending https://github.com/rucio/rucio/issues/6696
61
62
  "S108", # Pending https://github.com/rucio/rucio/issues/6655
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes