pulso-co 1.0.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.
- pulso_co-1.0.0/.gitignore +115 -0
- pulso_co-1.0.0/CHANGELOG.md +180 -0
- pulso_co-1.0.0/LICENSE +21 -0
- pulso_co-1.0.0/PKG-INFO +650 -0
- pulso_co-1.0.0/README.md +576 -0
- pulso_co-1.0.0/docs/adr/0004-dane-catalog-scraping.md +133 -0
- pulso_co-1.0.0/docs/adr/0005-shape-a-support.md +95 -0
- pulso_co-1.0.0/docs/architecture.es.md +473 -0
- pulso_co-1.0.0/docs/architecture.md +474 -0
- pulso_co-1.0.0/docs/caveats.md +65 -0
- pulso_co-1.0.0/docs/contributing.md +11 -0
- pulso_co-1.0.0/docs/decisions/0001-build-plan.md +66 -0
- pulso_co-1.0.0/docs/decisions/0002-scope-2006-present.md +38 -0
- pulso_co-1.0.0/docs/decisions/0003-schema-1.1-area-filtering.md +162 -0
- pulso_co-1.0.0/docs/decisions/0004-harmonizer-design.md +95 -0
- pulso_co-1.0.0/docs/decisions/0005-phase4-roadmap.md +209 -0
- pulso_co-1.0.0/docs/epochs.md +51 -0
- pulso_co-1.0.0/docs/examples/README.md +9 -0
- pulso_co-1.0.0/docs/harmonization.md +73 -0
- pulso_co-1.0.0/docs/harmonizer-core-design.md +249 -0
- pulso_co-1.0.0/docs/index.md +28 -0
- pulso_co-1.0.0/docs/modules.md +24 -0
- pulso_co-1.0.0/docs/quickstart.md +145 -0
- pulso_co-1.0.0/pulso/__init__.py +89 -0
- pulso_co-1.0.0/pulso/_config/__init__.py +1 -0
- pulso_co-1.0.0/pulso/_config/epochs.py +148 -0
- pulso_co-1.0.0/pulso/_config/registry.py +451 -0
- pulso_co-1.0.0/pulso/_config/variables.py +52 -0
- pulso_co-1.0.0/pulso/_core/__init__.py +1 -0
- pulso_co-1.0.0/pulso/_core/downloader.py +145 -0
- pulso_co-1.0.0/pulso/_core/empalme.py +522 -0
- pulso_co-1.0.0/pulso/_core/expander.py +83 -0
- pulso_co-1.0.0/pulso/_core/harmonizer.py +415 -0
- pulso_co-1.0.0/pulso/_core/harmonizer_funcs.py +145 -0
- pulso_co-1.0.0/pulso/_core/loader.py +705 -0
- pulso_co-1.0.0/pulso/_core/merger.py +136 -0
- pulso_co-1.0.0/pulso/_core/parser.py +469 -0
- pulso_co-1.0.0/pulso/_utils/__init__.py +1 -0
- pulso_co-1.0.0/pulso/_utils/cache.py +98 -0
- pulso_co-1.0.0/pulso/_utils/columns.py +60 -0
- pulso_co-1.0.0/pulso/_utils/exceptions.py +65 -0
- pulso_co-1.0.0/pulso/_utils/logging.py +32 -0
- pulso_co-1.0.0/pulso/_utils/validation.py +141 -0
- pulso_co-1.0.0/pulso/data/_scraped_catalog.json +3465 -0
- pulso_co-1.0.0/pulso/data/dane_codebook.json +156142 -0
- pulso_co-1.0.0/pulso/data/empalme_sources.json +131 -0
- pulso_co-1.0.0/pulso/data/epochs.json +80 -0
- pulso_co-1.0.0/pulso/data/schemas/dane_codebook.schema.json +164 -0
- pulso_co-1.0.0/pulso/data/schemas/empalme_sources.schema.json +118 -0
- pulso_co-1.0.0/pulso/data/schemas/epochs.schema.json +147 -0
- pulso_co-1.0.0/pulso/data/schemas/sources.schema.json +215 -0
- pulso_co-1.0.0/pulso/data/schemas/variable_map.schema.json +173 -0
- pulso_co-1.0.0/pulso/data/schemas/variable_module_map.schema.json +39 -0
- pulso_co-1.0.0/pulso/data/sources.json +8826 -0
- pulso_co-1.0.0/pulso/data/variable_map.json +838 -0
- pulso_co-1.0.0/pulso/data/variable_module_map.json +65 -0
- pulso_co-1.0.0/pulso/metadata/__init__.py +39 -0
- pulso_co-1.0.0/pulso/metadata/api.py +195 -0
- pulso_co-1.0.0/pulso/metadata/composer.py +380 -0
- pulso_co-1.0.0/pulso/metadata/parser.py +287 -0
- pulso_co-1.0.0/pulso/metadata/schema.py +76 -0
- pulso_co-1.0.0/pyproject.toml +202 -0
- pulso_co-1.0.0/scripts/__init__.py +0 -0
- pulso_co-1.0.0/scripts/add_month.py +150 -0
- pulso_co-1.0.0/scripts/agent_scraper.py +68 -0
- pulso_co-1.0.0/scripts/build_dane_codebook.py +302 -0
- pulso_co-1.0.0/scripts/generate_sources_from_catalog.py +274 -0
- pulso_co-1.0.0/scripts/replicate_official_stat.py +44 -0
- pulso_co-1.0.0/scripts/scrape_dane_catalog.py +625 -0
- pulso_co-1.0.0/scripts/validate_sources.py +79 -0
- pulso_co-1.0.0/scripts/verify_checksums.py +70 -0
- pulso_co-1.0.0/tests/README.md +50 -0
- pulso_co-1.0.0/tests/__init__.py +0 -0
- pulso_co-1.0.0/tests/_build_fixtures.py +499 -0
- pulso_co-1.0.0/tests/_smoke_metadata.py +5 -0
- pulso_co-1.0.0/tests/conftest.py +337 -0
- pulso_co-1.0.0/tests/fixtures/README.md +18 -0
- pulso_co-1.0.0/tests/fixtures/zips/geih2_sample.zip +0 -0
- pulso_co-1.0.0/tests/fixtures/zips/geih2_unified_sample.zip +0 -0
- pulso_co-1.0.0/tests/integration/__init__.py +0 -0
- pulso_co-1.0.0/tests/integration/_helpers.py +71 -0
- pulso_co-1.0.0/tests/integration/_update_checksums.py +60 -0
- pulso_co-1.0.0/tests/integration/test_all_validated_months.py +111 -0
- pulso_co-1.0.0/tests/integration/test_harmonize_cross_epoch.py +108 -0
- pulso_co-1.0.0/tests/integration/test_harmonize_fixture.py +333 -0
- pulso_co-1.0.0/tests/integration/test_load_all_entries.py +58 -0
- pulso_co-1.0.0/tests/integration/test_load_fixture.py +165 -0
- pulso_co-1.0.0/tests/integration/test_load_merged_2015_06.py +58 -0
- pulso_co-1.0.0/tests/integration/test_metadata_e2e.py +171 -0
- pulso_co-1.0.0/tests/integration/test_real_data_smoke.py +143 -0
- pulso_co-1.0.0/tests/integration/test_smoothing.py +121 -0
- pulso_co-1.0.0/tests/integration/test_user_use_cases.py +229 -0
- pulso_co-1.0.0/tests/unit/__init__.py +0 -0
- pulso_co-1.0.0/tests/unit/test_aggregated_skipped_warning.py +248 -0
- pulso_co-1.0.0/tests/unit/test_aggregated_warning.py +157 -0
- pulso_co-1.0.0/tests/unit/test_cache.py +116 -0
- pulso_co-1.0.0/tests/unit/test_continue_on_failure.py +215 -0
- pulso_co-1.0.0/tests/unit/test_describe_and_expand.py +124 -0
- pulso_co-1.0.0/tests/unit/test_describe_module.py +109 -0
- pulso_co-1.0.0/tests/unit/test_downloader.py +361 -0
- pulso_co-1.0.0/tests/unit/test_empalme.py +374 -0
- pulso_co-1.0.0/tests/unit/test_empalme_sources.py +145 -0
- pulso_co-1.0.0/tests/unit/test_epochs.py +157 -0
- pulso_co-1.0.0/tests/unit/test_exceptions.py +80 -0
- pulso_co-1.0.0/tests/unit/test_harmonizer.py +381 -0
- pulso_co-1.0.0/tests/unit/test_harmonizer_funcs.py +123 -0
- pulso_co-1.0.0/tests/unit/test_iterable_inputs.py +284 -0
- pulso_co-1.0.0/tests/unit/test_load_merged_modules.py +243 -0
- pulso_co-1.0.0/tests/unit/test_loader.py +285 -0
- pulso_co-1.0.0/tests/unit/test_merger.py +199 -0
- pulso_co-1.0.0/tests/unit/test_metadata/__init__.py +0 -0
- pulso_co-1.0.0/tests/unit/test_metadata/test_api.py +134 -0
- pulso_co-1.0.0/tests/unit/test_metadata/test_composer.py +165 -0
- pulso_co-1.0.0/tests/unit/test_metadata/test_composer_cache.py +81 -0
- pulso_co-1.0.0/tests/unit/test_metadata/test_no_lxml_runtime.py +38 -0
- pulso_co-1.0.0/tests/unit/test_metadata/test_parser.py +233 -0
- pulso_co-1.0.0/tests/unit/test_module_aware_filtering.py +308 -0
- pulso_co-1.0.0/tests/unit/test_parser.py +560 -0
- pulso_co-1.0.0/tests/unit/test_parser_nested_zip.py +220 -0
- pulso_co-1.0.0/tests/unit/test_parser_shape_a_normalization.py +84 -0
- pulso_co-1.0.0/tests/unit/test_registry.py +256 -0
- pulso_co-1.0.0/tests/unit/test_schemas.py +103 -0
- pulso_co-1.0.0/tests/unit/test_skippable_parse_error.py +164 -0
- pulso_co-1.0.0/tests/unit/test_smoke.py +69 -0
- pulso_co-1.0.0/tests/unit/test_strict_param.py +216 -0
- pulso_co-1.0.0/tests/unit/test_validation.py +161 -0
- pulso_co-1.0.0/tests/unit/test_validation_helpers.py +103 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
*.so
|
|
6
|
+
.Python
|
|
7
|
+
build/
|
|
8
|
+
develop-eggs/
|
|
9
|
+
dist/
|
|
10
|
+
downloads/
|
|
11
|
+
eggs/
|
|
12
|
+
.eggs/
|
|
13
|
+
lib/
|
|
14
|
+
lib64/
|
|
15
|
+
parts/
|
|
16
|
+
sdist/
|
|
17
|
+
var/
|
|
18
|
+
wheels/
|
|
19
|
+
*.egg-info/
|
|
20
|
+
.installed.cfg
|
|
21
|
+
*.egg
|
|
22
|
+
MANIFEST
|
|
23
|
+
pip-log.txt
|
|
24
|
+
pip-delete-this-directory.txt
|
|
25
|
+
|
|
26
|
+
# Virtual environments
|
|
27
|
+
.venv/
|
|
28
|
+
.venv-1/
|
|
29
|
+
.venv-pypi-test/
|
|
30
|
+
.venv-smoke/
|
|
31
|
+
.venv-pypi-final/
|
|
32
|
+
venv/
|
|
33
|
+
env/
|
|
34
|
+
ENV/
|
|
35
|
+
.python-version
|
|
36
|
+
|
|
37
|
+
# Testing
|
|
38
|
+
.pytest_cache/
|
|
39
|
+
.coverage
|
|
40
|
+
.coverage.*
|
|
41
|
+
htmlcov/
|
|
42
|
+
.tox/
|
|
43
|
+
.nox/
|
|
44
|
+
coverage.xml
|
|
45
|
+
*.cover
|
|
46
|
+
.hypothesis/
|
|
47
|
+
|
|
48
|
+
# Linting / type checking
|
|
49
|
+
.mypy_cache/
|
|
50
|
+
.ruff_cache/
|
|
51
|
+
.pyre/
|
|
52
|
+
|
|
53
|
+
# IDEs
|
|
54
|
+
.idea/
|
|
55
|
+
.vscode/
|
|
56
|
+
*.swp
|
|
57
|
+
*.swo
|
|
58
|
+
*.swn
|
|
59
|
+
|
|
60
|
+
# OS
|
|
61
|
+
.DS_Store
|
|
62
|
+
Thumbs.db
|
|
63
|
+
ehthumbs.db
|
|
64
|
+
Desktop.ini
|
|
65
|
+
$RECYCLE.BIN/
|
|
66
|
+
*.lnk
|
|
67
|
+
|
|
68
|
+
# Jupyter
|
|
69
|
+
.ipynb_checkpoints/
|
|
70
|
+
*.ipynb_checkpoints
|
|
71
|
+
|
|
72
|
+
# DANE microdata (NEVER commit, ever)
|
|
73
|
+
/cache/
|
|
74
|
+
/data_local/
|
|
75
|
+
/microdata/
|
|
76
|
+
*.parquet
|
|
77
|
+
*.zip
|
|
78
|
+
*.sav
|
|
79
|
+
*.dta
|
|
80
|
+
!tests/fixtures/zips/*.zip
|
|
81
|
+
!tests/fixtures/expected_outputs/*.parquet
|
|
82
|
+
|
|
83
|
+
# Scraper artifacts
|
|
84
|
+
scripts/.scrape_cache/
|
|
85
|
+
scripts/scrape_report.html
|
|
86
|
+
scrape_report.md
|
|
87
|
+
scrape_report.html
|
|
88
|
+
|
|
89
|
+
# Docs build
|
|
90
|
+
docs/_build/
|
|
91
|
+
site/
|
|
92
|
+
|
|
93
|
+
# Secrets
|
|
94
|
+
.env
|
|
95
|
+
.env.local
|
|
96
|
+
.env.*.local
|
|
97
|
+
*.key
|
|
98
|
+
*.pem
|
|
99
|
+
*.p12
|
|
100
|
+
secrets/
|
|
101
|
+
|
|
102
|
+
# Local notes / scratchpad
|
|
103
|
+
scratch/
|
|
104
|
+
notes-local/
|
|
105
|
+
TODO-personal.md
|
|
106
|
+
|
|
107
|
+
# Curator workspace (never commit downloaded ZIPs)
|
|
108
|
+
_workspace/
|
|
109
|
+
_curator_workspace/
|
|
110
|
+
|
|
111
|
+
# DDI XML build cache (regenerated by scripts/build_dane_codebook.py)
|
|
112
|
+
.ddi_cache/
|
|
113
|
+
|
|
114
|
+
# Claude Code session state
|
|
115
|
+
.claude/
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [1.0.0] — 2026-05-03
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- `metadata=True` opt-in for `pulso.load()` and `pulso.load_merged()`
|
|
13
|
+
attaches composed Curator + DANE-codebook metadata to
|
|
14
|
+
`df.attrs["column_metadata"]`, plus the source `year`, `month`,
|
|
15
|
+
`module`/`modules`, and `epoch` for traceability.
|
|
16
|
+
- New helpers `pulso.describe_column(df, column)` and
|
|
17
|
+
`pulso.list_columns_metadata(df)` for inspecting the attached
|
|
18
|
+
metadata. Both are exported from the top-level `pulso` namespace.
|
|
19
|
+
- Bundled `pulso/data/dane_codebook.json` (1153 unique DANE codes ×
|
|
20
|
+
19 years, 2007–2026 minus 2013) generated from DANE DDI XML 1.2.2.
|
|
21
|
+
The runtime path uses only stdlib + pandas; the generator script
|
|
22
|
+
(and its `lxml` dependency) lives in the `[scraper]` optional extra.
|
|
23
|
+
|
|
24
|
+
### Metadata coverage at v1.0.0
|
|
25
|
+
|
|
26
|
+
The composed metadata is built from two sources:
|
|
27
|
+
|
|
28
|
+
- `variable_map.json` (Curator-curated, 30 canonical Spanish names like
|
|
29
|
+
`sexo`, `edad`, `ingreso_laboral`).
|
|
30
|
+
- `dane_codebook.json` (auto-generated from DDI XML, 1153 raw DANE codes).
|
|
31
|
+
|
|
32
|
+
For a typical analysis of a single module-month — e.g.
|
|
33
|
+
`load(2024, 6, "ocupados")` returning 299 columns — the source
|
|
34
|
+
distribution after composition is:
|
|
35
|
+
|
|
36
|
+
- ~5% of columns hit Curator-rich metadata (the canonical happy path).
|
|
37
|
+
- ~36% hit codebook-rich metadata (label + categories + universe).
|
|
38
|
+
- ~23% hit codebook-partial (label + universe, no categories).
|
|
39
|
+
- **~36% hit codebook-skeletal**: variables for which DANE publishes a
|
|
40
|
+
near-empty DDI entry (typically conditional sub-questions like
|
|
41
|
+
`P3044S2`, `P3057`, `P3058S*`, `P30511–P30599`). For these only the
|
|
42
|
+
variable code is available in our pipeline; the full metadata exists
|
|
43
|
+
on DANE's catalog HTML pages but is not yet scraped. `describe_column`
|
|
44
|
+
detects this case explicitly and renders a "skeletal" block pointing
|
|
45
|
+
the user at our issue tracker.
|
|
46
|
+
- 0% truly missing.
|
|
47
|
+
|
|
48
|
+
If you depend on metadata for sub-questions, please open an issue at
|
|
49
|
+
<https://github.com/Stebandido77/pulso/issues> — high demand will
|
|
50
|
+
trigger an HTML-catalog scraper add-on for v1.1.0.
|
|
51
|
+
|
|
52
|
+
### Changed
|
|
53
|
+
|
|
54
|
+
- `lxml` and `playwright` already lived in the `[scraper]` optional
|
|
55
|
+
extra; runtime install of `pulso-co` does not pull them in. The new
|
|
56
|
+
metadata-runtime path (composer + describe helpers) is also lxml-free
|
|
57
|
+
and is regression-tested in `tests/unit/test_metadata/test_no_lxml_runtime.py`.
|
|
58
|
+
|
|
59
|
+
### Known issues
|
|
60
|
+
|
|
61
|
+
- GEIH 2013 gap: DANE catalog id 68 returns HTTP 200 with empty body.
|
|
62
|
+
18 years are covered (2007–2012, 2014–2026). Will revisit if DANE
|
|
63
|
+
republishes.
|
|
64
|
+
- P3271 (sex in GEIH-2) has no `<catgry>` in DDI; Curator's hand-curated
|
|
65
|
+
`sexo` mapping supplies the categories. Compose precedence ensures
|
|
66
|
+
`describe_column(df, "P3271")` shows rich metadata regardless.
|
|
67
|
+
- `df.attrs` is preserved across slicing but pandas does not propagate
|
|
68
|
+
it across `merge`, `groupby`, or `concat`. Re-call
|
|
69
|
+
`pulso.load(..., metadata=True)` (or copy the attrs manually) if you
|
|
70
|
+
need the metadata after one of those operations.
|
|
71
|
+
|
|
72
|
+
## [1.0.0rc2] — 2026-05-02
|
|
73
|
+
|
|
74
|
+
### Fixed
|
|
75
|
+
|
|
76
|
+
- **CRITICAL (C-1):** `download_zip` no longer crashes with `TypeError`
|
|
77
|
+
/ `AttributeError` when loading entries with `validated=false` and
|
|
78
|
+
`checksum_sha256: null`. Three separate code paths (cache-key
|
|
79
|
+
generation, cache-hit verification, post-download verification) all
|
|
80
|
+
failed in production for 225 of 230 registry entries. The fix treats
|
|
81
|
+
`checksum=None` as "not verifiable, skip", logs an INFO line, and
|
|
82
|
+
uses a stable period-derived cache filename
|
|
83
|
+
(`unvalidated_{year}-{month:02d}.zip`).
|
|
84
|
+
- **MAJOR (M-3):** `download_empalme_zip` now actually performs SHA-256
|
|
85
|
+
verification when the registry has a checksum (9 of 11 years),
|
|
86
|
+
matching the README's promise. Cached files with mismatched checksums
|
|
87
|
+
are removed and re-downloaded; mismatch after re-download raises
|
|
88
|
+
`ChecksumMismatchError`. When no checksum is recorded, verification
|
|
89
|
+
is skipped with an INFO log.
|
|
90
|
+
- **MAJOR (M-1):** `load_merged(apply_smoothing=True, modules=[...])`
|
|
91
|
+
now respects the explicit `modules` argument instead of silently
|
|
92
|
+
loading every empalme module.
|
|
93
|
+
- **MAJOR (M-2):** `load_merged(modules=["x"])` raises
|
|
94
|
+
`ModuleNotAvailableError` when "x" is unavailable for the period
|
|
95
|
+
instead of silently dropping it. Auto-discovery (`modules=None`)
|
|
96
|
+
still skips silently.
|
|
97
|
+
- **MAJOR (M-5):** Multi-period `load(year=range(...))` and
|
|
98
|
+
`load_merged` continue past per-period failures when `strict=False`
|
|
99
|
+
(the new default). Skipped periods are summarised in the same
|
|
100
|
+
aggregated `UserWarning` that lists unvalidated periods. With
|
|
101
|
+
`strict=True` the original abort-on-first-failure behaviour is
|
|
102
|
+
preserved (rc1).
|
|
103
|
+
- **MAJOR (M-4):** `expand`, `list_variables`, `describe_variable`,
|
|
104
|
+
and `describe_harmonization` are no longer
|
|
105
|
+
`NotImplementedError("Phase 6")` stubs — they now have working
|
|
106
|
+
implementations with tests.
|
|
107
|
+
- README installation snippet (`pip install pulso-co`) and badges now
|
|
108
|
+
use the actual PyPI distribution name (rc1 still said `pulso`).
|
|
109
|
+
- `validate_year_month` rejects `bool` and `str` upfront with a clear
|
|
110
|
+
`TypeError` instead of crashing mid-iteration with a cryptic int()
|
|
111
|
+
error.
|
|
112
|
+
- `cache_clear(level="...")` raises `CacheError` for unknown levels
|
|
113
|
+
instead of silently no-op'ing (rc1 quietly accepted any string).
|
|
114
|
+
- `DataNotValidatedError` message points at the new `strict=False`
|
|
115
|
+
flag instead of the deprecated `allow_unvalidated=True`.
|
|
116
|
+
|
|
117
|
+
### Added
|
|
118
|
+
|
|
119
|
+
- **All exception classes** (`PulsoError`, `DataNotValidatedError`,
|
|
120
|
+
`DataNotAvailableError`, `ModuleNotAvailableError`,
|
|
121
|
+
`ChecksumMismatchError`, `DownloadError`, `ParseError`,
|
|
122
|
+
`HarmonizationError`, `MergeError`, `CacheError`, `ConfigError`)
|
|
123
|
+
exported at the top-level `pulso` namespace and listed in `__all__`.
|
|
124
|
+
Users can `except pulso.DataNotValidatedError` directly.
|
|
125
|
+
- New `ChecksumMismatchError(DownloadError)` for the post-download
|
|
126
|
+
hash-mismatch path. Existing `except DownloadError` keeps working
|
|
127
|
+
(it's a subclass).
|
|
128
|
+
- New `pulso.list_validated_range()` — sorted `list[(year, month)]`
|
|
129
|
+
of entries flagged `validated=True`. Validated months are
|
|
130
|
+
non-contiguous in production, so this deliberately does NOT return
|
|
131
|
+
`(min, max)`.
|
|
132
|
+
- New `pulso.validation_status()` — DataFrame with one row per
|
|
133
|
+
registry entry: `year`, `month`, `validated`, `checksum_sha256`,
|
|
134
|
+
`validated_at`, `modules`. Column name `validated_at` matches
|
|
135
|
+
`sources.schema.json`.
|
|
136
|
+
- New parameter `strict: bool = False` in `load`, `load_merged`
|
|
137
|
+
(replaces `allow_unvalidated`).
|
|
138
|
+
- Integration test matrix (`tests/integration/test_all_validated_months.py`)
|
|
139
|
+
parameterised over every `validated=true` entry in the registry,
|
|
140
|
+
picks up newly validated months automatically.
|
|
141
|
+
|
|
142
|
+
### Changed
|
|
143
|
+
|
|
144
|
+
- **BEHAVIORAL CHANGE:** Default for unvalidated entries flips from
|
|
145
|
+
"raise `DataNotValidatedError`" (rc1: `allow_unvalidated=False`) to
|
|
146
|
+
"load with single aggregated `UserWarning`" (rc2: `strict=False`).
|
|
147
|
+
Old behaviour is recoverable via `strict=True`.
|
|
148
|
+
See [`BREAKING_CHANGES_v1.0.0rc2.md`](BREAKING_CHANGES_v1.0.0rc2.md).
|
|
149
|
+
- Multi-period load with `strict=False` emits ONE aggregated
|
|
150
|
+
`UserWarning` covering both unvalidated periods and skipped failures,
|
|
151
|
+
instead of N warnings (one per period). Truncates with
|
|
152
|
+
`... and N more` past 10 examples.
|
|
153
|
+
|
|
154
|
+
### Deprecated
|
|
155
|
+
|
|
156
|
+
- `allow_unvalidated` parameter in `load`, `load_merged`. Use `strict`
|
|
157
|
+
instead. Will be removed in **v2.0.0**. See
|
|
158
|
+
[`DEPRECATIONS.md`](DEPRECATIONS.md). Emits `DeprecationWarning` at
|
|
159
|
+
every call.
|
|
160
|
+
|
|
161
|
+
### Internal
|
|
162
|
+
|
|
163
|
+
- `_emit_unvalidated_warning_at_end=False` private kwarg in `load` so
|
|
164
|
+
`load_merged` can suppress per-module warnings and emit only the
|
|
165
|
+
outer aggregated one.
|
|
166
|
+
- Streaming download factored into `_stream_to_file` in
|
|
167
|
+
`pulso/_core/empalme.py`.
|
|
168
|
+
|
|
169
|
+
## [1.0.0rc1] — 2026-05-01
|
|
170
|
+
|
|
171
|
+
Initial public release on PyPI as `pulso-co`.
|
|
172
|
+
|
|
173
|
+
### Critical issue identified post-release
|
|
174
|
+
|
|
175
|
+
Bug C-1: `download_zip` crashes for any entry with `checksum_sha256: null`,
|
|
176
|
+
which is 225 of 230 production entries. Documented and fixed in 1.0.0rc2.
|
|
177
|
+
**Users on rc1 should upgrade.**
|
|
178
|
+
|
|
179
|
+
[1.0.0rc2]: https://github.com/Stebandido77/pulso/compare/v1.0.0rc1...v1.0.0rc2
|
|
180
|
+
[1.0.0rc1]: https://github.com/Stebandido77/pulso/releases/tag/v1.0.0rc1
|
pulso_co-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 pulso contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|