sdmxlib 0.85.0__tar.gz → 0.86.0__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 (222) hide show
  1. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/PKG-INFO +1 -1
  2. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/pyproject.toml +1 -1
  3. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/pyproject.toml.orig +1 -1
  4. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/edition/EGM.md +10 -2
  5. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/edition/__init__.py +4 -1
  6. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/edition/_check.py +61 -15
  7. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/storage/EGM.md +4 -2
  8. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/storage/_manifest.py +16 -6
  9. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/LICENSE +0 -0
  10. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/README.md +0 -0
  11. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/EGM.md +0 -0
  12. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/__init__.py +0 -0
  13. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/_duckdb.py +0 -0
  14. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/_facet_types.xsd +0 -0
  15. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/_facets.py +0 -0
  16. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/_read_errors.py +0 -0
  17. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/_singleflight.py +0 -0
  18. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/_time.py +0 -0
  19. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/api/EGM.md +0 -0
  20. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/api/__init__.py +0 -0
  21. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/api/_freshness.py +0 -0
  22. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/api/client.py +0 -0
  23. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/api/federated.py +0 -0
  24. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/api/policy.py +0 -0
  25. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/api/providers.py +0 -0
  26. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/api/registry.py +0 -0
  27. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/api/session.py +0 -0
  28. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/builders/EGM.md +0 -0
  29. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/builders/__init__.py +0 -0
  30. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/builders/contentconstraint.py +0 -0
  31. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/builders/metadata_annotation.py +0 -0
  32. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/data_store.py +0 -0
  33. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/edition/_availability.py +0 -0
  34. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/edition/_build.py +0 -0
  35. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/edition/_canonical.py +0 -0
  36. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/edition/_copy.py +0 -0
  37. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/edition/_fetch.py +0 -0
  38. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/edition/_finding.py +0 -0
  39. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/edition/_fingerprint.py +0 -0
  40. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/edition/_overlay.py +0 -0
  41. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/edition/_remote.py +0 -0
  42. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/edition/_write.py +0 -0
  43. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/edition/manifest.schema.json +0 -0
  44. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/edition/overlay.schema.json +0 -0
  45. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/EGM.md +0 -0
  46. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/__init__.py +0 -0
  47. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/_arrow.py +0 -0
  48. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/_attachment.py +0 -0
  49. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/_coerce.py +0 -0
  50. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/_index.py +0 -0
  51. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/_positions.py +0 -0
  52. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/_refuse.py +0 -0
  53. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/_tags.py +0 -0
  54. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/data_format.py +0 -0
  55. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/gaps.py +0 -0
  56. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/render.py +0 -0
  57. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_csv/EGM.md +0 -0
  58. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_csv/__init__.py +0 -0
  59. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_csv/reader.py +0 -0
  60. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_csv/writer.py +0 -0
  61. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_json/EGM.md +0 -0
  62. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_json/__init__.py +0 -0
  63. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_json/_data_common.py +0 -0
  64. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_json/_dto.py +0 -0
  65. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_json/_header.py +0 -0
  66. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_json/_losses.py +0 -0
  67. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_json/_periods.py +0 -0
  68. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_json/_resolve.py +0 -0
  69. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_json/_structure_dto.py +0 -0
  70. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_json/_structure_ingest.py +0 -0
  71. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_json/data.py +0 -0
  72. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_json/data_v1.py +0 -0
  73. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_json/data_v2.py +0 -0
  74. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_json/metadata.py +0 -0
  75. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_json/reader.py +0 -0
  76. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_json/structure_values.py +0 -0
  77. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_json/writer.py +0 -0
  78. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_json_1_0/EGM.md +0 -0
  79. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_json_1_0/__init__.py +0 -0
  80. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_json_1_0/writer.py +0 -0
  81. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml/EGM.md +0 -0
  82. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml/__init__.py +0 -0
  83. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml/_allowed_children.py +0 -0
  84. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml/_closed_world.py +0 -0
  85. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml/_common.py +0 -0
  86. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml/_header.py +0 -0
  87. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml/_losses.py +0 -0
  88. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml/_v3_reader.py +0 -0
  89. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml/_v3_writer.py +0 -0
  90. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml21/EGM.md +0 -0
  91. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml21/__init__.py +0 -0
  92. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml21/_providers.py +0 -0
  93. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml21/_synthetic.py +0 -0
  94. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml21/namespaces.py +0 -0
  95. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml21/reader.py +0 -0
  96. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml21/writer.py +0 -0
  97. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml30/EGM.md +0 -0
  98. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml30/__init__.py +0 -0
  99. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml30/metadata.py +0 -0
  100. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml30/namespaces.py +0 -0
  101. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml30/reader.py +0 -0
  102. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml30/writer.py +0 -0
  103. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml31/EGM.md +0 -0
  104. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml31/__init__.py +0 -0
  105. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml31/namespaces.py +0 -0
  106. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml31/reader.py +0 -0
  107. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/formats/sdmx_ml31/writer.py +0 -0
  108. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/inventory/EGM.md +0 -0
  109. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/inventory/__init__.py +0 -0
  110. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/inventory/_format.py +0 -0
  111. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/inventory/_reader.py +0 -0
  112. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/inventory/_routing.py +0 -0
  113. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/inventory/_rules.py +0 -0
  114. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/inventory/conformance.py +0 -0
  115. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/inventory/schemas/catalog-2.0.schema.json +0 -0
  116. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/inventory/schemas/catalog.schema.json +0 -0
  117. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/inventory/schemas/current.schema.json +0 -0
  118. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/inventory/schemas/history.schema.json +0 -0
  119. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/inventory/schemas/leaf.schema.json +0 -0
  120. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/inventory/schemas/root-1.2.schema.json +0 -0
  121. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/inventory/schemas/root.schema.json +0 -0
  122. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/inventory/schemas/segment-header.schema.json +0 -0
  123. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/inventory/schemas/segment-line.schema.json +0 -0
  124. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/local/EGM.md +0 -0
  125. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/local/__init__.py +0 -0
  126. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/local/_scan.py +0 -0
  127. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/local/data_store.py +0 -0
  128. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/local/engine.py +0 -0
  129. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/local/object_store.py +0 -0
  130. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/local/registry.py +0 -0
  131. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/local/sql.py +0 -0
  132. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/EGM.md +0 -0
  133. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/__init__.py +0 -0
  134. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/_binding.py +0 -0
  135. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/_container.py +0 -0
  136. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/_invariants.py +0 -0
  137. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/_items.py +0 -0
  138. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/_label_match.py +0 -0
  139. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/_rebind.py +0 -0
  140. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/_referenceable.py +0 -0
  141. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/_refshape.py +0 -0
  142. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/_resolvers.py +0 -0
  143. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/_rules.py +0 -0
  144. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/_tree.py +0 -0
  145. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/annotations.py +0 -0
  146. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/base.py +0 -0
  147. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/binding.py +0 -0
  148. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/category.py +0 -0
  149. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/codelist.py +0 -0
  150. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/collections.py +0 -0
  151. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/concept.py +0 -0
  152. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/constraint.py +0 -0
  153. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/convert.py +0 -0
  154. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/dataflow.py +0 -0
  155. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/datastructure.py +0 -0
  156. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/errors.py +0 -0
  157. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/expr.py +0 -0
  158. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/header.py +0 -0
  159. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/hierarchy.py +0 -0
  160. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/in_memory_registry.py +0 -0
  161. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/istring.py +0 -0
  162. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/link.py +0 -0
  163. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/mapping.py +0 -0
  164. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/message.py +0 -0
  165. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/metadata_provision.py +0 -0
  166. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/metadataflow.py +0 -0
  167. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/metadataset.py +0 -0
  168. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/metadatastructure.py +0 -0
  169. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/organisation.py +0 -0
  170. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/provision.py +0 -0
  171. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/ref.py +0 -0
  172. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/registry.py +0 -0
  173. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/representation.py +0 -0
  174. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/rest_api.py +0 -0
  175. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/rollup.py +0 -0
  176. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/urn.py +0 -0
  177. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/validation.py +0 -0
  178. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/valuelist.py +0 -0
  179. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/version.py +0 -0
  180. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/model/version_rewrite.py +0 -0
  181. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/polars.py +0 -0
  182. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/py.typed +0 -0
  183. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/query/EGM.md +0 -0
  184. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/query/__init__.py +0 -0
  185. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/query/_closure.py +0 -0
  186. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/query/_common.py +0 -0
  187. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/query/_compile.py +0 -0
  188. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/query/_edges.py +0 -0
  189. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/query/_execute.py +0 -0
  190. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/query/_expr.py +0 -0
  191. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/query/_joins.py +0 -0
  192. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/query/_plan.py +0 -0
  193. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/query/_pushdown.py +0 -0
  194. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/query/_rebase.py +0 -0
  195. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/query/_rest.py +0 -0
  196. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/query/accessors.py +0 -0
  197. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/query/observations.py +0 -0
  198. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/query/query.py +0 -0
  199. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/query/raw.py +0 -0
  200. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/query/schema.py +0 -0
  201. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/rest.py +0 -0
  202. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/session.py +0 -0
  203. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/sql.py +0 -0
  204. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/storage/__init__.py +0 -0
  205. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/storage/_checked.py +0 -0
  206. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/storage/_columns.py +0 -0
  207. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/storage/_files.py +0 -0
  208. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/storage/_kinds.py +0 -0
  209. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/storage/_layout.py +0 -0
  210. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/storage/_parsed.py +0 -0
  211. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/storage/_projections.py +0 -0
  212. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/storage/_references.py +0 -0
  213. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/storage/_synthetic.py +0 -0
  214. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/storage/_tags.py +0 -0
  215. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/storage/_trim.py +0 -0
  216. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/storage/lazy.py +0 -0
  217. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/storage/readers.py +0 -0
  218. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/storage/resolve.py +0 -0
  219. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/storage/schema.py +0 -0
  220. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/storage/writers.py +0 -0
  221. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/testing.py +0 -0
  222. {sdmxlib-0.85.0 → sdmxlib-0.86.0}/src/sdmxlib/versions.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sdmxlib
