Fast SUS and climate data workflows for Brazil - Python edition
Project description
climasus4py
Fast SUS and climate data workflows for Brazil - Python edition.
Documentation: https://climasus.github.io/climasus4py_documentation/
Installation
Install from PyPI:
pip install climasus4py
Install with optional extras:
pip install "climasus4py[all]"
Install latest from GitHub:
pip install git+https://github.com/climasus/climasus4py.git
Quick Example
import climasus 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 climasus as cs
# 1. Import and cache
x = cs.sus_import("SIM-DO", "SP", [2021, 2022])
# 2. Clean
x = cs.sus_clean(x)
# 3. Standardize
x = cs.sus_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_variables(x, age_group="who", epi_week=True)
# 6. Aggregate
x = cs.sus_aggregate(x, time="month", geo="state")
# 7. Export
cs.sus_export(x, "output/dengue_sp.parquet")
Shared Metadata
climasus4py consumes metadata from climasus-data (disease groups, dictionaries,
UFs, regions). This dependency is installed automatically.
You can force update local metadata when needed:
from climasus 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file climasus4py-0.1.2.tar.gz.
File metadata
- Download URL: climasus4py-0.1.2.tar.gz
- Upload date:
- Size: 136.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8119df091e063d57c7fb17e2f0f879c6744a0d1c4e6dba6bd408c7361821809
|
|
| MD5 |
f6e0eb5b737031b977fe1c0b8ad97e64
|
|
| BLAKE2b-256 |
6c849929af4046075f901ab1362681778137ae367e06266ae9fa5bc467ad132b
|
Provenance
The following attestation bundles were made for climasus4py-0.1.2.tar.gz:
Publisher:
publish-pypi.yml on climasus/climasus4py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
climasus4py-0.1.2.tar.gz -
Subject digest:
c8119df091e063d57c7fb17e2f0f879c6744a0d1c4e6dba6bd408c7361821809 - Sigstore transparency entry: 1354582818
- Sigstore integration time:
-
Permalink:
climasus/climasus4py@f80bead901cacc18a4cf6be9b415b74672b6746d -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/climasus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@f80bead901cacc18a4cf6be9b415b74672b6746d -
Trigger Event:
push
-
Statement type:
File details
Details for the file climasus4py-0.1.2-py3-none-any.whl.
File metadata
- Download URL: climasus4py-0.1.2-py3-none-any.whl
- Upload date:
- Size: 42.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fbac133e047230e368a00b6c446203a7c6dae1f4d8bb44470e7054a6184fe78
|
|
| MD5 |
8918f79fafd2c807d7037b0479995944
|
|
| BLAKE2b-256 |
a9d442873eb595f3212c0fdc7317883bfe80b572f735e2861392d37ce8fcf21c
|
Provenance
The following attestation bundles were made for climasus4py-0.1.2-py3-none-any.whl:
Publisher:
publish-pypi.yml on climasus/climasus4py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
climasus4py-0.1.2-py3-none-any.whl -
Subject digest:
2fbac133e047230e368a00b6c446203a7c6dae1f4d8bb44470e7054a6184fe78 - Sigstore transparency entry: 1354582934
- Sigstore integration time:
-
Permalink:
climasus/climasus4py@f80bead901cacc18a4cf6be9b415b74672b6746d -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/climasus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@f80bead901cacc18a4cf6be9b415b74672b6746d -
Trigger Event:
push
-
Statement type: