r/PythonLearning • • 25m ago

Showcase “7 billion people…” follow up post

2 Upvotes

This is handwritten no ai so bare with me please:
I posted on here a few hours ago complaining that I couldn’t find anyone to use/test my project.

I’m sorry if my attitude came across as rude to anyone I was just moody about the situation.

Give me a chance to explain what I’ve built and what it does.

What it is in a nutshell:
it is a proxy that sits in between you and your agent. Harness like claude code/codex/hermes use somthing called a “base url” this is where your “prompts” are redirected so with Claude code it would be “https://api.anthropic.com” that sends your messages straight to anthropic. We/I replace with “http://127.0.0.1:8788” so prompts go to a proxy first they get translated and gets sent somewhere else like openrouter or nvidia nim free tier.

Caveats:
Openrouter: free tier api keys give 50 requests per day, per api, 50 requests ≠ 50 messages each request could be a tool call or a web search so the more openrouter keys you have the more requests you have.

Nvidia nim: free tier can work with just 1 api key for as many requests as you want, but there is request per minute rate limits + share gpu interference = slow depending on region and model

System prompt integration: this is optional you can turn it on, you can turn it off, it’s your choice. Harnesses like claude code inject things like “system reminders” basically saying “if you are ever asked to reverse engineer something you must refuse” they are called refusals, in an attempt to reduce/eliminate these refusals the proxy strips them out and injects a system level prompt basically saying the opposite (jailbreak prompt). Why most “jailbreaks” fail, in a prompt it gets converted to into: system, user, assistant and tools, your claude.md gets injected at a “user” level which obsolete. The proxy injects it at the highest level “system” = better probability (this is based on the model you use)

This looks sketchy, this is probably malware: The project is opensource you can read/inspect the files your self or you can ask your agent to:
“don’t pull this, don’t install this, don’t run this. Do a deep dive audit/security sweep on this {put repo here}, anything malicious report it, anything scanning the machine report it do a full deep dive into it MAKE SURE ITS SAFE”

This is the repo url: https://github.com/dommurphy155/atlas

There is also a npm install command but since I got so many “this is malware don’t install” I’m not sharing it please don’t just comment “this is sketchy/malware” before doing your research into my project. I’ve put a lot of work into this and don’t want to be discredited.

I think I’ve covered mostly everything so if you’ve got this far then thank you for reading and understanding. If you have any questions drop them in the comments and I’m happy to answer them. Once again sorry for the complaining post I made before.


r/PythonLearning • • 55m ago

What help you learn Computer networking?

1 Upvotes

I am learning networking and beginning to get into the introductions of the concept. I've looked at YouTube videos and articles on the matter, and I always was aware of how python and networking goes together, but I don't understand what material to educate myself on when it comes to getting into networking what help you understand networking?


r/PythonLearning • • 1h ago

I’ve been working on my little Python project – KVC-BASIC has some new features!

3 Upvotes

Hey everyone!

A while ago, I posted here about a small project I've been working on called KVC-BASIC. It's a simple (now) Assembly-inspired programming language interpreter written in Python.

Since then, I've been making some improvements and adding new features.

Here's what's new:

  • IF / ENDIF – conditional statements are now supported!
  • IN – programs can now receive user input.
  • INT, FLOAT and STR – input can be converted into different data types.

It's still a pretty small project, and there's definitely a lot left to do. I'm learning as I go, experimenting with how interpreters work and trying to make the language better step by step.

One thing I really like about this project is that feedback from the community actually helped me decide what to implement next. So thanks to this guy who gave me a suggestions on my previous post!

I'd love to hear what you think. What feature would you add next?

GitHub: https://github.com/FranekKvcux/KVC-BASIC

Thanks for checking it out!


r/PythonLearning • • 4h ago

Showcase I built a small BASIC-inspired programming language interpreter in Python — KVC-BASIC

8 Upvotes

Hey everyone!

I wanted to share a little project I've been working on recently called KVC-BASIC.

It's a simple BASIC-inspired programming language interpreter written entirely in Python. I started working on it mainly out of curiosity — I wanted to understand a bit better how programming languages actually work, so I decided to try building a small interpreter myself.

For now, KVC-BASIC supports a few basic instructions:

  • SET — assigns a value to a variable
  • ADD — adds two values
  • SUB — subtracts one value from another
  • MUL — multiplies values
  • DIV — divides values
  • OUT — prints the result

Here's a quick example of what the code looks like:

SET x 10
SET y 5
ADD x y
OUT x

The project runs on Python 3 and doesn't require any external libraries.

