Skip to main content

Python weather module with city validation

Project description

Relizene Weather

PyPI License Python

Simple and user-friendly Python module for fetching weather forecasts via the OpenWeatherMap API. Supports location validation using Nominatim and request caching. Features advanced city validation logic. For full details, refer to the documentation in the Doc folder.

Key Features Highlighted: Easy Integration: Straightforward access to OpenWeatherMap API.

Location Validation: Ensures accurate city/region names via Nominatim.

Caching: Reduces API calls by caching frequent requests.

Robust Validation: Sophisticated checks for city name accuracy and geolocation.

Documentation: Comprehensive guides and details available in the Doc folder.


🚀 Fast start

Installation

pip install relizene-weather

Usage example

python
from relizene_weather import main

Inicialization with API-key

fetcher = main.run_city(appid="You_Key_OPENWEATHERMAP")

recieve weather for city (automatic validation via Nominatim)
weather = main.run_city(city = "London")
print(weather)

📚 Documentation. Basic methods

run_cuty(location: str) -> WeatherData   returns an object with weather data. 
run_geo(location: str) -> str  returns an object with weather data. 

Examples with coordinates
python
weather = main.run_geo(lat=55.75, lon=37.61)

🛠️ For developers

Source installation 
bash
git clone https://github.com/relizene/Relizene_weather.git
cd Relizene_weather
pip install -e .

Tests run

bash pytest tests/ -v

🤝 How to help project

Fork repository
Create branches: git checkout -b feature/new-feature
Commit changes: git commit -m 'Add awesome feature'
Push branches: git push origin feature/new-feature
Create Pull Request

📜 License

Distributed under a license MIT. more detailed in LICENSE.

📧 Contacts

Reliz unknouwn – telegramm@Valodyaaa – email@vovaegorov689@gmail.com project in GitHub: https://github.com/relizene/Relizene_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

relizene_weather-1.0.1.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

relizene_weather-1.0.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file relizene_weather-1.0.1.tar.gz.

File metadata

  • Download URL: relizene_weather-1.0.1.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for relizene_weather-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e51f6d77270bea6ccad70f3ab45f6d7e0cb1272b760f1abc219dae77b4f320b4
MD5 066cc73dc3816d1f875c39218d752a3f
BLAKE2b-256 004eb731d5a426b04f07bc1116276b8b10e0ffc10e3e946a8fc7a78e9020d6f2

See more details on using hashes here.

File details

Details for the file relizene_weather-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for relizene_weather-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7b3fdbaa542f752bc4aeeeed364227cdb5a5573df14cb2b9912e51c250008592
MD5 3d4f6d32efaf406b42299a3f9d0401ca
BLAKE2b-256 d6fa0f01f1fb785093ea3260bde6b862e27bfba5e166dec27fd214b12919aff9

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