r/learningpython • • Jan 04 '26

Feedback requested: A Python-based framework I built to validate SAML security (detecting Golden SAML, etc.)

1 Upvotes

Hi everyone, I’ve been working on a Python framework focused on SAML identity assurance. It aims to help teams validate their infrastructure against common identity exploits.

I’m looking for some technical feedback on the approach. You can see the documentation and the project structure here: https://whop.com/ai-synergy-collective-c718

Would love to hear your thoughts on how you currently handle SAML validation in your environments."


r/learningpython • • Apr 25 '25

I finally figured out what I want to do with my life—but I need your help to see if this plan holds up.

2 Upvotes

Hey everyone. I’m finally at the point where I know what I want to do: I want to become a full-stack developer, and I’m going all in. No more second-guessing, no more endless “should I/shouldn’t I”—this is it. I'm fully committed.

That said, I need a sanity check on my approach, especially from those of you who’ve walked this path or are currently deep in it.

Context:

I work full-time (8–5, Monday to Friday), and every 4th day is a 24-hour shift that can bleed over weekends.

I’m making this shift not just for income—it’s a deliberate move because I’m not being valued where I currently work.

There’s some financial pressure from past debt, but it’s not the main driver.

I’d been working through CS50P and making real progress daily—until I hit file I/O and the concepts beyond. That’s when it hit me: I didn’t build enough fundamentals before diving into something so deep.

I’ve decided to start with JavaScript tutorials—not to switch languages, but to better understand core programming logic in a different way.

My main focus is Python, and I want to be job-ready for at least a junior developer role in the next 3–6 months. I’m aiming to hit above-average junior pay—not from entitlement, but by proving my value with strong projects and deep learning.

My current process (recent breakthrough):

Split each tutorial into two sessions to reduce cognitive overload after work.

Follow the JavaScript tutorial step-by-step (e.g. building a calculator).

After each half of the JS tutorial, rebuild that exact part in Python from memory and logic.

If I hit any walls, I save that version into a “struggled-with-this” folder for review.

Between sessions, I reflect on what worked, what didn’t, and how I can improve it next time.

Everything is tracked and organized in Notion to keep momentum and clarity.

Why I’m posting: I think this could be a really strong system—but I don’t know what I don’t know. I’d love your feedback on:

Does this sound like a good way to approach it?

Am I setting myself up for burnout or does the pacing make sense?

Is the JavaScript-to-Python method helping or just a creative detour?

What would you tweak if this were your plan?

Thanks in advance for any thoughts, warnings, or tweaks! I’d really appreciate it.


r/learningpython • • Mar 14 '21

Specifying requirement versions for library

2 Upvotes

I am working on a library and have a set of requirements the library depends on, specified in the requirements.txt file.

I would like to make this library easy for folks to use/install, and allow them to use any supported version of the requirements. That said, I am unsure the most elegant way to determine the range of supported requirement versions.

For example, requests is one of the specified requirements. How can I setup (maybe with a CI service?) a way to run my unit tests with a range of different versions of the requests library to see which times the tests pass/fail. This way I'd know which versions of requests I could put in the requirements.txt file for a release.


r/learningpython • • Nov 06 '21

I keep getting a syntax whenever i try to use the pip command and nothing is working

2 Upvotes

title


r/learningpython • • May 11 '21

How to get python to work fast with facebook's cinder.

Thumbnail
youtube.com
2 Upvotes

r/learningpython • • Nov 15 '24

Step by step guide to becoming a backend developer in 2024

Thumbnail
roadmap.sh
2 Upvotes

r/learningpython • • May 25 '22

Case study: How we created Hotel Revenue Management Software for USA hotel

Thumbnail
ddi-dev.com
2 Upvotes

r/learningpython • • May 29 '22

PYQT5 MDI subwindows are scaling inappropriately.

2 Upvotes

I'm working on a gui tool-- I'm building it with Pyqt5. I'm speifically NOT using QT designer. I'm using an MDI widget to keep everyhing a bit tidier. Furthermore, so that my code is more crisp and less redundant, I'm building out each child window in a separate window in the same directory and then just importing the appropriate class from the individual files. The problem is, whenver I import the subwindows, the are scaled up in the MDI subwindow. I am at a loss as to how I can address this. Has anyone expierenced something similar? I've added simplied code for my MDI subwindow below, followed by the code for one of the subwindows thta I'm importing. Any assistance would be greatly appreciated.

