Metadata-Version: 2.1
Name: bmkg
Version: 0.1.0
Summary: Unofficial BMKG API Python Wrapper.
Home-page: https://github.com/vierofernando/bmkg
Author: vierofernando
Author-email: vierofernando9@gmail.com
License: MIT
Download-URL: https://github.com/vierofernando/bmkg/archive/0.1.0.tar.gz
Keywords: Weather,BMKG,Indonesia,API,API Wrapper,Wrapper
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# bmkg
Unofficial Python wrapper for the [BMKG (Meteorology, Climatology, and Geophysical Agency)](https://www.bmkg.go.id/) API.<br>

## Installation
```bash
$ pip install bmkg
```

## Importing
```py
from bmkg import BMKG
```

## Usage
P.S: wrap this example in an async function!
```py
# initiate the class
bmkg = BMKG()

# get history of the latest earthquakes
earthquakes = await bmkg.get_recent_earthquakes()
for earthquake in earthquakes:
    print(earthquake)

# get wind forecast image
image = await bmkg.get_wind_forecast()
with open("wind-forecast.jpg", "wb") as f:
    f.write(image)
    f.close()

# close the class once done
await bmkg.close()
```

