Skip to main content

Current weather and forecast information library for kma.go.kr

Project description

# KMA
Korea weather information library for kma.go.kr under python3

### Dependencies
This library uses below libraries. Please refer requirements.txt for the details.
1. urllib3
2. certifi
3. pytz

### How to use this library

#### 1. Request to issue a service key
Please visit below url.
You should understand Korean language, I think.

https://www.data.go.kr/dataset/15000099/openapi.do

#### 2. Install
```python
pip install kma
```

#### 3. Sample code
```python
from kma import Weather

w = Weather('YOUR_SERVICE_KEY')
curr = w.get_current()
forecast = w.get_forecast()

print('Current temperature: {}'.format(curr.temperature))
```

#### Deprecated features

##### 1. Sky status
No longer supported by Korea Meteorological Administration.


Project details


Download files

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

Files for kma, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size kma-0.3.0-py3-none-any.whl (7.6 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page