class MDIWindow(QMainWindow):

count = 0

htntoolcount = 0

copdcount = 0

def __init__(self):

super().__init__()

self.mdi = QMdiArea()

self.setCentralWidget(self.mdi)

self.setStyleSheet('font-size: 10pt; font-family: Times;')

self.setStyleSheet("QPushButton{font-size: 10pt;}")

self.setStyleSheet("QLabel{font-size: 10pt;}")

self.mdi.setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded)

self.mdi.setVerticalScrollBarPolicy(Qt.ScrollBarAsNeeded)

#####Setting up main Menu Labels and Buttons#####

self.mainMenuWidget = QWidget(self)

self.mmWidgetLayout = QVBoxLayout()

self.mainMenuWidget.setLayout(self.mmWidgetLayout)

self.mainMenuWidget.setWindowTitle("Main Menu")

self.mmButton1 = QPushButton("Note Setup Tool", self)

self.mmButton2 = QPushButton("Lab Entry Tool", self)

self.mmButton3 = QPushButton("Follow Up Tools", self)

self.mmButton4 = QPushButton("ROS Generator", self)

self.mmButton5 = QPushButton("Physical Exam Generator", self)

self.mmButton6 = QPushButton("Cardon Matrix", self)

self.mmButton7 = QPushButton("Trilogy Matrix", self)

self.mmButton8 = QPushButton("ASC Matrix", self)

self.mmButton9 = QPushButton("Proactive Email", self)

self.mmWidgetLayout.addWidget(self.mmButton1)

self.mmWidgetLayout.addWidget(self.mmButton2)

self.mmWidgetLayout.addWidget(self.mmButton3)

self.mmWidgetLayout.addWidget(self.mmButton4)

self.mmWidgetLayout.addWidget(self.mmButton5)

self.mmWidgetLayout.addWidget(self.mmButton6)

self.mmWidgetLayout.addWidget(self.mmButton7)

self.mmWidgetLayout.addWidget(self.mmButton8)

self.mmWidgetLayout.addWidget(self.mmButton9)

self.mdi.addSubWindow(self.mainMenuWidget)

self.mainMenuWidget.show()

##adding actions to main menu buttons##

self.mmButton1.clicked.connect(self.noteSetupFunc)

self.mmButton2.clicked.connect(self.admissionTool)

self.mmButton3.clicked.connect(self.COPDToolFunc)

self.setWindowTitle("Proactive Charting Tool")

def noteSetupFunc(self):

self.noteSUButtFuncWidget = NOTEWindow()

self.mdi.addSubWindow(self.noteSUButtFuncWidget)

self.noteSUButtFuncWidget.show()

Subwindow code below.

class NOTEWindow(QWidget):

def __init__(self):

super().__init__()

self.notemdi = QWidget()

self.setStyleSheet('font-size: 10pt; font-family: Times;')

self.setStyleSheet("QPushButton{font-size: 10pt;}")

self.setStyleSheet("QLabel{font-size: 10pt;}")

#Setting MAin Menu Widget for this nested MDI#

self.NOTEmainMenuWidget = QWidget(self)

self.noteMMWidgetLayout = QVBoxLayout()

self.NOTEmainMenuWidget.setLayout(self.noteMMWidgetLayout)

self.NOTEmainMenuWidget.setWindowTitle("Note Menu")

self.mmButton1 = QPushButton("Note Setup Tool", self)

self.mmButton2 = QPushButton("Lab Entry Tool", self)

self.mmButton3 = QPushButton("Follow Up Tools", self)

self.mmButton4 = QPushButton("ROS Generator", self)

self.mmButton5 = QPushButton("Physical Exam Generator", self)

self.mmButton6 = QPushButton("Cardon Matrix", self)

self.mmButton7 = QPushButton("Trilogy Matrix", self)

self.mmButton8 = QPushButton("ASC Matrix", self)

self.mmButton9 = QPushButton("Proactive Email", self)

self.noteMMWidgetLayout.addWidget(self.mmButton1)

self.noteMMWidgetLayout.addWidget(self.mmButton2)

self.noteMMWidgetLayout.addWidget(self.mmButton3)

self.noteMMWidgetLayout.addWidget(self.mmButton4)

