Skip to main content

A package for searching weather information

Project description

Search Weather

목적

Search Weather는 사용자의 자연어 쿼리를 기반으로 날씨 정보를 검색하고 제공하는 파이썬 패키지입니다. 이 프로젝트의 주요 목적은 다음과 같습니다:

  1. 사용자가 일상적인 언어로 날씨 정보를 요청할 수 있게 합니다.
  2. 위치와 날짜 정보를 자동으로 추출하여 정확한 날씨 정보를 제공합니다.
  3. OpenWeatherMap API를 활용하여 신뢰할 수 있는 날씨 데이터를 제공합니다.
  4. 날씨 정보를 이해하기 쉬운 자연어 형태로 변환하여 제공합니다.

사용하기

설치

pip를 사용하여 설치:

pip install search-weather

또는 poetry를 사용하여 설치:

poetry add search-weather

기본 사용법

from search_weather import set_api_key, query

# OpenWeatherMap API 키 설정
set_api_key("your_api_key_here")

# 날씨 쿼리 실행
result = query("내일 서울의 날씨는 어때")
print(result)

주의사항

  • OpenWeatherMap API 키가 필요합니다. OpenWeatherMap에서 무료로 API 키를 발급받을 수 있습니다.
  • 처음 사용 시 한국어 언어 모델(ko_core_news_sm)을 자동으로 다운로드합니다. 인터넷 연결이 필요하며 다운로드에 시간이 걸릴 수 있습니다.

테스트하기

이 프로젝트는 pytest를 사용하여 테스트를 실행합니다. 테스트를 실행하려면 다음 단계를 따르세요:

  1. 프로젝트 루트 디렉토리로 이동합니다.
  2. 필요한 의존성을 설치합니다: pip install -r requirements-dev.txt
  3. 다음 명령어로 테스트를 실행합니다: pytest tests/

주요 테스트 케이스:

  • API 키 설정 및 조회 테스트
  • 쿼리 파싱 테스트
  • 위치 정보 변환 테스트
  • 날씨 정보 조회 테스트
  • 전체 프로세스 테스트
  • 에러 처리 테스트

라이선스

이 프로젝트는 MIT 라이선스 하에 배포됩니다. 자세한 내용은 LICENSE 파일을 참조하세요.

연락처

프로젝트 관리자: minarae

프로젝트 홈페이지: https://github.com/minarae/search_weather

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

search_weather-0.1.0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

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

search_weather-0.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file search_weather-0.1.0.tar.gz.

File metadata

  • Download URL: search_weather-0.1.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.4

File hashes

Hashes for search_weather-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4cdcae468dc1630fbba7c83b613730604905588e86328a30b2c7d038e8764edb
MD5 267c08da4538adca89f4152792950fd8
BLAKE2b-256 dedd30256d32c2587eae9bf946bb4d925e3fca2c1a14527be51f04f43312d218

See more details on using hashes here.

File details

Details for the file search_weather-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: search_weather-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.4

File hashes

Hashes for search_weather-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb2df15a89fe3e969bc7c7a695b920c587cd48293a22e3aa0df929b3b6a89aea
MD5 a0ba07bc3aaac84aed9f865412f87b60
BLAKE2b-256 315bbc7bb4b91d6b5515308677487c10b1e3adb0bf69491230b8ac1f70774bb0

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