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.0.tar.gz (4.8 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.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: relizene_weather-1.0.0.tar.gz
  • Upload date:
  • Size: 4.8 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.0.tar.gz
Algorithm Hash digest
SHA256 865189ed5a746911d8c83b0592f74a7ea4c8940ee2171febd56ae7d3394a08c4
MD5 bc1f12c01cf0e1211f5d7babdd4800a0
BLAKE2b-256 0bd02a3bd6e1af53fec603638126da44b45975b463da3aa7ebbf5712acec7001

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for relizene_weather-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a21769b44d548e68bb06d48a600c55e22914e1359b27c2fcfa728f3f1be6cc3
MD5 ff90f1398bff05d989750f7b4eb9a69d
BLAKE2b-256 87f083b16a7601070f7baf4ecb8da4394d1b191a10a287ff622123de982178a6

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