3
- Version: 0.85.0
3
+ Version: 0.86.0
4
4
  Summary: SDMX for Python: structures, reference metadata and observation data, from REST, files or a local DuckDB store.
5
5
  Keywords: sdmx,statistics,metadata,datastructure
6
6
  Author: gabrielgellner
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sdmxlib"
3
- version = "0.85.0"
3
+ version = "0.86.0"
4
4
  description = "SDMX for Python: structures, reference metadata and observation data, from REST, files or a local DuckDB store."
5
5
  readme = "README.md"
6
6
  license = "Apache-2.0"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sdmxlib"
3
- version = "0.85.0"
3
+ version = "0.86.0"
4
4
  description = "SDMX for Python: structures, reference metadata and observation data, from REST, files or a local DuckDB store."
5
5
  readme = "README.md"
6
6
  license = "Apache-2.0"
@@ -45,12 +45,15 @@ seals through `seal(extensions=...)`.
45
45
  `references` check also accepts a reference one of the `structures=`
46
46
  editions holds as a full artefact or an item of one
47
47
  (`storage._references.held_targets`; spec §6.5 item 9, GH-351). A data
48
- product's references resolve in its own edition alone.
48
+ product's references resolve in its own edition alone. `references=False`
49
+ skips the `references` check at `receive` and leaves it out of
50
+ `Report.checked`, and raises `ValueError` at `publish` and `open` (GH-371).
51
+ `structures=` then still runs the `partials` check.
49
52
  - `check_on_open` (`_check.py`): runs one profile per call. Without a stamp