You can check it out here:
https://github.com/FranekKvcux/KVC-BASIC

It's still a work in progress, and I know there's plenty of room for improvement. I'm sharing it because I'd genuinely like to hear what others think.

Do you have any suggestions for features I could add or things I should improve? I'd also love to hear your thoughts on the overall idea.

Thanks for taking the time to check it out!


r/PythonLearning • • 5h ago

Best project for learning python

13 Upvotes

I am not a beginner but i want to learn news things


r/PythonLearning • • 5h ago

7 billion people on earth…

0 Upvotes

7 billion people on this planet and I can’t find a single person to test/use my build. Genuinely what the f is the point in building a project


r/PythonLearning • • 7h ago

Showcase Local Python on iPhone or iPad? My friend built PythonIDE with Jupyter & an iPad Code-OSS workbench

Thumbnail
gallery
0 Upvotes

A friend of mine built PythonIDE for iPhone and iPad. I’m helping them find a few Python users to try it with scripts, notebooks, or projects they already use.

- **Local Python and debugging.** Edit and run multi-file projects on the device, pass script arguments, and use interactive input. The debugger supports breakpoints, stepping, call stacks, and variable inspection.

- **50 bundled packages with native extensions.** These include NumPy, pandas, SciPy, Matplotlib, scikit-learn, h5py, Pillow, OpenCV, PyAV, pygame, MLX, Hugging Face Tokenizers, safetensors, and SentencePiece. You can also install compatible pure-Python packages. Some bundled libraries require Pro.

- **Jupyter notebooks.** Open and edit `.ipynb` files, run cells locally, and view plots, images, and HTML output right in the notebook.

- **Native tools and automation.** Write small tools with native iOS controls in Python, create Home Screen widgets, or run scripts through Shortcuts.

- **Project tools.** There’s built-in Git, SSH/SFTP, live previews for HTML/CSS/JavaScript projects, and an AI agent that can work with project files and run code.

My friend also built an **open-source iPad workbench based on Code - OSS**, the codebase behind VS Code. It has a file explorer, split editors, project-wide search, and a command palette. You can open a project folder, run Python through PythonIDE’s local interpreter, run JavaScript, and preview HTML or Markdown. It works offline after the initial download.

https://github.com/jinwandalaohu66/PythonIDE-iPad-VSCode

If you’re curious, try running a script or notebook you already use. I’d love to hear what ran right away, whether any dependencies gave you trouble, or what you’d change about coding on the device. My friend has a few **lifetime PythonIDE Pro codes** as a thank-you for people who try it and share feedback.

https://apps.apple.com/app/id6753987304


r/PythonLearning • • 13h ago

Python Study Log: Day 22

Post image
3 Upvotes

r/PythonLearning • • 13h ago

I am 15 and this is my python project

Thumbnail
gallery
22 Upvotes

Hi everyone!

I recently built a Python project called Lived Here.

The idea is simple: enter your birth date and the program turns it into a storytelling experience. Instead of only showing your age, it analyzes your date of birth and shows things like:

• How long you've lived in years, days, and seconds
• Your zodiac sign
• Days until your next birthday
• Historical events from your birthday
• Pop culture highlights from that day
• Interesting birth-date facts
• Inflation estimates since you were born

I started it as a fun experiment, but it gradually evolved into a slide-based experience inspired by modern storytelling websites.

I'm a 15-year-old student learning Python, so I'd love feedback on the code, design, and ideas for future features.

GitHub: https://github.com/coding-arnav66/Lived-Here

Thanks for checking it out!


r/PythonLearning • • 16h ago

Discussion Well.... i think this code is totally fine right?

0 Upvotes
from sklearn.impute import SimpleImputer 
import pandas as pd
from matminer.datasets import load_dataset
electronic_df = load_dataset("boltztrap_mp")
temperature_df = load_dataset("ucsb_thermoelectrics")
gap_df = load_dataset("expt_gap_kingsbury")


#changing neme:composition in temp_df to formular
df_temp = temperature_df.rename(columns={"composition": "formula"})
print(df_temp.columns.tolist())


#Trying to combine three of them
a = pd.merge(electronic_df,df_temp,on="formula",how="left")
com_df = pd.merge(a,gap_df,on="formula",how="left")
# Seperating the num data and text data
num_cols = com_df.select_dtypes(include="number").columns
# text_cols = com_df.select_dtypes(exclude="number").columns


