Skip to main content

Weather App

Project description

-- RU --

Приложение «Погода»

Простое приложение Python для получения данных о погоде с помощью API OpenWeather.


Установка

pip install openweatherappapi

Получить ключ API

  1. Нажмите здесь, чтобы получить ключ API
  2. Зарегистрируйтесь на странице.
  3. Щелкните свое имя пользователя вверху.
  4. Выберите Мои ключи API и скопируйте ключ API по умолчанию.

Пример использования

from openweatherappapi import WeatherApp

WeatherApp.run(openweatherappapi.weatherApp(), "Твой API Ключь") # если вы хотите преобразовать в exe, напишите этот код:
WeatherApp.run(openweatherappapi.weatherApp(), "Твой API Ключь", "Путь Изображение") # Загрузите изображения здесь: https://drive.usercontent.google.com/u/0/uc?id=1wouoR7zORW_le3UbQtECBjxQewBeF5Ys&export=download

Преобразование скрипта Python в EXE

Вы можете преобразовать скрипт Python в исполняемый файл Windows с помощью пакета auto-py-to-exe.

1. Установите auto-py-to-exe

pip install auto-py-to-exe

2. Запустите auto-py-to-exe

auto-py-to-exe

3. Настройте сборку

  • В графическом интерфейсе выберите скрипт Python.
  • Выберите Один файл, чтобы объединить все в один исполняемый файл.
  • При необходимости измените другие параметры.

4. Запустите сборку

  • Нажмите кнопку Преобразовать .py в .exe.
  • После завершения процесса вы найдете исполняемый файл в выходной папке.

Для получения более подробной информации ознакомьтесь с документацией auto-py-to-exe.


Контакты

-- EN --

Weather App

A simple Python app to get weather data using the OpenWeather API.


Installation

pip install openweatherappapi

Get an API Key

  1. Click here to get your API Key
  2. Register on the page.
  3. Click your username at the top.
  4. Select My API keys and copy the default API key.

Example Usage

from openweatherappapi import WeatherApp

WeatherApp.run(openweatherappapi.weatherApp(), "Your Api Key") # if you want convert to exe write code this:
WeatherApp.run(openweatherappapi.weatherApp(), "Your Api Key", "path images") # Download Images Here: https://drive.usercontent.google.com/u/0/uc?id=1wouoR7zORW_le3UbQtECBjxQewBeF5Ys&export=download

Convert Python Script to EXE

You can convert your Python script to a Windows executable using the auto-py-to-exe package.

1. Install auto-py-to-exe

pip install auto-py-to-exe

2. Launch auto-py-to-exe

auto-py-to-exe

3. Configure Your Build

  • In the GUI, select your Python script.
  • Choose One File to bundle everything into a single executable.
  • Adjust other settings as needed.

4. Start the Build

  • Click the Convert .py to .exe button.
  • After the process completes, you’ll find the executable in the output folder.

For more details, check the auto-py-to-exe documentation.


Contacts

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

openweatherappapi-7.0.8.tar.gz (92.7 kB view details)

Uploaded Source

Built Distribution

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

openweatherappapi-7.0.8-py3-none-any.whl (106.4 kB view details)

Uploaded Python 3

File details

Details for the file openweatherappapi-7.0.8.tar.gz.

File metadata

  • Download URL: openweatherappapi-7.0.8.tar.gz
  • Upload date:
  • Size: 92.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for openweatherappapi-7.0.8.tar.gz
Algorithm Hash digest
SHA256 cbc39e824d0cda3db4e78ca07888891a7ecfa470dba0925969f02a21f283328c
MD5 b59a171f0194021efac540aa3fc7bb49
BLAKE2b-256 db58ca05c6e15e07dac9c17ae83806cb6326f99ec2373fe5c9123363771cd82e

See more details on using hashes here.

File details

Details for the file openweatherappapi-7.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for openweatherappapi-7.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 19c2cb415c6a6e7f1e146986f380e10fe413bcbcd3ca9131e04b1b92438c2ff5
MD5 2c442cf70d6786a677345423659efd18
BLAKE2b-256 cb1bb59dd0032f6c3bdf5542523f16c3ff5d9b622495376095b0861b084b33e8

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