Skip to main content

MAGMA Volcano Eruption Notice (VEN)

Project description

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 locale parameter to init VEN class

[0.0.1] 2025-07-22

First release.

Added

  • First release.

Fixed

  • First release.

Changed

  • First release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

magma_ven-0.0.3.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

magma_ven-0.0.3-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file magma_ven-0.0.3.tar.gz.

File metadata

  • Download URL: magma_ven-0.0.3.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for magma_ven-0.0.3.tar.gz
Algorithm Hash digest
SHA256 103775161674591be70b7de5c2947856434dd08dd3a13981c3a8f693e1dd262f
MD5 86811317b3ed1a6ca0f7b1c4b391d60b
BLAKE2b-256 3650572775c148d331ff794e60abb5db94a00543c255813db90d093bfbd6ca65

See more details on using hashes here.

File details

Details for the file magma_ven-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: magma_ven-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for magma_ven-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b93292da3f02431a7dc11f0b014d5ab3e56905af327ee0a1486f3fa3deaf73cd
MD5 4e0c5113a89db4ee7e8460cac667282f
BLAKE2b-256 1d598a41603d46118b0456ab1eb62e9a5fe4a6184b19c4127b918abdefbf873c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page