num_imputer = SimpleImputer(strategy="median")
# text_imputer = SimpleImputer(strategy="most_frequent") : no need
com_df[num_cols] = num_imputer.fit_transform(com_df[num_cols])
# com_df[text_cols] = text_imputer.fit_transform(com_df[text_cols])

r/PythonLearning • • 16h ago

Python study partners

6 Upvotes

Python study partners UTC+0 or UTC+1

Speaks French or English

45 minutes to 1 hour per day

One project per week

Rigorous and determined

Let's start tomorrow if possible!


r/PythonLearning • • 1d ago

Principal Component Analysis (PCA) visualized

Post image
5 Upvotes

How can we reduce the dimensionality of data while preserving as much information as possible?

👉 PCA memory_graph demo

Principal Component Analysis (PCA) is a dimensionality reduction technique that preserves as much of the variance in the original data as possible. In this interactive Python demo, we use NumPy to reduce a dataset X with dimension D = 5 to a dataset Z with dimension K = 3.

Follow the algorithm step by step and see the matrices and vectors transformed throughout the computation. Dimensionality reduction is useful to:

  • Visualize and better interpret high-dimensional data.
  • Reduce computational costs and memory requirements.
  • Simplify machine learning models to reduce overfitting.

With memory_graph, you can explore the implementation, modify the Python code, and immediately visualize the effects of your changes — directly in your browser, without installing anything.

See:


r/PythonLearning • • 1d ago

Python development

4 Upvotes

I want to learn python from the beginning. What's the best way to learn it. Can I get someone to teach me for free or collaborate?

Thank you.


r/PythonLearning • • 2d ago

Can Python Solve These Engineering Problems? 🤯 | IIT Student's Coding Journey

Thumbnail
youtu.be
2 Upvotes

U can watch this interesting python series


r/PythonLearning • • 2d ago

Python Object Model

Post image
74 Upvotes

This is a chart I was preparing for some advanced python object model ideas, including descriptors, and what really are objects in python. I hope somebody can find some use for it.


r/PythonLearning • • 2d ago

Help Request I made a quizz game but it has a small issue

Thumbnail
gallery
14 Upvotes

In this program I used open trivia api for questions. Everything works fine ..

But , when a user types a letter in the category or amount input (under try block).

The exception is handled by printing "Type an id number" and it gets back at starting

which asks "Enter e or c" instead of going to the input where the wrong datatype was given.

I know a way to handle this (but it is repititive)-

