Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python flask - is it possible to create a personal website using only python?

Tags:

python

flask

I am new to web-sites field and I was wondering if you can make a simple personal website using only python (NO HTML, CSS, JS) and flask. I was searching a bit on the internet and didn't find any good examples.

Is it possible? And if it is any code examples?

I vould appreciate if you have any suggestions or exaples.

Here is what I want my website to look like(it doesn't need to have this many functions): https://palletsprojects.com/

like image 881
gasper_vaupot Avatar asked Jan 24 '26 10:01

gasper_vaupot


2 Answers

You can but it's not going to look anything even remotely close to the URL you provided. You are going to need to have at least a little HTML to get your site even remotely close to graphically pleasing. However, I have recently discovered a new framework for web apps which is almost exclusively python. It's called Pynecone. I hope this is what you're looking for.

like image 67
kalebthekraken Avatar answered Jan 27 '26 01:01

kalebthekraken


Pynecone

Before 2023, I have no good answer to this question.
But today, pynecone is the answer for yours.
pynecone can let people write full-stack python code
without HTML and CSS.
(When I post this article, it is 2023/03)

There are four basic resources that can help you understand what it is quickly.

Working examples of pynecone

There are some working examples here.
https://pynecone.app/docs/gallery
All examples here are written in python.

View of application developer

This video is helpful for the application/web programmer to understand what it is.
https://www.youtube.com/watch?v=ur4fCNMPp0I

System view of pynecone

If you want to know what happened inside of the pynecone, the following video is helpful.
https://www.youtube.com/watch?v=47BL6WLZJ1g

pynecone web application => iOS/Android App

pynecone is very good tool for a python programmer to develop WebApp.

Furthermore, if you want to convert WebApp into iOS/Android App, then you can use Capacitor to do it. There is also a good article to introduce how to do it.
https://itnext.io/how-to-build-android-and-ios-apps-with-pynecone-6d2097a7610d

More resources

official documents of pynecone
https://pynecone.app/docs/getting-started/introduction
source code of pynecone
https://github.com/pynecone-io/pynecone

like image 35
Milo Chen Avatar answered Jan 26 '26 23:01

Milo Chen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!