50
53
  for this `(product_id, edition id, manifest sha256)` it runs `receive` and writes
51
54
  the stamp when the report is clean; with one it runs `open`. An unreadable
52
55
  manifest, or a `product_id` that cannot name a stamp path, gets a `receive`
53
- check and no stamp.
56
+ check and no stamp. `references=False` goes to its `receive` calls only.
54
57
  - `copy_edition` and `edition_files` (`_copy.py`): copy the files of the chosen
55
58
  tiers and verify each one, and list the paths such a copy needs.
56
59
  - `verify_remote`, `RemoteFile`, `content_md5` and `content_crc32c`
@@ -90,6 +93,7 @@ seals through `seal(extensions=...)`.
90
93
  its availability and for coded-column values outside their enumeration.
91
94
  `seal` and `check_edition(at="publish")` both call it.
92
95
  - Manifest types, re-exported from `storage._manifest`: `read_manifest`,
96
+ `decode_manifest` (the same read from bytes, naming `source` in its errors),
93
97
  `Manifest`, `Producer`, `Provenance`, `EditionFile`, `ArtefactEntry`,
94
98
  `BindingCount`, `Tier`, `ManifestError`, `StoreFormatError`, and the
95
99
  constants `DATA_PATH`, `MANIFEST_NAME`, `SIGNATURE_NAME`, `FORMAT_VERSION`