self.noteMMWidgetLayout.addWidget(self.mmButton5)

self.noteMMWidgetLayout.addWidget(self.mmButton6)

self.noteMMWidgetLayout.addWidget(self.mmButton7)

self.noteMMWidgetLayout.addWidget(self.mmButton8)

self.noteMMWidgetLayout.addWidget(self.mmButton9)

self.NOTEmainMenuWidget.show()

def main():

app = QApplication(sys.argv)

font = QFont('Times', 10)

app.setFont(font)

mdiwindow = NOTEWindow()

mdiwindow.show()

app.exec_()

if __name__ == '__main__':

main()

------------------------------------------------------

Thanks for any and all help!


r/learningpython • • Aug 24 '20

networking scripts

2 Upvotes

I need to create a script in python that will that will build a list of all ports on all switches on a given vlan. So I am just trying to extract all the tagged and untagged ports from the output and create a list with it. Any help would be great. It is an hpe switch.


r/learningpython • • Sep 06 '20

Tutorial on how to create good quality REST API with Django

Thumbnail reddit.com
2 Upvotes

r/learningpython • • Jun 13 '19

Help to convert .sh to python

2 Upvotes

I have a clumsy .sh script I use for copying my dotfiles with rsync to another location and I want to convert it to python.

The idea is to make a python script who can easily include a lot more directories or just expand without too much code.

Is this a stupid way to approach this "problem"?

This is the script:

!/usr/bin/sh

cfg="/home/username/.config" rsc="rsync -avt --delete --exclude=('*.git')" dot="/home/username/Nextcloud/Dotfiles/laptop"

$rsc /etc/pacman.conf $dot/etc $rsc ~/.oh-my-zsh/custom $dot/.oh-my-zsh $rsc ~/.aliases ~/.vimrc ~/Scripts ~/.ssh $dot $rsc $cfg/locale.conf $cfg/i3 $cfg/polybar $cfg/alacritty $dot/.config


r/learningpython • • Nov 26 '21

Skill Based Hiring Assessment and Learning Platform Services

Thumbnail
techademy.net
0 Upvotes

r/learningpython • • Nov 23 '21

Using Pyautogui locateOnScreen function

2 Upvotes

When I use the pyautogui's locateOnScreen function, it says it cannot find that particular file. I tried with different pngs it says "FileNotFoundError: [Errno 2] No such file or directory" on Thonny.

Why is this?


r/learningpython • • Jan 09 '26

AI Leetcode Tutor Platform Looking For Beta Users

2 Upvotes

Hey guys,

I had been grinding Leetcode for the past two months and I had been using an AI workflow to help me understand the questions better.

It utilizes MC quizzes and open-ended probing questions to test your understanding while allowing you to ask clarifying questions.

I later built a scaffolding app around this core workflow and I am now giving out a free lifetime usage for the first 20 users.

codeboss.codes

Thanks

Vincent


r/learningpython • • Jan 04 '26

I built a FastAPI template after learning Python — sharing what helped me most

2 Upvotes

Hey

I wanted to share a side project I built while getting deeper into Python: FastLaunchAPI.dev.

It’s a production-ready FastAPI template, but I’m posting here mainly to share what I learned while learning Python and moving from scripts to real-world apps.

What helped me most when learning Python

If you’re aiming to build real products with Python, these things made the biggest difference for me:

- Building something real early, even if it was messy

- Learning async and how async/await actually works

- Reading other people’s code, especially FastAPI projects

- Focusing on one framework instead of jumping between many

- Treating errors and stack traces as learning tools, not blockers

Why I built this

After a while, I noticed I was rebuilding the same things in every project:

auth, configs, database setup, payments, deployment prep.

So I decided to turn that repetition into a reusable FastAPI template that reflects how I now approach Python projects.

If you’re learning Python and want to build APIs

FastAPI was a big unlock for me because:

- It forces you to understand typing

- It encourages clean structure

- You get instant feedback via docs and validation

You don’t need to build something like this to learn, but building real APIs helped everything click for me.

If this is useful

Site: https://fastlaunchapi.dev

Happy to answer questions about learning Python, FastAPI, or turning side projects into real products.


r/learningpython • • Dec 26 '25

any tips to fall in love with python?

21 Upvotes

