Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

PyScript and Flask: Basic PyScript Frontend and DOM manipulations | PyScript tutorial

Автор: Red Eyed Coder Club

Загружено: 2022-05-23

Просмотров: 8175

Описание:

This is a very simple project built with PyScript and Flask.
Flask on the backend side, and Pyscript as the frontend.

The main idea of the video is to show how to use only Python both for backend and frontend.

I wanted to show how to make AJAX (asynchronous) GET and POST requests with Pyscript to Flask application, and how to manipulate DOM with Pyscript.

The frontend of the project is written with PyScript. When i'm clicking on the red button ... PyScript sends a GET request to my Flask application and gets a random number from 1 to 10...

When I click on a card... Pyscript sends a POST request to the Flask app and gets the float version of the sent numbers.

And again the video is about how to use Pyscript to send GET and POST requests to Flask, and how use Pyscript to manipulate with DOM

Follow me @:
Telegram: https://t.me/red_eyed_coder_club
Twitter:   / codereyed  
Facebook: https://fb.me/redeyedcoderclub


=== 📎 The source code is available via Patreon ===
  / 68004918  


Timecodes:

00:00 - Description of the Pyscript Flask project, attaching Python module to HTML template.
03:01 - Pyscript basic example.
03:40 - Basic Pyscript on-click event handler and event listener.
06:41 - Creating a basic function to send GET requests from Pyscript to Flask
08:40 - Using of pyfetch to send requests to Flask
10:13 - Creating a Pyscript event handler for a button. Pyscript DOM manipulations.
13:41 - The Flask side: handling requests from Pyscript
16:59 - How to send a POST request with Pyscript to Flask.
24:13 - Result of using Pyscript on Flask frontend.


** Other Flask Tutorials **
Flask AJAX Tutorial: Basic AJAX in Flask app:    • Flask AJAX Tutorial: Basic AJAX in Flask a...  
Python Flask and Vue Tutorial:    • Python Flask Vue Tutorial 🔥: TODO app with...  
Flask tutorial - blog project:    • Python Flask Tutorial #0: the Demo of the ...  

Pyscript and Flask: Basic Pyscript Frontend and DOM manipulations | Pyscript tutorial
   • PyScript and Flask: Basic PyScript Fronten...  

#pyscript #flask #redeyedcoderclub

PyScript and Flask: Basic PyScript Frontend and DOM manipulations | PyScript tutorial

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Learn Alpine.js in practice #2: Alpine js project - TODO app | Alpine.js course

Learn Alpine.js in practice #2: Alpine js project - TODO app | Alpine.js course

Orędzie noworoczne Prezydenta RP

Orędzie noworoczne Prezydenta RP

Откуда в трубке телефона берётся гудок?

Откуда в трубке телефона берётся гудок?

Как стать программистом с нуля в 2026: План обучения (БЕСПЛАТНО)

Как стать программистом с нуля в 2026: План обучения (БЕСПЛАТНО)

PyScript and Django: How to submit form and validate on Django side | PyScript tutorial

PyScript and Django: How to submit form and validate on Django side | PyScript tutorial

Python + pyscript + WebAssembly: Python Web Apps, Running Locally with pyscript

Python + pyscript + WebAssembly: Python Web Apps, Running Locally with pyscript

Python Flask Upload and Display Image | Flask tutorial

Python Flask Upload and Display Image | Flask tutorial

Python debugging with Python PDB - commands, post mortem and much more | Python PDB tutorial

Python debugging with Python PDB - commands, post mortem and much more | Python PDB tutorial

Что такое

Что такое "Reverse Engineering". Показываю как ломают софт.

Flask AJAX Tutorial: Basic AJAX in Flask app | Flask casts

Flask AJAX Tutorial: Basic AJAX in Flask app | Flask casts

Что такое Rest API (http)? Soap? GraphQL? Websockets? RPC (gRPC, tRPC). Клиент - сервер. Вся теория

Что такое Rest API (http)? Soap? GraphQL? Websockets? RPC (gRPC, tRPC). Клиент - сервер. Вся теория

Django AJAX Tutorial: Basic AJAX in Django app with Fetch API | Django casts

Django AJAX Tutorial: Basic AJAX in Django app with Fetch API | Django casts

Co kupują oprócz kawioru, blinów i igristego? #Moskwa #Rosja

Co kupują oprócz kawioru, blinów i igristego? #Moskwa #Rosja

PyScript - Run Python in the Browser! Will It Crush Javascript?!

PyScript - Run Python in the Browser! Will It Crush Javascript?!

Kubernetes — Простым Языком на Понятном Примере

Kubernetes — Простым Языком на Понятном Примере

Учебное пособие по шаблону «Наблюдатель»: Я НИКОГДА не знал, что события настолько мощны 🚀

Учебное пособие по шаблону «Наблюдатель»: Я НИКОГДА не знал, что события настолько мощны 🚀

PyScript and Django: Basic PyScript Frontend and DOM manipulations | PyScript tutorial

PyScript and Django: Basic PyScript Frontend and DOM manipulations | PyScript tutorial

Учебное пособие по HTTPX — HTTP-клиент нового поколения для Python

Учебное пособие по HTTPX — HTTP-клиент нового поколения для Python

React Hooks - 4 : Stop Prop Drilling in React - Use Context the Right Way (TypeScript Edition)

React Hooks - 4 : Stop Prop Drilling in React - Use Context the Right Way (TypeScript Edition)

Learn Alpine js in practice #1: Alpine js project - get data from API | Alpine.js course

Learn Alpine js in practice #1: Alpine js project - get data from API | Alpine.js course

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]