@@ -130,6 +134,10 @@ seals through `seal(extensions=...)`.
130
134
  exists.
131
135
  - `check_on_open` writes a stamp only after a clean `receive` check, and only
132
136
  to a path made of exactly two plain components under the stamps directory.
137
+ - A stamp satisfies a full `check_on_open` only when its `checked` lists
138
+ `references`. A `references=False` call accepts either stamp. A full call
139
+ that meets a deferred stamp runs `receive`, and replaces the stamp when that
140
+ finds nothing.
133
141
  - `settle_lake` never deletes files from `data/`.
134
142
  - `check_edition`'s `tags` check, at `publish` and `receive`, reports every
135
143
  stored language tag `normalize_tag` would change or refuse: a store built
@@ -6,7 +6,8 @@ edition id, and the ``data/`` every edition shares.
6
6
  minting its edition id; `seal` seals it: a file list with a sha256 per file,
7
7
  observation counts per binding, and the ``edition_id``, the value a cache or
8
8
  an ETag keys on. ``LocalRegistry.edition(edition_dir)`` opens it read-only.
9
- `read_manifest` reads a manifest back, refusing a format it cannot read;
9
+ `read_manifest` reads a manifest back, refusing a format it cannot read, and
10
+ `decode_manifest` does the same for bytes a caller already holds;
10
11
  `check_edition` checks an edition against it and against itself;
11
12
  `copy_edition` copies one elsewhere, manifest last, and `edition_files` lists
12
13
  what such a copy needs for another tool; `verify_remote` checks the
@@ -88,6 +89,7 @@ from sdmxlib.storage._manifest import (
88
89
  SIGNATURE_NAME,
89
90
  StoreFormatError,
90
91
  Tier,
92
+ decode_manifest,
91
93
  read_manifest,
92
94
  )
93
95
 
