magma-var
Python package for MAGMA Volcano Eruption Notice (VEN)
1. How to use
Make sure you have MAGMA token. Check examples directory.
Volcano name and code:
| Volcano | Code |
|---|---|
| Agung | AGU |
| Ambang | AMB |
| Anak Krakatau | KRA |
| Anak Ranakah | RAN |
| Arjuno Welirang | WEL |
| Awu | AWU |
| Banda Api | BAN |
| Batur | BAT |
| Batutara | TAR |
| Bromo | BRO |
| Bur Ni Telong | TEL |
| Ciremai | CER |
| Colo | COL |
| Dempo | DEM |
| Dieng | DIE |
| Dukono | DUK |
| Ebulobo | EBU |
| Egon | EGO |
| Galunggung | GAL |
| Gamalama | GML |
| Gamkonora | GMK |
| Gede | GED |
| Guntur | GUN |
| Ibu | IBU |
| Ijen | IJE |
| Ile Werung | WER |
| Ili Boleng | BOL |
| Ili Lewotolok | LEW |
| Inielika | LIK |
| Inierie | RIE |
| Iya | IYA |
| Kaba | KAB |
| Karangetang | KAR |
| Kelimutu | KLM |
| Kelud | KLD |
| Kerinci | KER |
| Kie Besi | KIE |
| Lamongan | LAM |
| Lereboleng | LER |
| Lewotobi Laki-laki | LWK |
| Lewotobi Perempuan | LWP |
| Lokon | LOK |
| Mahawu | MAH |
| Marapi | MAR |
| Merapi | MER |
| Papandayan | PAP |
| Peut Sague | PEU |
| Raung | RAU |
| Rinjani | RIN |
| Rokatenda | ROK |
| Ruang | RUA |
| Salak | SAL |
| Sangeangapi | SAN |
| Semeru | SMR |
| Seulawah Agam | SEU |
| Sinabung | SIN |
| Sirung | SIR |
| Slamet | SLA |
| Soputan | SOP |
| Sorikmarapi | SOR |
| Sumbing | SBG |
| Sundoro | SUN |
| Talang | TAL |
| Tambora | TAM |
| Tandikat | TAN |
| Tangkoko | TGK |
| Tangkuban Parahu | TPR |
| Teon | TEO |
| Wurlali | WUR |
1.1 Install module
pip install magma-ven
Check your version:
print(magma_ven.__version__)
1.2 Download Volcanic Eruption Notice (VEN)
To download Volcanic Eruption Notice (VEN):
Import MAGMA VEN download module
from magma_ven import Download
Initiate download:
download = Download(
token="<token>", # replace with your MAGMA Token
volcano_code='IBU', # Volcano code
start_date='2025-01-01',
end_date='2025-07-30',
locale='en', # Default to "id"
verbose=True, # Show detailed information
debug=False # For development purpose
)
Start your download:
download.ven()
Check VEN downloaded data:
download.data
Check VEN DataFrame:
download.df
Save as CSV or Excel:
download.to_csv()
download.to_excel()
Full code example
from magma_ven import Download
download = Download(
token="token",
volcano_code='IBU', # Check volcano table code above
start_date='2025-01-01',
end_date='2025-07-30',
locale='en',
verbose=True,
debug=False
)
# Starting to download
download.ven()
# Save into files
download.to_csv()
download.to_excel()
Changelog
[0.0.2] 2025-07-31
Update translation to english and add ability to save as file.
Added
- Add english translation.
- Add ability to save as an excel or CSV
Fixed
- Refactoring to source directory.
Changed
- Add
localeparameter to init VEN class
[0.0.1] 2025-07-22
First release.
Added
- First release.
Fixed
- First release.
Changed
- First release.
Metadata
Release files for magma-ven 0.0.3
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 |
|---|---|---|---|---|
| magma_ven-0.0.3.tar.gz | 10.0 kB | Without provenance | Details for magma_ven-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| magma_ven-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for magma_ven-0.0.3-py3-none-any.whl |
Total release size: 20.0 kB
Release files / magma_ven-0.0.3.tar.gz
| Download URL | magma_ven-0.0.3.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
103775161674591be70b7de5c2947856434dd08dd3a13981c3a8f693e1dd262f
|
|
BLAKE2b-256 checksum How to use checksums |
3650572775c148d331ff794e60abb5db94a00543c255813db90d093bfbd6ca65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.7
|
Release files / magma_ven-0.0.3-py3-none-any.whl
| Download URL | magma_ven-0.0.3-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b93292da3f02431a7dc11f0b014d5ab3e56905af327ee0a1486f3fa3deaf73cd
|
|
BLAKE2b-256 checksum How to use checksums |
1d598a41603d46118b0456ab1eb62e9a5fe4a6184b19c4127b918abdefbf873c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.7
|
Security for magma-ven 0.0.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.