This release is a pre-release and may not be stable for production use.
climasus4py
Fast SUS and climate data workflows for Brazil - Python edition.
Documentation: https://climasus.github.io/climasus4py
Installation
Nota: a versão atual (
0.2.0a1) é uma pré-release (alfa). Use a flag--prepara instalá-la. Quando a0.2.0estável for publicada, o comando padrão funcionará sem flags adicionais.
Install from PyPI (current pre-release):
pip install --pre climasus4py
Install a specific extra (current pre-release):
pip install --pre "climasus4py[all]"
Install latest from GitHub:
pip install git+https://github.com/climasus/climasus4py.git
Quick Example
import climasus4py as cs
result = cs.sus_pipeline(
system="SIM-DO",
uf="SP",
year=[2021, 2022, 2023],
lang="en",
groups=["dengue"],
time="month",
geo="state",
)
print(result.df().head())
Step-by-step Example
import climasus4py as cs
# 1. Import and cache
x = cs.sus_data_import("SIM-DO", "SP", [2021, 2022])
# 2. Clean
x = cs.sus_data_clean_encoding(x)
# 3. Standardize
x = cs.sus_data_standardize(x, lang="en")
# 4. Filter
x = cs.sus_filter(x, groups=["dengue"], age_min=0, age_max=80)
# 5. Create variables
x = cs.sus_data_create_variables(x, age_group="who", epi_week=True)
# 6. Aggregate
x = cs.sus_data_aggregate(x, time="month", geo="state")
# 7. Export
cs.sus_export(x, "output/dengue_sp.parquet")
To preserve the original DATASUS .dbc files for audit or reuse, enable the raw
cache explicitly:
x = cs.sus_data_import(
"SINAN-DENGUE",
"SP",
2024,
store_raw=True,
raw_cache_dir="dados/cache/raw",
)
Shared Metadata
climasus4py consumes metadata from climasus-data (disease groups, dictionaries,
UFs, regions, DATASUS FTP sources and SINAN disease codes). This dependency is
installed automatically.
You can force update local metadata when needed:
from climasus4py import update_climasus_data
update_climasus_data()
Contributing
- Pull requests and issues are welcome.
- Run tests locally before opening PRs.
- Include a minimal reproducible example for bug reports.
License
MIT
Metadata
Release files for climasus4py 0.2.0a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| climasus4py-0.2.0a2.tar.gz | 178.9 kB | With provenance | Details for climasus4py-0.2.0a2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| climasus4py-0.2.0a2-py3-none-any.whl | Python 3 | none | any | Details for climasus4py-0.2.0a2-py3-none-any.whl |
Total release size: 269.8 kB
Release files / climasus4py-0.2.0a2.tar.gz
| Download URL | climasus4py-0.2.0a2.tar.gz |
|---|---|
| Size | 178.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
503bff3f8c7ddeb10b067900dc0f4116f0f41688d7bc5e6dd516e2887acdeac5
|
|
BLAKE2b-256 checksum How to use checksums |
c3a16d04da0e5a8840032348d9e3b8f01d95000c2c95e30bc686b4f01d25b757
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 10, 2026.
Transparency logRelease files / climasus4py-0.2.0a2-py3-none-any.whl
| Download URL | climasus4py-0.2.0a2-py3-none-any.whl |
|---|---|
| Size | 90.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
98a7ac41361b0c0d8adeb1928baac42e0a4ba526caf26fae0fa9aedc5a6b83cb
|
|
BLAKE2b-256 checksum How to use checksums |
19f298cb0049e2390d079be63259d8079fed88649fb56a79b384361ed8864db0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 10, 2026.
Transparency logSecurity for climasus4py 0.2.0a2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for climasus4py-0.2.0a2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 10, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.