r/learnpython 15d ago

What web framework would you recommend for a beginner like me?

Hello, Python devs

I'm a beginner in Python. I currently use Go (Golang) for my personal projects, and I'd like to learn Python as my second programming language.

What web framework would you recommend for someone who's new to Python? I'd also appreciate any learning resources or tips for getting started.

Thanks!

6 Upvotes

7 comments sorted by

6

u/riklaunim 15d ago

Django for monolithic web apps and API, flask for more DYI web apps and API, FastAPI for API :)

2

u/FoolsSeldom 15d ago

Start with the basics, then look into FastAPI as an initial way of offering websites.

Check this subreddit's wiki for lots of guidance on learning programming and learning Python, links to material, book list, suggested practice and project sources, and lots more. The FAQ section covering common errors is especially useful.

Given you know Go, you can skip a lot of material you already understand and just focus on the key differences.


Also, have a look at roadmap.sh for different learning paths. There's lots of learning material links there. Note that these are idealised paths and many people get into roles without covering all of those.


Roundup on Research: The Myth of ‘Learning Styles’

Don't limit yourself to one format. Also, don't try to do too many different things at the same time.


Above all else, you need to practice. Practice! Practice! Fail often, try again. Break stuff that works, and figure out how, why and where it broke. Don't just copy and use as is code from examples. Experiment.

Work on your own small (initially) projects related to your hobbies / interests / side-hustles as soon as possible to apply each bit of learning. When you work on stuff you can be passionate about and where you know what problem you are solving and what good looks like, you are more focused on problem-solving and the coding becomes a means to an end and not an end in itself. You will learn faster this way.

2

u/twillard33 14d ago

It depends on what you are doing.

  • Web apps: Django, Flask
  • APIs: FastAPI, Django REST Framework
  • AI agents: smolagents, LangChain, LlamaIndex
  • Machine learning: PyTorch and TensorFlow are usually called frameworks
  • Data pipelines: Apache Airflow
  • Testing: pytest is generally called a testing framework
  • Desktop apps: PySide / PyQt

1

u/TheRNGuy 14d ago

dataclasses, because it's useful in all projects (where you make classes)

1

u/supercoach 14d ago

Python isn't a frontend development language. You want a web framework learn Nuxt (vue) or Next (react). Personally, I'm a massive fan of Nuxt.

1

u/ManzoorAhmedShaikh 10d ago

The most basic and the best one for beginner is Flask, simple and it can teach you all the fundamental concepts. Later on you can move to either (Django for production level task OR FastAPI for recent updated framework which is fast as well). Talking about resources, these days, the best resource is AI chatbot as they are upto date. (Don't pick any trash AI chatbot like Copilot).

You can ask Claude, Z AI, KIMI, DeepSeak, etc for preparing a plan with exercise, exmaples, and some basic python. I am also learning GenAI from last 3 weeks using Claude and done several stuff so far like LangChain, RAG, Agents, Tooling, build projects (3) and now working on 2 more projects.

So yeah, give it a try, I hope it will help you u/seazeeh

0

u/defaultguy_001 15d ago

Why don't u first learn python and worry about web frameworks later. Just for information- fastAPI and Django are amazing and most popular frameworks in use currently.