tracebloc 7.0.0__tar.gz → 7.0.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.
Files changed (220) hide show
  1. {tracebloc-7.0.0 → tracebloc-7.0.2}/PKG-INFO +1 -1
  2. {tracebloc-7.0.0 → tracebloc-7.0.2}/pyproject.toml +10 -39
  3. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/config.py +46 -22
  4. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/user.py +8 -6
  5. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc.egg-info/PKG-INFO +1 -1
  6. {tracebloc-7.0.0 → tracebloc-7.0.2}/MANIFEST.in +0 -0
  7. {tracebloc-7.0.0 → tracebloc-7.0.2}/README.md +0 -0
  8. {tracebloc-7.0.0 → tracebloc-7.0.2}/license.txt +0 -0
  9. {tracebloc-7.0.0 → tracebloc-7.0.2}/setup.cfg +0 -0
  10. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/__init__.py +0 -0
  11. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/api/__init__.py +0 -0
  12. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/api/experiment_status.py +0 -0
  13. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/api/multipart.py +0 -0
  14. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/api/responses.py +0 -0
  15. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/auth/__init__.py +0 -0
  16. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/auth/cli_profile.py +0 -0
  17. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/auth/env_login.py +0 -0
  18. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/checks.py +0 -0
  19. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/client.py +0 -0
  20. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/compat/__init__.py +0 -0
  21. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/compat/deprecation.py +0 -0
  22. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/compat/frameworks.py +0 -0
  23. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/console/__init__.py +0 -0
  24. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/console/logger.py +0 -0
  25. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/contracts/stage_urls.v1.json +0 -0
  26. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/contracts/stage_urls.v1.source.json +0 -0
  27. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/contracts/survival_payload.py +0 -0
  28. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/contracts/training_requirements.source.json +0 -0
  29. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/contracts/training_requirements.txt +0 -0
  30. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/__init__.py +0 -0
  31. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/acceptance.py +0 -0
  32. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/families/__init__.py +0 -0
  33. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/families/hf/__init__.py +0 -0
  34. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/families/hf/_build.py +0 -0
  35. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/families/hf/_length.py +0 -0
  36. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/families/hf/_model_type.py +0 -0
  37. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/families/tabular.py +0 -0
  38. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/families/vision/__init__.py +0 -0
  39. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/families/vision/_matching.py +0 -0
  40. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/gate.py +0 -0
  41. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/heads.py +0 -0
  42. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/interfaces.py +0 -0
  43. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/licence/__init__.py +0 -0
  44. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/licence/spdx.py +0 -0
  45. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/outputs.py +0 -0
  46. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/__init__.py +0 -0
  47. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/arguments.py +0 -0
  48. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/assemble.py +0 -0
  49. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/checkpoint.py +0 -0
  50. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/gate_rules.py +0 -0
  51. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/generate.py +0 -0
  52. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/head.py +0 -0
  53. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/import_check.py +0 -0
  54. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/layer0.py +0 -0
  55. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/live.py +0 -0
  56. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/model_class.py +0 -0
  57. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/remote.py +0 -0
  58. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/repo.py +0 -0
  59. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/shake.py +0 -0
  60. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/source_tree.py +0 -0
  61. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/package.py +0 -0
  62. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/package_folder.py +0 -0
  63. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/padding.py +0 -0
  64. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/report.py +0 -0
  65. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/tokenizers.py +0 -0
  66. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/training_versions.py +0 -0
  67. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/datasets/__init__.py +0 -0
  68. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/datasets/base.py +0 -0
  69. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/datasets/detection.py +0 -0
  70. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/datasets/keypoint_detection.py +0 -0
  71. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/datasets/semantic_segmentation.py +0 -0
  72. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/datasets/tabular.py +0 -0
  73. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/datasets/text.py +0 -0
  74. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/datasets/time_series.py +0 -0
  75. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/datasets/time_to_event.py +0 -0
  76. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/downloads/lifelines_weights.py +0 -0
  77. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/downloads/seed_weights.py +0 -0
  78. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/exceptions.py +0 -0
  79. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/fetch.py +0 -0
  80. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/inference.py +0 -0
  81. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/__init__.py +0 -0
  82. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/answer.py +0 -0
  83. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/augmentation_methods.py +0 -0
  84. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/check_model.py +0 -0
  85. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/conversion.py +0 -0
  86. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/data_methods.py +0 -0
  87. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/library.py +0 -0
  88. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/link_checks.py +0 -0
  89. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/model_dataset.py +0 -0
  90. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/regeneration.py +0 -0
  91. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/response.py +0 -0
  92. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/stored.py +0 -0
  93. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/training_methods.py +0 -0
  94. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/upload_methods.py +0 -0
  95. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/user_methods.py +0 -0
  96. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/notebook/__init__.py +0 -0
  97. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/notebook/templates/_partials.tpl +0 -0
  98. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/notebook/templates/embeddings.tpl +0 -0
  99. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/notebook/templates/nlp_finetune.tpl +0 -0
  100. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/notebook/templates/nlp_generative.tpl +0 -0
  101. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/notebook/templates/survival.tpl +0 -0
  102. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/notebook/templates/tabular_timeseries.tpl +0 -0
  103. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/notebook/templates/vision_from_scratch.tpl +0 -0
  104. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/py.typed +0 -0
  105. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/__init__.py +0 -0
  106. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/classes.py +0 -0
  107. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/declaration.py +0 -0
  108. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/fitted_model.py +0 -0
  109. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/frame_recording.py +0 -0
  110. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/link_check.py +0 -0
  111. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/pairs.py +0 -0
  112. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/schema.py +0 -0
  113. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/seed_prefixes.py +0 -0
  114. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/sklearn_check.py +0 -0
  115. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/survival.py +0 -0
  116. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/torch_checks.py +0 -0
  117. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/width_note.py +0 -0
  118. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/__init__.py +0 -0
  119. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/augmentation.py +0 -0
  120. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/callbacks.py +0 -0
  121. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/converted.py +0 -0
  122. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/features.py +0 -0
  123. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/image_channels.py +0 -0
  124. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/image_size.py +0 -0
  125. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/link_total.py +0 -0
  126. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/lora.py +0 -0
  127. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/lora_validation.py +0 -0
  128. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/loss.py +0 -0
  129. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/loss_policy.py +0 -0
  130. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/loss_source.py +0 -0
  131. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/memory_estimate.py +0 -0
  132. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/memory_sizing.py +0 -0
  133. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/plan.py +0 -0
  134. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/preprocessing.py +0 -0
  135. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/shape.py +0 -0
  136. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/subdataset.py +0 -0
  137. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/submitter.py +0 -0
  138. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/summary.py +0 -0
  139. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/__init__.py +0 -0
  140. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/lifelines_time_to_event.py +0 -0
  141. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/loss_config.py +0 -0
  142. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/model_params.py +0 -0
  143. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/model_upload.py +0 -0
  144. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/nlp_probes.py +0 -0
  145. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/scikit_survival_time_to_event.py +0 -0
  146. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/skl_tabular_base.py +0 -0
  147. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/skl_tabular_classifier.py +0 -0
  148. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/skl_tabular_regression.py +0 -0
  149. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/statistical_base.py +0 -0
  150. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/survival_base.py +0 -0
  151. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_causal_language_modeler.py +0 -0
  152. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_embeddings.py +0 -0
  153. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_handler.py +0 -0
  154. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_image_classifier.py +0 -0
  155. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_key_point_detector.py +0 -0
  156. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_masked_language_modeler.py +0 -0
  157. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_multi_label_text_classifier.py +0 -0
  158. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_nlp_base.py +0 -0
  159. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_object_detector.py +0 -0
  160. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_semantic_segmentation.py +0 -0
  161. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_sentence_pair_classifier.py +0 -0
  162. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_seq2seq_modeler.py +0 -0
  163. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_smoke_loop.py +0 -0
  164. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_tabular_classifier.py +0 -0
  165. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_tabular_regression.py +0 -0
  166. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_text_classifier.py +0 -0
  167. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_text_regressor.py +0 -0
  168. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_time_series_classifier.py +0 -0
  169. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_time_series_forecaster.py +0 -0
  170. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_time_to_event.py +0 -0
  171. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_token_classifier.py +0 -0
  172. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/weights_averaging.py +0 -0
  173. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/weights_check.py +0 -0
  174. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/weights_parts.py +0 -0
  175. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/__init__.py +0 -0
  176. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/class_order.py +0 -0
  177. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/constants.py +0 -0
  178. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/custom_loss_probe.py +0 -0
  179. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/data_probes.py +0 -0
  180. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/declared_classes.py +0 -0
  181. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/declared_cls.py +0 -0
  182. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/detection_utils.py +0 -0
  183. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/device.py +0 -0
  184. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/entry_point.py +0 -0
  185. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/errors.py +0 -0
  186. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/feature_dict.py +0 -0
  187. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/loss_shape.py +0 -0
  188. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/model_loading.py +0 -0
  189. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/model_params.py +0 -0
  190. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/nlp_model_probes.py +0 -0
  191. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/peak_memory.py +0 -0
  192. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/registry.py +0 -0
  193. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/resources.py +0 -0
  194. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/safetensors_io.py +0 -0
  195. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/sequence_length.py +0 -0
  196. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/staging.py +0 -0
  197. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/synthetic_self_supervised.py +0 -0
  198. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/synthetic_text.py +0 -0
  199. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/tabular_classification_utils.py +0 -0
  200. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/tabular_custom_loss_utils.py +0 -0
  201. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/tabular_regression_utils.py +0 -0
  202. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/time_series_utils.py +0 -0
  203. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/time_to_event_utils.py +0 -0
  204. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/tokenizer_checks.py +0 -0
  205. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/warnings_once.py +0 -0
  206. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/weight_loaders.py +0 -0
  207. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/weights_caps.py +0 -0
  208. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/validation/__init__.py +0 -0
  209. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/validation/checker.py +0 -0
  210. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/validation/estimator_checks.py +0 -0
  211. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/validation/header_rules.py +0 -0
  212. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/validation/lifelines_checks.py +0 -0
  213. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/validation/pytorch_checks.py +0 -0
  214. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/validation/rewriter.py +0 -0
  215. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/validation/scikit_survival_checks.py +0 -0
  216. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/validation/sklearn_checks.py +0 -0
  217. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc.egg-info/SOURCES.txt +0 -0
  218. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc.egg-info/dependency_links.txt +0 -0
  219. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc.egg-info/requires.txt +0 -0
  220. {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tracebloc
3
- Version: 7.0.0
3
+ Version: 7.0.2
4
4
  Summary: Build AI with anyone. On data that can't move. SDK for the tracebloc collaborative AI workspace.
5
5
  Author-email: tracebloc <lukas@tracebloc.io>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "tracebloc"
7
- version = "7.0.0"
7
+ version = "7.0.2"
8
8
  description = "Build AI with anyone. On data that can't move. SDK for the tracebloc collaborative AI workspace."
9
9
  license = "MIT"
10
10
  license-files = ["license.txt"]
@@ -273,50 +273,21 @@ ignore = ["N812"]
273
273
  "tracebloc/upload/scikit_survival_time_to_event.py" = ["N806"]
274
274
 
275
275
  # --- pyright (tracebloc/backend#9172) --------------------------------------
276
- # Basic mode over every module under tracebloc/; a module moved or added is in
277
- # it with no edit here. `strict` names the modules or directories held to strict
278
- # mode, grown one package at a time (tracebloc/backend#9179). `make typecheck`
279
- # runs scripts/check_pyright_baseline.py, which holds the errors per package and
280
- # rule to pyright-baseline.json, a count that only goes down.
276
+ # Strict over every module under tracebloc/, with no list of packages for PRs to
277
+ # edit (tests/test_pyproject_layout.py). `make typecheck` holds the errors to
278
+ # pyright-baseline.json, which only goes down (scripts/check_pyright_baseline.py).
281
279
  [tool.pyright]
282
280
  include = ["tracebloc"]
283
- typeCheckingMode = "basic"
281
+ typeCheckingMode = "strict"
284
282
  pythonVersion = "3.11"
285
- # One entry per line, sorted, each with a trailing comma, so PRs adding packages
286
- # far apart in the list edit different lines (tests/test_pyproject_layout.py).
287
- strict = [
288
- "tracebloc/__init__.py",
289
- "tracebloc/api",
290
- "tracebloc/auth",
291
- "tracebloc/checks.py",
292
- "tracebloc/client.py",
293
- "tracebloc/compat",
294
- "tracebloc/config.py",
295
- "tracebloc/console",
296
- "tracebloc/contracts",
297
- "tracebloc/convert",
298
- "tracebloc/datasets",
299
- "tracebloc/downloads",
300
- "tracebloc/exceptions.py",
301
- "tracebloc/fetch.py",
302
- "tracebloc/inference.py",
303
- "tracebloc/linking",
304
- "tracebloc/notebook",
305
- "tracebloc/raw_mode",
306
- "tracebloc/training",
307
- "tracebloc/upload",
308
- "tracebloc/user.py",
309
- "tracebloc/utils",
310
- "tracebloc/validation",
311
- ]
312
283
 
313
284
  # --- import-linter (layers, tracebloc/backend#9172) -----------------------
314
285
  # `make lint` runs `lint-imports`. A layer may import any layer below it, never
315
- # one above, directly or through a chain. Each `ignore_imports` entry is an
316
- # import that goes upward on develop today, named with the workstream ticket that
317
- # removes it; an entry that no longer matches an import fails the contract, so
318
- # the list only shrinks. `validation` sits below `convert`: convert reads its
319
- # header rules and rewriter.
286
+ # one above, directly or through a chain; `validation` sits below `convert`, which
287
+ # reads its header rules and rewriter. Each `ignore_imports` entry is an upward
288
+ # import, one per line, sorted, with a trailing `# tracebloc/<repo>#N` comment
289
+ # naming the ticket that removes it (tests/test_pyproject_layout.py); an entry
290
+ # that no longer matches an import fails the contract, so the list only shrinks.
320
291
 
321
292
  [tool.importlinter]
322
293
  root_package = "tracebloc"
@@ -15,6 +15,8 @@ from importlib import resources
15
15
  from typing import Any, ClassVar, Mapping, Optional
16
16
  from urllib.parse import urlparse
17
17
 
18
+ from .exceptions import TraceblocError
19
+
18
20
  #: The backend's stage -> API base URL contract, vendored byte-for-byte and
19
21
  #: pinned by ``contracts/stage_urls.v1.source.json`` beside it. The API half
20
22
  #: of every stage row below comes from it, so the SDK cannot drift from the
@@ -25,16 +27,26 @@ _STAGE_URLS_CONTRACT = ("contracts", "stage_urls.v1.json")
25
27
  #: only, so this half stays here, keyed by the contract's canonical names.
26
28
  _STAGE_FRONTENDS: Mapping[str, str] = {
27
29
  "local": "http://localhost:3000/",
28
- "dev": "https://dev.tracebloc.io/",
29
30
  "stg": "https://stg.tracebloc.io/",
30
31
  "prod": "https://ai.tracebloc.io/",
31
32
  }
32
33
 
33
- #: Names the SDK accepted before the contract existed that the contract does
34
- #: not carry: ``"ds"`` is a legacy alias for development preserved from the
35
- #: training-plan facade's original inline logic, and ``""`` is production
36
- #: for compatibility with the original ``env_url``.
37
- _SDK_ONLY_ALIASES: Mapping[str, str] = {"ds": "dev", "": "prod"}
34
+ #: A name the SDK accepted before the contract existed that the contract does
35
+ #: not carry: ``""`` is production, for compatibility with the original
36
+ #: ``env_url``.
37
+ _SDK_ONLY_ALIASES: Mapping[str, str] = {"": "prod"}
38
+
39
+ #: The dev deployment is switched off. Its stage and every name for it
40
+ #: (the contract's ``"development"``, the SDK's legacy ``"ds"``) raise
41
+ #: :class:`RetiredStageError`, whether or not the vendored contract still
42
+ #: lists it, so the backend dropping it from the contract changes nothing.
43
+ _RETIRED_STAGES = frozenset({"dev", "development", "ds"})
44
+
45
+ _RETIRED_MESSAGE = "the dev environment was retired; use staging"
46
+
47
+
48
+ class RetiredStageError(TraceblocError, ValueError):
49
+ """A stage names a tracebloc deployment that was switched off."""
38
50
 
39
51
 
40
52
  def _stage_contract() -> dict[str, Any]:
@@ -46,7 +58,16 @@ def _stage_contract() -> dict[str, Any]:
46
58
  _CONTRACT = _stage_contract()
47
59
 
48
60
 
49
- def _stage_table() -> dict[str, tuple[str, str]]:
61
+ def _contract_aliases(contract: dict[str, Any]) -> dict[str, str]:
62
+ """The contract's aliases, without any of a retired stage."""
63
+ return {
64
+ alias: stage
65
+ for alias, stage in contract.get("aliases", {}).items()
66
+ if stage not in _RETIRED_STAGES and alias not in _RETIRED_STAGES
67
+ }
68
+
69
+
70
+ def _stage_table(contract: dict[str, Any]) -> dict[str, tuple[str, str]]:
50
71
  """name -> (api_base_url, frontend_url) for every stage and alias.
51
72
 
52
73
  Each contract URL is a bare origin; the SDK joins request paths onto
@@ -54,13 +75,12 @@ def _stage_table() -> dict[str, tuple[str, str]]:
54
75
  A contract stage with no frontend above is left out rather than given
55
76
  an invented one — the contract test fails on it instead.
56
77
  """
57
- contract = _CONTRACT
58
78
  canonical = {
59
79
  stage: (url + "/", _STAGE_FRONTENDS[stage])
60
80
  for stage, url in contract["stages"].items()
61
- if stage in _STAGE_FRONTENDS
81
+ if stage in _STAGE_FRONTENDS and stage not in _RETIRED_STAGES
62
82
  }
63
- aliases = {**_SDK_ONLY_ALIASES, **contract["aliases"]}
83
+ aliases = {**_SDK_ONLY_ALIASES, **_contract_aliases(contract)}
64
84
  table = dict(canonical)
65
85
  for alias, stage in aliases.items():
66
86
  if stage in canonical:
@@ -68,11 +88,11 @@ def _stage_table() -> dict[str, tuple[str, str]]:
68
88
  return table
69
89
 
70
90
 
71
- _STAGES = _stage_table()
91
+ _STAGES = _stage_table(_CONTRACT)
72
92
 
73
93
  #: The contract's own aliases (``"staging"`` -> ``"stg"``), without the SDK-only
74
94
  #: ones: the tracebloc CLI folds its profile keys with exactly these.
75
- _CONTRACT_ALIASES: Mapping[str, str] = _CONTRACT["aliases"]
95
+ _CONTRACT_ALIASES: Mapping[str, str] = _contract_aliases(_CONTRACT)
76
96
 
77
97
 
78
98
  @dataclass(frozen=True)
@@ -80,8 +100,8 @@ class TraceblocConfig:
80
100
  """Immutable URL + timeout configuration for a tracebloc environment.
81
101
 
82
102
  Use :meth:`for_environment` to construct an instance from a named
83
- stage (``"local"``, ``"dev"``, ``"stg"``, ``"prod"``, or their
84
- aliases ``"development"``, ``"staging"``, ``"production"``). For
103
+ stage (``"local"``, ``"stg"``, ``"prod"``, or their aliases
104
+ ``"staging"``, ``"production"``). For
85
105
  custom setups, build the dataclass directly. The defaults are
86
106
  production's.
87
107
  """
@@ -96,8 +116,8 @@ class TraceblocConfig:
96
116
  verbose_errors: bool = False
97
117
 
98
118
  # Internal stage → (api_base_url, frontend_url) mapping: every stage and
99
- # alias of the backend's contract (``_stage_table`` above), plus the two
100
- # SDK-only legacy names ``"ds"`` and ``""``.
119
+ # alias of the backend's contract but a retired one (``_stage_table``
120
+ # above), plus the SDK-only name ``""``.
101
121
  _ENVIRONMENTS: ClassVar[Mapping[str, tuple[str, str]]] = _STAGES
102
122
 
103
123
  #: Port a scheme already implies, so naming it changes nothing about
@@ -141,7 +161,7 @@ class TraceblocConfig:
141
161
 
142
162
  The reverse of the table above, and deliberately an EXACT match on
143
163
  the whole base URL rather than a rewrite of the host
144
- (``dev-api.`` -> ``dev.``). A rewrite is a guess: it answers for
164
+ (``stg-api.`` -> ``stg.``). A rewrite is a guess: it answers for
145
165
  hosts this table has never heard of, and answers confidently.
146
166
  ``None`` is the honest answer for a URL we do not recognise — the
147
167
  in-cluster Service name the notebook pod points at has no frontend
@@ -151,7 +171,7 @@ class TraceblocConfig:
151
171
  Exact, but on the NORMALIZED form — see :meth:`_lookup_key`.
152
172
  Refusing to rewrite a host and refusing to normalize one are
153
173
  different refusals, and only the first one is principled:
154
- ``https://DEV-API.tracebloc.io/`` *is* the dev API by RFC 3986,
174
+ ``https://STG-API.tracebloc.io/`` *is* the staging API by RFC 3986,
155
175
  `requests` sends it to the same place, and answering ``None``
156
176
  there drops the link for a session that is on a deployment we
157
177
  know perfectly well (review on #535).
@@ -171,7 +191,7 @@ class TraceblocConfig:
171
191
 
172
192
  @classmethod
173
193
  def stage_for_api_url(cls, api_base_url: str) -> str | None:
174
- """The canonical stage (``local``, ``dev``, ``stg``, ``prod``) whose API
194
+ """The canonical stage (``local``, ``stg``, ``prod``) whose API
175
195
  ``api_base_url`` is, or ``None`` for a URL no stage serves.
176
196
 
177
197
  Same normalized exact match as :meth:`frontend_for_api_url`; never an
@@ -214,19 +234,23 @@ class TraceblocConfig:
214
234
 
215
235
  Args:
216
236
  stage: A stage or alias of the backend's stage contract
217
- (``"local"``, ``"dev"``/``"development"``,
218
- ``"stg"``/``"staging"``, ``"prod"``/``"production"``), the
219
- legacy ``"ds"`` (development), or ``""`` (empty string,
237
+ (``"local"``, ``"stg"``/``"staging"``,
238
+ ``"prod"``/``"production"``), or ``""`` (empty string,
220
239
  treated as production for compatibility with the original
221
240
  ``env_url`` behavior). Named ``stage`` since the SDK-wide
222
241
  naming pass.
223
242
  timeout_seconds: HTTP timeout in seconds. Defaults to 30.
224
243
 
225
244
  Raises:
245
+ RetiredStageError: If ``stage`` names the retired dev deployment
246
+ (``"dev"``, ``"development"`` or ``"ds"``, in any case).
226
247
  ValueError: If ``stage`` is not recognized. The legacy
227
248
  ``env_url`` silently returned ``None`` for unknown names;
228
249
  we fail fast instead.
229
250
  """
251
+ # str(): User passes whatever it was given, None included.
252
+ if str(stage).strip().lower() in _RETIRED_STAGES:
253
+ raise RetiredStageError(_RETIRED_MESSAGE)
230
254
  try:
231
255
  api_url, frontend_url = cls._ENVIRONMENTS[stage]
232
256
  except KeyError as error:
@@ -10,7 +10,7 @@ from .linking.response import (
10
10
  from .api.experiment_status import experiment_status
11
11
  from .client import TraceblocClient
12
12
  from .console.logger import say, show_rich
13
- from .config import TraceblocConfig
13
+ from .config import RetiredStageError, TraceblocConfig
14
14
  from .auth.env_login import TOKEN_ENV_VAR, read_environment_login
15
15
  from .exceptions import AuthenticationError
16
16
  from .fetch import fetch_model, fetch_zoo_template
@@ -45,11 +45,11 @@ class User(UserUploadMethods, UserLinkMethods):
45
45
 
46
46
  Args:
47
47
  stage: Which tracebloc deployment to talk to — one of
48
- ``"local"``, ``"dev"``/``"development"`` (alias ``"ds"``),
49
- ``"stg"``/``"staging"``, ``"prod"``/``"production"``, or
50
- ``""`` (treated as production). The names come from the
51
- backend's stage contract (``TraceblocConfig``).
52
- Onboarding-only; defaults to production.
48
+ ``"local"``, ``"stg"``/``"staging"``,
49
+ ``"prod"``/``"production"``, or ``""`` (production). The
50
+ names come from the backend's stage contract
51
+ (``TraceblocConfig``); the retired ``"dev"`` raises
52
+ ``RetiredStageError``. Onboarding-only; defaults to production.
53
53
  username: Account email. Prompted for if omitted, unless a
54
54
  ``TRACEBLOC_TOKEN`` in the environment supersedes the prompt.
55
55
  password: Account password. Prompted for if omitted.
@@ -71,6 +71,8 @@ class User(UserUploadMethods, UserLinkMethods):
71
71
  self.__stage = stage
72
72
  try:
73
73
  self.__config = TraceblocConfig.for_environment(cast(str, stage))
74
+ except RetiredStageError:
75
+ raise # its own message says what to use instead
74
76
  except ValueError:
75
77
  # Fail clearly instead of the old misleading "the class does not
76
78
  # take any arguments" message (it does) and instead of returning a
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tracebloc
3
- Version: 7.0.0
3
+ Version: 7.0.2
4
4
  Summary: Build AI with anyone. On data that can't move. SDK for the tracebloc collaborative AI workspace.
5
5
  Author-email: tracebloc <lukas@tracebloc.io>
6
6
  License-Expression: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes