Python API Tutorial + Flet + JSON + Weather App

preview_player
Показать описание
In this Python tutorial we'll be laying down the foundation to develop a weather app using Open Weather API and Flet for UI. There are several important segments in this tutorial, namely the parts where we handle how to access JSON data via the weather API and how we can use that data to write minimal but efficient code and display it to the user. I implemented two methods in this tutorial, one where I write a lot of code for the purpose of demosntrating what's going and two where I minimize the maount of lines written and subsitute in logic to make the codespace easier to read.

* The API key used was found online, is not mine, and has limited acesbility with regards to the API of Open Weather.
** The data for the sunrise and sunset don't seem to be adding up. This may be from the code itself or the API we access. This should be kept in mind if the app is to be developed further.

Flet UI website with color, gradients, and animations:

#Python #tutorial
Рекомендации по теме
Комментарии
Автор

I'm sorry I don't know how to write English very well, but, I had to tell you (and he said it in Spanish). Pero qué buen trabajo estás haciendo amigo, estoy dandole con todo a flet porque creo que tiene un futuro enorme, saludo my friends y sigue con esto que ayudas a muchos

TheDacronik
Автор

Excelente video sigo esperando el dia que se puedan generar apk en flet

manueleverardofigueroagarc
Автор

Thank you very much... Make a video on deploy Flet apps to render

SP-dbsh
Автор

The project works normally on Windows, but when I convert the project to an apk and run it on the phone, it tells me
modulenotfounderror: no module named 'requests'

Please reply, I feel hopeless

MohamedGamal-nvbw
Автор

im definitely blind but how did you enable that smooth overscrolling thing on your grid view?

dzqfirr
Автор

Amazing work. But, cannot make an APK

Автор

А можно это скомпилировать в apk файл?
И ещё вопрос, это окно или телефонный эмулятор?

neponiatniichell
Автор

is this a mobile app? then how can it be downloaded to smartphones?

bozh
Автор

Hey first of all i love your videos and I want to get into building GUI using flet, I was wondering i know we can export this program to exe using pyinstaller but does flet allow exporting it to ios or android?

itspez
Автор

Hello, thanks for the video tutorials. Can I make the outer edges of the program transparent in Flet? I don't want the window borders to be visible in the Desktop application. I need the edges to be transparent so that it stays on the desktop like a widget.

harun
Автор

I'm having problem with the api in the request. When I follow your code, it does not let me get the data

cryphiergamer
Автор

How do I get the API for the weather, sir?

KINTUALEXLADWONG
Автор

_today = _current_temp()

File "c:\Users\User\PycharmProjects\weather.py", line 39, in _current_temp
_current_temp =

KeyError: 'current'

why do i have this error?

txhltvw
Автор

I hope to add the source code to it GitHub

ccwkjjf
Автор

I would appreciate if you could tell the audience with your voice what you are doing.

GeorgAubele
Автор

thanks for sharing - would be helpful if u can speak 🙏🙏

raJeshraOte