@@ -133,6 +135,7 @@ __all__ = [
133
135
  "content_crc32c",
134
136
  "content_md5",
135
137
  "copy_edition",
138
+ "decode_manifest",
136
139
  "discard",
137
140
  "edition_files",
138
141
  "effective_token",
@@ -94,6 +94,7 @@ def check_edition(
94
94
  fingerprints: bool | None = None,
95
95
  expect: Manifest | str | Path | None = None,
96
96
  structures: str | Path | Sequence[str | Path] | None = None,
97
+ references: bool = True,
97
98
  extensions: Mapping[str, Check] | None = None,
98
99
  ) -> Report:
99
100
  """Check a sealed edition against its manifest and against itself, as profile `at` asks.
@@ -107,7 +108,7 @@ def check_edition(
107
108
  | remote: ``data/``'s entries in object storage, by size | no | with `remote` and no `lookup` | no |
108
109
  | lake: current files at their recorded size, no delete file, every referenced file listed | yes | yes | no |
109
110
  | bindings: the manifest's, each with the count it gives | yes | yes | no |
110
- | references: every stored reference names something in the store (see `structures`) | yes | yes | no |
111
+ | references: every stored reference is in the store (see `structures`) | yes | unless `references` is False | no |
111
112
  | tags: every stored language tag is in the form `normalize_tag` gives | yes | yes | no |
112
113
  | fingerprints: recomputed, equal to the manifest's | unless `fingerprints` is False | if it is True | no |
113
114
  | availability: coded columns hold codes; stored availability is the data's | yes | no | no |
@@ -171,6 +172,13 @@ def check_edition(
171
172
  of one (sharded catalog spec §6.5 item 9). A data product
172
173
  vendors its closure, so its references resolve in the edition
173
174
  alone.
175
+ references: Whether to run the ``references`` check. False is for
176
+ ``receive`` only, for a caller that cannot name the other editions
177
+ a structure product's references resolve in, and leaves
178
+ ``references`` out of `Report.checked`. A later check has to cover
179
+ them. `structures` then still runs the ``partials`` check. An
180
+ edition with bindings is allowed, and its references go unchecked
181
+ too.
174
182
  extensions: More checks, by name, for parts of the edition other
175
183
  packages own (statcatlib's search index, say).
176
184
 
@@ -180,9 +188,12 @@ def check_edition(
180
188
  Raises:
181
189
  ValueError: If `lookup`, `remote` or `structures` is given at a
182
190
  profile that does not use it, `fingerprints` is True at ``open``,
183
- or `structures` is an empty sequence.
191
+ `references` is False at ``publish`` or ``open``, or `structures`
192
+ is an empty sequence.
184
193
  """
185
- _refuse_unused(at, lookup=lookup, fingerprints=fingerprints, remote=remote, structures=structures)
194
+ _refuse_unused(
195
+ at, lookup=lookup, fingerprints=fingerprints, remote=remote, structures=structures, references=references
196
+ )
186
197
  root = Path(path)
187
198
  checked: list[str] = ["manifest"]
188
199
  try:
@@ -220,6 +231,7 @@ def check_edition(
220
231
  sized_remotely=remote is not None and lookup is None,
221
232
  fingerprints=fingerprints,
222
233
  structures=_editions(structures),
234
+ references=references,
223
235
  extensions=extensions or {},
224
236
  )
225
237
  for name, step in steps:
@@ -251,6 +263,7 @@ def _refuse_unused(
251
263
  fingerprints: bool | None,
252
264
  remote: str | None,
253
265
  structures: str | Path | Sequence[str | Path] | None,
266
+ references: bool,
254
267
  ) -> None:
255
268
  """Raise for an argument the profile `at` does not use."""
256
269
  if structures is not None and not isinstance(structures, (str, Path)) and not structures:
@@ -268,6 +281,12 @@ def _refuse_unused(
268
281
  if fingerprints and at == "open":
269
282
  msg = "fingerprints=True recomputes them from the store; at='open' reads no store"
270
283
  raise ValueError(msg)
284
+ if not references and at != "receive":
285
+ msg = (
286
+ f"references=False defers the references check at receive; at={at!r} "
287
+ "does not use it, since a seal must check references and open never does"
288
+ )
289
+ raise ValueError(msg)
271
290
 
272
291
 
273
292
  def _steps(
@@ -279,6 +298,7 @@ def _steps(
279
298
  sized_remotely: bool,
280
299
  fingerprints: bool | None,
281
300
  structures: tuple[Path, ...] | None,
301
+ references: bool,
282
302
  extensions: Mapping[str, Check],
283
303
  ) -> list[tuple[str, Callable[[], Iterable[Finding]]]]:
284
304
  """The checks that read the store, by name, in the order profile `at` runs them."""
@@ -288,11 +308,10 @@ def _steps(
288
308
  if at != "open":
289
309
  if (root / "tables.ducklake").exists():
290
310
  steps.append(("lake", partial(_lake, root, manifest, reg)))
291
- steps += [
292
- ("bindings", partial(_bindings, manifest, reg)),
293
- ("references", partial(_references, reg, None if manifest.bindings else structures)),
294
- ("tags", partial(_tags, reg)),
295
- ]
311
+ steps.append(("bindings", partial(_bindings, manifest, reg)))
312
+ if references:
313
+ steps.append(("references", partial(_references, reg, None if manifest.bindings else structures)))
314
+ steps.append(("tags", partial(_tags, reg)))
296
315
  if fingerprints or (fingerprints is None and at == "publish"):
297
316
  steps.append(("fingerprints", partial(_fingerprints, root, manifest, reg)))
298
317
  if at == "publish":
@@ -309,6 +328,7 @@ def check_on_open(
309
328
  remote: str | None = None,
310
329
  engine: EditionEngine | None = None,
311
330
  lookup: Lookup | None = None,
331
+ references: bool = True,
312
332
  extensions: Mapping[str, Check] | None = None,
313
333
  ) -> Report:
314
334
  """Check an edition as a server opens it: ``receive`` once per edition id and manifest, ``open`` after.
@@ -319,6 +339,12 @@ def check_on_open(
319
339
  runs, which hashes nothing. With none, or a stamp for another manifest
320
340
  under the same edition id, the ``receive`` profile runs first.
321
341
 
342
+ A stamp satisfies a full check only when its recorded checks list
343
+ ``references``. A call with ``references=False`` accepts either stamp. A
344
+ full call that meets a stamp from a deferred check runs ``receive``, and
345
+ replaces the stamp when that finds nothing. A stamp that a deferring call
346
+ wrote stays in place when that ``receive`` finds something.
347
+
322
348
  Args:
323
349
  path: The edition directory.
324
350
  stamps: The directory holding the stamps, outside every edition: local
@@ -326,25 +352,37 @@ def check_on_open(
326
352
  remote: As `check_edition`'s, for either profile.
327
353
  engine: As `check_edition`'s, for either profile.
328
354
  lookup: As `check_edition`'s, for the receive check.
355
+ references: As `check_edition`'s, for the receive check. The ``open``
356
+ profile never runs that check.
329
357
  extensions: As `check_edition`'s, for either profile.
330
358
 
331
359
  Returns:
332
360
  The report of the profile that ran; its ``at`` says which.
333
361
  """
334
362
  root = Path(path)
363
+ receive = partial(
364
+ check_edition,
365
+ root,
366
+ at="receive",
367
+ remote=remote,
368
+ engine=engine,
369
+ lookup=lookup,
370
+ references=references,
371
+ extensions=extensions,
372
+ )
335
373
  try:
336
374
  digest = hashlib.sha256((root / MANIFEST_NAME).read_bytes()).hexdigest()
337
375
  manifest = read_manifest(root)
338
376
  except OSError, ManifestError:
339
- return check_edition(root, at="receive", remote=remote, engine=engine, lookup=lookup, extensions=extensions)
377
+ return receive()
340
378
  stamp = Path(stamps) / manifest.product_id / manifest.edition_id
341
379
  if not _names_a_file_under(stamp, Path(stamps)):
342
- report = check_edition(root, at="receive", remote=remote, engine=engine, lookup=lookup, extensions=extensions)
380
+ report = receive()
343
381
  detail = f"product_id {manifest.product_id!r} cannot name a stamp directory, so the check is not stamped"
344
382
  return attrs.evolve(report, findings=(*report.findings, Finding("manifest", MANIFEST_NAME, detail)))
345
- if _stamped(stamp, digest):
383
+ if _stamped(stamp, digest, references=references):
346
384
  return check_edition(root, at="open", remote=remote, engine=engine, extensions=extensions)
347
- report = check_edition(root, at="receive", remote=remote, engine=engine, lookup=lookup, extensions=extensions)
385
+ report = receive()
348
386
  if report.ok:
349
387
  _write_stamp(stamp, digest, report)
350
388
  return report
@@ -359,13 +397,21 @@ def _names_a_file_under(stamp: Path, stamps: Path) -> bool:
359
397
  return len(parts) == 2 and all(part not in {".", ".."} for part in parts)
360
398
 
361
399
 
362
- def _stamped(stamp: Path, digest: str) -> bool:
363
- """Whether `stamp` records a clean receive check of the manifest with sha256 `digest`."""
400
+ def _stamped(stamp: Path, digest: str, *, references: bool) -> bool:
401
+ """Whether `stamp` records a clean receive check of the manifest with sha256 `digest`.
402
+
403
+ When `references` is true, the recorded check must also list ``references``.
404
+ """
364
405
  try:
365
406
  recorded = json.loads(stamp.read_text())
366
407
  except OSError, ValueError:
367
408
  return False
368
- return isinstance(recorded, dict) and recorded.get("manifest_sha256") == digest
409
+ if not isinstance(recorded, dict) or recorded.get("manifest_sha256") != digest:
410
+ return False
411
+ if not references:
412
+ return True
413
+ checked = recorded.get("checked")
414
+ return isinstance(checked, list) and "references" in checked
369
415
 
370
416
 
371
417
  def _write_stamp(stamp: Path, digest: str, report: Report) -> None:
@@ -61,8 +61,10 @@ of the store that edition ships (`_trim.py`).
61
61
  - `Manifest`, `read_manifest`, `encode_manifest`, `refuse_engine_mismatch` and
62
62
  `storage_version_of` (`_manifest.py`): the msgspec edition manifest and the
63
63
  DuckDB storage-version checks. `read_manifest` is `read_manifest_bytes`
64
- then `decode_manifest`, split so `LocalRegistry.edition` hashes the bytes
65
- it parses. The module also defines `ManifestError`,
64
+ then `decode_manifest(raw, source)`, split so `LocalRegistry.edition` hashes
65
+ the bytes it parses; `source` is a `str` or `Path` the errors name, and
66
+ `sdmxlib.edition` exports the function for bytes read from object storage.
67
+ The module also defines `ManifestError`,
66
68
  `StoreFormatError`, `MANIFEST_NAME`, `FORMAT_VERSION`, `DATA_PATH`,
67
69
  `DUCKLAKE_SPEC_VERSION`, `edition_storage_version`,
68
70
  `engine_storage_version` and `generate_schema` (the manifest's JSON Schema).
@@ -468,8 +468,18 @@ def read_manifest_bytes(root: Path) -> bytes:
468
468
  raise ManifestError(msg) from exc
469
469
 
470
470
 
471
- def decode_manifest(raw: bytes, path: Path) -> Manifest:
472
- """The manifest `raw` holds, read from `path`, which the errors name.
471
+ def decode_manifest(raw: bytes, source: str | Path) -> Manifest:
472
+ """The manifest `raw` holds, for bytes read from somewhere other than a local edition directory.
473
+
474
+ `read_manifest` reads a local edition directory. This takes bytes a caller
475
+ already holds, such as those read from object storage.
476
+
477
+ Args:
478
+ raw: The bytes of the manifest.
479
+ source: Where the bytes came from, which the errors name.
480
+
481
+ Returns:
482
+ The manifest.
473
483
 
474
484
  Raises:
475
485
  ManifestError: If it is malformed, or its major format version is not
@@ -478,18 +488,18 @@ def decode_manifest(raw: bytes, path: Path) -> Manifest:
478
488
  try:
479
489
  found = msgspec.json.decode(raw, type=_FormatProbe).format_version
480
490
  except msgspec.MsgspecError as exc:
481
- msg = f"{path} is not an edition manifest: {exc}"
491
+ msg = f"{source} is not an edition manifest: {exc}"
482
492
  raise ManifestError(msg) from exc
483
493
  if found is None:
484
494
  # A builder's own manifest from before this format existed. sdmxlib
485
495
  # owns the format, so it is refused rather than read around.
486
496
  msg = (
487
- f"{path} has no format_version, so it is not an sdmxlib edition manifest (a builder's own "
497
+ f"{source} has no format_version, so it is not an sdmxlib edition manifest (a builder's own "
488
498
  f"format?). Seal a new edition with sdmxlib.edition.seal."
489
499
  )
490
500
  raise ManifestError(msg)
491
501
  if found.partition(".")[0] != FORMAT_VERSION.partition(".")[0]:
492
- msg = f"{path} is manifest format {found}; this sdmxlib reads {FORMAT_VERSION.partition('.')[0]}.x"
502
+ msg = f"{source} is manifest format {found}; this sdmxlib reads {FORMAT_VERSION.partition('.')[0]}.x"
493
503
  if found.partition(".")[0] == "2":
494
504
  msg += (
495
505
  ". Manifest 3.0 renamed the format's identities to the product, the edition and the "
@@ -499,5 +509,5 @@ def decode_manifest(raw: bytes, path: Path) -> Manifest:
499
509
  try:
500
510
  return msgspec.json.decode(raw, type=Manifest)
501
511
  except msgspec.MsgspecError as exc:
502
- msg = f"{path} is not a valid format {found} manifest: {exc}"
512
+ msg = f"{source} is not a valid format {found} manifest: {exc}"
503
513
  raise ManifestError(msg) from exc
File without changes
File without changes
File without changes
File without changes