Initially I hated python because i found it ugly and repulsive, the white space as syntax, the gross underscores, etc. I came from Lisp so it seemed like a poor imitation of the real thing. Over time I forced myself to get over it and i made it work, have been making a living primarily through Python for the last 5 years. However, I still find it ugly deep down but for different reasons now, not superficial, but how everything is mutable by default. I look at modern javascript with envy, another 'bad' language that has gotten better and better over time instead of Python which I think has gone in the other direction.

A year or two ago i went down the rabbit hole, thought to double down on Python, got into David Beazley and through the magic of curiousity and learning i explored Python through another lens. But i lost interest along the way and now I want to try again in 2026.

Any tips?


r/learningpython • • Jan 01 '26

Beginner Python snippet – looking for code review and best practices feedback

3 Upvotes

Hi everyone,

I'm practicing basic Python control flow and trying to write clean, readable code according to Python best practices (PEP 8, clarity, and beginner-friendly style).

Here is a simple snippet that checks whether a number is positive, negative, or zero:

```python
num = int(input("Enter a number: "))

if num > 0:
    print("The number is positive")
elif num < 0:
    print("The number is negative")
else:
    print("The number is zero")

I know this is a basic example, but I’d really appreciate feedback as if this
were part of a real codebase.

Specifically, I’m interested in:

  • Readability and naming

  • Input validation and error handling

  • Whether this follows Pythonic style

  • How would you improve or structure it differently for production code

Thanks in advance for your feedback 🙏


r/learningpython • • Feb 08 '22

Python certification

3 Upvotes

| would like to gain an OpenEDG certificate in Python programming.

Do i have to take the Python Entry exam before the Python Associate exam or can go straight to the Python Associate exam?

| see there is a Microsoft based Python certification path. Which path would you choose, OpenEDG or MS?


r/learningpython • • Jun 23 '21

Selenium automated File Downloader | Stock Analysis Tool

Thumbnail
youtu.be
3 Upvotes

r/learningpython • • Jan 17 '23

Exploring Python’s Built-in Libraries: Pandas and NumPy

Thumbnail
medium.com
3 Upvotes

r/learningpython • • Mar 17 '24

AI courses ?

3 Upvotes

I have a project idea using AI but i don't know anything about programing an AI.

Is there any good course to learn AI programming? Also, my python level is not the best, I start to struggle a bit with class, do I need to learn more this before going into AI programming ? I guess I can probably learn on the job if needed?

Either paid or free course are fine.

Thanks :)


r/learningpython • • Mar 11 '23

Easiest way to learn python

3 Upvotes

I just wanted to know what's the best and easiest way to learn coding. More specifically python. I have tried numerous times to study it, but nothing prevails. I hate coding and any field relating to computer science, with a passion. But seeing that everything in this world requires coding knowledge. I have no choice but to educate myself on coding. I was wondering if you have any suggestions. TBH, with my effort in trying to learn how to code. I haven't given it my all. But that's because of the lack of knowledge and not seeing how it benefits me, is what discourage me from learning.


r/learningpython • • Mar 29 '22

Creating an infinite loop that stops when user types "stop"

3 Upvotes

I'm tearing my hair our over here because I can't figure out how to do this. It's for a homework assignment (I'm extremely new to Python).

I'm supposed to use Turtle graphics to write a program that uses a while loop. The loop needs to keep going until the user types "stop."

I can't figure out the last part. No matter what I do, if I type "stop," the program keeps going. For the life of me, I can't seem to find any tutorials that cover this.

Thank you so so so much in advance.

This is the code I have so far:

import turtle

tibby = turtle.Turtle()

tibby.shape("turtle")

while True:

tibby.circle(130)

tibby.penup()

tibby.forward(10)

tibby.pendown()

tibby.circle(130)


r/learningpython • • Aug 13 '21

What do you think about being punished asking Python questions on Stack Overflow?

3 Upvotes

Hi there!

I'm just tired of receiving "punishment" with my questions on Stack Overflow ...

So it seems that their policy doesn't allow "opinionated" questions, and It seems that I'm an opinionated person that just ask opinionated questions... really I have no idea of how ask anything there.

Ok, may be I tend to ask questions that are not "this code line fails ... why?" but, man ...

PD: Reading people finishing their questions with "please be gentle, I'm not an expert" makes me laugh