Skip to main content

anemos-py: A Python library for Anemos API

Project description

Hello Projects Anemos

This library for Anemos API develop by Solufit.

Anemos API provides Weather Information, Earthquake Information and more.

Visit Project Anemos Website!

Install

Install using pip install -U anemos-py.

A Simple Example

Using Anemos v2 API

Get Weather Information with postnumber

from anemos.weather import AnemosObjectType, v2get

weather_informations = v2get("5320011")

Warning: Some Ordinance designated city is not supported. ( For example, Minato Ward, Tokyo)

Return Value Example

[
    {
      "prefcode": null,
      "object_type": "Anemos.WeatherForecast",
      "regioncode": "270000",
      "title": "天気予報",
      "detail": {
        "weather_today": "101",
        "weather_tomorrow": "101",
        "max_temp": 28,
        "min_temp": 28,
        "rain_percent_now": 0,
        "rain_percent_6h": 10,
        "rain_percent_12h": 10,
        "rain_percent_18h": 10,
        "rain_percent_24h": 10,
        "rain_percent_30h": 0,
        "publishing_office": "大阪管区気象台",
        "reported_time": "2024-10-10T05:00:00+09:00"
      },
      "info_objectId": "5593591d-0de6-4d4a-a997-532c9eed1899",
      "areacode": null,
      "id": 178228,
      "status": "発表",
      "info_domain": "jma.go.jp",
      "reported_at": "2024-10-10T05:15:00"
    },
    {
      "prefcode": null,
      "object_type": "Anemos.WeatherWarning",
      "regioncode": null,
      "title": "大雨注意報",
      "detail": {
        "entryid": "20241007072516",
        "editorial_office": "大阪管区気象台",
        "publishing_office": "大阪管区気象台",
        "category": "大雨注意報",
        "datetime": "2024-10-07T07:25:15Z",
        "headline": "大阪府では、8日明け方まで急な強い雨や落雷に注意してください。",
        "pref": "大阪市"
      },
      "info_objectId": "51db0184-97b2-4040-9fe5-3aad9304c849",
      "areacode": "2710000",
      "id": 172614,
      "status": "解除",
      "info_domain": "jma.go.jp",
      "reported_at": "2024-10-07T16:30:00"
    },
    ・・・
]

Get Weather Information with postcode and objectType

from anemos.weather import AnemosObjectType, v2get

weather_informations = v2get("5320011", AnemosObjectTypes.WeatherWarning)

If you contact us

Repository developer is Anemos Develop Team on Email.

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

anemos-py-0.0.3.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

anemos_py-0.0.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file anemos-py-0.0.3.tar.gz.

File metadata

  • Download URL: anemos-py-0.0.3.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for anemos-py-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5148e8c49f82635f2d36dbf93b5dc4dda273893c94f20821ad428386c2deb895
MD5 9469eba3ba0f15ec342dc6fbb1beaf68
BLAKE2b-256 562b535df8f5cb0fa405c568f1f269e18ba5b6d9702d90e03a3f32751b56796d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: anemos_py-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for anemos_py-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e1a4d9d8fe1ff68039c81a52f1ee4efd7346de104bcf3b583fcb7f1dc81ac750
MD5 0f64bfe547cf674901dbfe19a9c5c6b9
BLAKE2b-256 e7130aa6ebe522d03e093ad6c8ff4dee43f86b48a18cd5f615f90dbb76e1a6aa

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