Skip to main content

Python package to retrieve the most recent earthquake information in Indonesia

Project description

eqid

Python package to retrieve the most recent earthquake information in Indonesia.

How does it work?

This package collect data from BMKG, the official government-run agency for meteorology, climatology, and geophysics.

How to use

Call the function

import eqid

result = eqid.get_data()

The variable result will contain a dictionary with the detail of the latest earthquake.

{'date': '15 September 2021', 
 'time': '07:49:47 WIB', 
 'magnitude': 5.4, 
 'depth': 20,
 'location': {'lat': 1.28, 'long': 122.16}, 
 'center_description': 'Pusat gempa berada di laut 85 km BaratLaut Boalemo',
 'affected_description': 'Dirasakan (Skala MMI): III Boalemo, II - III Buol, 
 II Manado, II Bone Bolango, II Gorontalo, II Toli-toli'}

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

eqid-0.0.1.tar.gz (14.9 kB view hashes)

Uploaded Source

Built Distribution

eqid-0.0.1-py3-none-any.whl (14.9 kB view hashes)

Uploaded Python 3

Supported by

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