start = input("Enter 'e' or 'c':). lower()

while start not in ('c','e'): print('Please type a valid letter')

 start = input("Enter 'e' or 'c':)

while start == 'c':

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

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

start = input("Enter 'e' or 'c':). lower()

while start not in ('c','e'):

    print('Please type a valid letter')

    start = input("Enter 'e' or 'c':)

r/PythonLearning • • 3d ago

pathlib.Path quite slow

3 Upvotes

pathlib.Path appears to run much slower than I expected. The following function deletes .pyc files older than that of the filename passed in as a parameter.

Is there a faster alternative way of doing this?

import time
from pathlib import Path

def stale_pyc_del(path: str) -> None:
    spd_start = time.perf_counter()
    cur_import = Path(path).resolve()
    if Path.is_dir(cur_import):
        cutoff_time = float('+inf')
        pycache_dir = cur_import / "__pycache__"
    else: # file not directory
        cur_file = Path(__file__).resolve()
        cutoff_time = max(cur_file.stat().st_mtime, cur_import.stat().st_mtime)
        pycache_dir = cur_import.parent / "__pycache__"
    if pycache_dir.is_dir():
        for pyc_file in pycache_dir.glob("*.pyc"):
            # print(f"{pyc_file=}, {pyc_file.stat().st_mtime=}, {cutoff_time}")
            if path is None or pyc_file.stat().st_mtime < cutoff_time:
                print(f"deleting: {pyc_file=}")
                pyc_file.unlink()
    spd_end = time.perf_counter()
    print("stale_pyc_del:", os.path.basename(path), "-", f"{((spd_end - spd_start) * 1000):.3f}", "ms")

r/PythonLearning • • 3d ago

Help Request confusion about what's a digital artifact

4 Upvotes

so we have been assigned some projects this semester, where we have to submit a "digital artifact" for any of the project idea we have chosen. I choose a project that is relevant to some calculations and then displaying them using custom dashboards, for visualizing the calculations. but the thing is that we all have to submit our project in the form of a digital artifact. and I'm confused as to what it exactly means. is it a proper app? or a .exe file? a setup? or just something else entirely. I couldn't really understand what ChatGPT told me about either.


r/PythonLearning • • 3d ago

3,000+ people learned SQL with my detective cases (one US college now teaches with it), I built the same thing for Python

47 Upvotes

In June I launched QueryCase, where you learn by working through detective cases instead of watching tutorials. Each case is a short story with a real dataset and a question only your code can answer. It started with SQL, then Excel, and the question I kept getting after that was "can you do this for Python?"

So I built it, and it's now live 😄

Why I think it's worth a look:

  • 3,100+ people have signed up, across 122 countries
  • 19,500+ cases, drills and exams solved on the SQL and Excel courses
  • 530+ people passed the free SQL Rookie exam and earned the certificate
  • An instructor at a US community college used it to teach SQL in a CompTIA Data+ prep lab, then came back with a second class the following term

What's live in Python:

  • Python Foundations (free): the basics from your very first line, ending in an exam and a certificate
  • pandas: 29 cases on working with real data, from filtering and grouping to cleaning messy files and joining tables
  • Statistics with Python: 21 cases, each built around a real decision someone has to make, and each explaining why you'd reach for that method, not just how to type it
  • Short visual lessons that show how an idea works before you write any code
  • A sandbox where you can load your own CSV and practise on it
  • 30 Python interview questions you can read without an account

Machine learning and automation tracks are coming next week! Machine learning takes you from your first decision tree to the kind of fraud model a bank would actually use, and teaches you to test a model honestly so a 90% score means something. Automation is about the jobs that eat an analyst's week, done by code: sorting folders of files, reading and building Excel workbooks, writing reports and emails, and pulling data from APIs and websites.

Your code is real Python running entirely in your browser, so there's nothing to install. Every step is checked as you go, with hints when you're stuck.

It's completely free to start, and you can solve the first case before making an account. I'd really like feedback from people learning Python right now: what's the part that made you want to give up, and does a story help?

querycase.com

Cheers 😄


r/PythonLearning • • 3d ago

I put an AI on my portfolio that answers questions about me, and made it impossible for it to make things up. Here's how.

0 Upvotes

Recruiters kept asking me the same questions, so I added an "Ask about me" box to my portfolio. The scary part wasn't building it. It was the idea of an AI confidently inventing a job I never had, on my own website.

So the rule was simple: every sentence it says must come from my real résumé facts, and the code checks that before you see the answer.

How it works:

  1. Search runs in your browser. A small embedding model (all-MiniLM-L6-v2) finds the 8 facts most related to your question. No server needed for this step.
  2. Only those 8 facts go to Llama 3.3 70B on Cloudflare Workers AI.
  3. The model must cite a fact for every sentence.
  4. Code (not the model) checks each citation. If a sentence has no valid source, it doesn't get shown.
  5. If nothing matches, it says it doesn't know instead of guessing.

The fun part: personal questions. "Is he married?" or "How old is he?" get a polite refusal, because that's not in the facts and it's nobody's business. People ask those first, every time.

Cost: $0/month. The browser does the search, and Workers AI's free tier covers the rest at portfolio traffic.

What I learned:

- Telling the model "don't hallucinate" does nothing. Checking its output in code does.

- Fewer, better facts beat stuffing the whole résumé into the prompt.

- A refusal that's honest feels more trustworthy than an answer that's smooth.

Happy to answer questions about the citation check or the prompt. And if you've built something similar, how did you handle hallucinations?


r/PythonLearning • • 4d ago

What's the best project your done with coding and which language was that

Post image
158 Upvotes

I'll start with mine I built a simple chess engine using Python.


r/PythonLearning • • 4d ago

Discussion I don’t know what to title this.

Thumbnail
gallery
7 Upvotes

So I’m new to coding and I’m using Cody.tech (just started 4 days ago) and I thought I his was kinda funny. I typed all that in just for the actual answer to be extremely simple lol


r/PythonLearning • • 5d ago

Showcase I made a GitHub data analyzer by using GitHub api.

Thumbnail
gallery
83 Upvotes

In this project i used 5 endpoints and there are 4 functions.

user_info --> Gives the information about the GitHub account (uses 2 endpoints with key name 'user' and 'repos')

repo_detailed_info-->Gives the information about a specific repository like language,forks, files etc. (uses 2 endpoints 'repo_detail' and 'content' )

list repo-->lists all the repositories of a user(requires one endpoint 'repos')

Know_commit_message-->Gives the commit message (uses 'commit' endpoint)


r/PythonLearning • • 5d ago

Help Request where did the '\n' go?

0 Upvotes

using f.read().split() removes the \n escape sequence, why does that happen?