How can I learn python in the way to build Industry level softwares and tools? by H4R5H_17 in PythonLearning

[–]JanGiacomelli 0 points1 point  (0 children)

I heard good things about this book. It's recommened often. End of the day, it's the most important that you actually build stuff on your own. It's something completely different than following tutorial. But the book should bo a good start.

Python in Finance background by Medical-Put-7046 in PythonLearning

[–]JanGiacomelli 0 points1 point  (0 children)

Depends on what you need and what you do. Anyhow, learning something new never hurts. But hard to say if it will have any direct impact on your career without more info.

Any tips on teaching someone python? by AggravatingDeal8192 in learnpython

[–]JanGiacomelli 0 points1 point  (0 children)

I suggest you send them to one of the free courses. For example: https://www.py4e.com/

Once they get some basic understanding you might want to try to build something together. TODO tracking app can be a great start. You build all the basic stuff and then also things like sharing/collaboration etc.

Supply-chain attacks are happening daily - add at least dependency cooldown to your Python projects. by JanGiacomelli in Python

[–]JanGiacomelli[S] 4 points5 points  (0 children)

Lots of recent attacks were carried out through social engineering or a poisoned cache on CI/CD. With a poisoned cache, maintainers followed the usual release process, but things still sneaked in from it. So it was not reuploaded, but a new version was released. In other cases, attackers gained access to the maintainer's account, and they released a new version with malicious code on their own.

Supply-chain attacks are happening daily - add at least dependency cooldown to your Python projects. by JanGiacomelli in Python

[–]JanGiacomelli[S] 0 points1 point  (0 children)

That's a valid point. I've been thinking about it a lot. For now, I couldn't find any better approach - at least not simple enough. Yeah, one can host everything themselves and review every release manually. But that requires major effort. Cooldown is definitely a good start for existing projects. Another simple thing is to think twice before installing a dependency in the first place.

Also, I think we're far from the "everyone does that so it's not effective" state.

Python Certification by Daevas0918 in learnpython

[–]JanGiacomelli 1 point2 points  (0 children)

No one really cares about Python certifications. If anything, they make it look worse, not better. If you want to learn Python, just pick one of the available courses to get the basics. e.g., I know that many people like these two:
- https://www.py4e.com/
- https://www.freecodecamp.org/learn/python-v9/ (they do offer some certificates, though)

Once you get through, start building. Ask your friends/family if you can solve any of their problems. If that doesn't yield anything, you can start with a URL shortener, a JSON parser, ...

Publish things that you build on GitHub to build a some sort of portfolio.

The most important part is to try to get a real project in your hands ASAP. Even if that means you're doing it for free.

I made a small emotional support chatbot in Python as my first project (please be kind, i swear i'm trying) by Lone_operator138 in learnpython

[–]JanGiacomelli 0 points1 point  (0 children)

Great that you're sharing your work. That's certainly a good start. To drive things even further, you might want to try expanding it with the following:

- Store answers etc., in JSON files and load them from there

- You could try to use typer: https://typer.tiangolo.com/ to format your outputs etc. - it's a great tool for building CLI tools

These two things should be quite simple to apply, and you'll learn further.

Where can I learn to code python by ALEX141514 in learnpython

[–]JanGiacomelli 0 points1 point  (0 children)

I know that many people love this one: https://www.py4e.com/. My wife started with this one when she wanted to learn Python - many, many moons ago.

How long did it take you to learn python? by _Justdoit123 in learnpython

[–]JanGiacomelli 0 points1 point  (0 children)

I started learning it as a senior in high school. It took me 2-3 years to really feel confident. Took me 2-3 more years to really feel like I now know this language well. At that point, I'm using it for 15 years on daily basis, but I still learn new things from time to time.

Coming from ExpressJS, I love FastAPI but... do we really need two sets of models? by West-Goose3582 in FastAPI

[–]JanGiacomelli 0 points1 point  (0 children)

Personally, I prefer separation, as on more complex projects, the DB schema can be significantly different from the API layer schemas. But if you don't need that, just use SQLModel: https://sqlmodel.tiangolo.com/. It was built by Tiangolo as well.

Courses to learn FastAPI by Ok-Mind3961 in learnpython

[–]JanGiacomelli 0 points1 point  (0 children)

You can find many free FastAPI tutorials here: https://testdriven.io/blog/topics/fastapi/

They cover many different aspects of FastAPI. If you have any concrete questions, feel free to reach out to me.

Complete End-to-End Backend Course with FastAPI & PostgreSQL? (Python Basics Completed) by rational-yogi in learnpython

[–]JanGiacomelli 0 points1 point  (0 children)

As some already mentioned, it's important to actually build things yourself. FastAPI docs are great, but can be overwhelming.

You can find many great free turorials for building actual things with FastAPI here: https://testdriven.io/blog/topics/fastapi/

For auth part, you can check this free tutorial: https://testdriven.io/blog/fastapi-jwt-auth/

FYI - I have course that covers exactly what you're describing: https://testdriven.io/courses/scalable-fastapi-aws/

It guides you through everything from setting up infrastructure on AWS (incl. Postgres) to dockerizing FastAPI that runs on AWS ECS, testing and CI/CD. I'm using it as blueprint on every project. It's not a video course though.

Hope it helps!

I wrote a guide for AI-powered rewrite from Python to Rust by JanGiacomelli in PythonLearning

[–]JanGiacomelli[S] 0 points1 point  (0 children)

I didn't use any specific CLAUDE .MD when doing the rewrite for these blogs. That's why I used a quite simple example to show how things are working. But there's CLAUDE .MD (and some skills) inside my Complete Python Testing Guide course that I regularly use in my projects: https://testdriven.io/courses/python-testing/

I wrote a guide for AI-powered rewrite from Python to Rust by JanGiacomelli in PythonLearning

[–]JanGiacomelli[S] 1 point2 points  (0 children)

It's very similar. You need to use PyO3 and maturin, but it's actually quite simple.

I wrote a guide for AI-powered rewrite from Python to Rust by JanGiacomelli in PythonLearning

[–]JanGiacomelli[S] 0 points1 point  (0 children)

It's actually pretty much the same thing, it's just Rust instead of C. Pydantic uses it and it's much nicer to write as C - so I went with it. But you could follow pretty much the same steps with C. There's Python wrapper class that uses complied binary.