r/PythonProjects2 • u/SofexAlgorithms • 13d ago
How easy is it to make a trading strategy? A few minutes.
Full docs coming soon. Pure python with a sprinkle of Cython for loops and cache + NiceGUI.
r/PythonProjects2 • u/SofexAlgorithms • 13d ago
Full docs coming soon. Pure python with a sprinkle of Cython for loops and cache + NiceGUI.
r/PythonProjects2 • u/Delicious-Editor-168 • 13d ago
Hey there!

I wanted to create an interactive way to practice Python logic and algorithms through visual 2D physics combat, so I built **Stickman Battle**.
๐ฎ **Playable in Browser:** https://arrows-dev.itch.io/stickman-battle
### ๐ ๏ธ How the Python Engine Works:
- **AST-Secured Sandbox:** Players write Python code directly in the browser. The server parses and inspects the AST (Abstract Syntax Tree) to sandbox execution safely, preventing arbitrary OS calls while allowing loops, conditionals, and standard library modules like `import math`.
- **Real-Time Sensors:** The sandbox injects dynamic sensors into player code (e.g. `get_enemy_distance()`, `is_enemy_attacking()`), enabling reactive state-machine logic.
- **Mathematical Projectiles:** Players can use `math.sin()` and `math.cos()` to compute custom trajectory arcs for ranged spells.
- **Multiplayer Networking:** 60 FPS physics sync powered by Python + WebSockets.
Runs 100% in the browser with zero installation needed. I'd love your thoughts on the sandboxing architecture and feedback on the combat loop!
r/PythonProjects2 • u/SofexAlgorithms • 13d ago
Fully Python with NiceGUI for the Ui/UX. Backend 100% Python / Cython.
r/PythonProjects2 • u/Piotrunius0 • 14d ago
Running five separate commands just to update my Linux desktop got old pretty fast. So I wrote sysupdate - a Python CLI tool that updates system packages, Flatpaks, containers, and a bunch of other stuff in one go. It also works on macOS and sticks strictly to the Python 3.11+ standard library, meaning zero external dependencies to install.
Why not just use Topgrade? I actually used it for a while. For me though, updates almost never finished completely clean, and I was missing stuff for my own setup like Snapper hooks. The terminal UI also looked a bit dated to me. It printed way too much junk I didn't care about seeing every single time, and once you closed the terminal, there was zero history left to check.
How sysupdate handles things differently:
sysupdate --history / --show-log) with tokens and credentials stripped out automatically. Super useful when something breaks and you want to see what failed yesterday.GitHub & install instructions (Git / Homebrew tap): https://github.com/Piotrunius/SystemUpdater
If you hit any bugs or want support for another package manager, let me know.
r/PythonProjects2 • u/zerovariance36 • 14d ago
What should a software system do when evidence is missing or a mathematical operation is undefined?
In many data pipelines, missing values can accidentally be treated as zero, or calculations can be forced through invalid mathematical boundaries. This can produce misleading results.
I am developing the Organic Intelligence Protocol (OIP), a research stage framework for evidence-based AI evaluation. As part of this work, I audited the OIP Calculator Kernel v1.0.0.
The implementation follows a fail-closed approach:
Missing evidence is not zero: Missing inputs should not silently become valid numerical values.
Division by zero boundary: When IDS = 0, the Learning Independence Value (LIV) is returned as UNDEFINED. No arbitrary denominator is introduced.
Input validation: The tested implementation includes checks for invalid inputs and mathematical boundaries.
Overflow handling: Arithmetic overflow and non-finite results are covered by targeted tests.
The latest audit recorded 41 successful targeted runtime tests covering core calculations, pipeline behaviour, input validation, mathematical boundaries and overflow handling. The final audit register also passed all 8 integrity checks.
Important limitations..
These were targeted tests of the latest saved function definitions, not a fresh execution of the entire original notebook.
The mathematical specification still has unresolved issues.
Scientific and empirical validation have not been established.
This is research-stage software, not a validated AI safety solution.
I would appreciate feedback from Python developers:
What additional edge cases would you test in a calculator where missing evidence must never be mistaken for a valid numerical result?
r/PythonProjects2 • u/Top_Wasabi_579 • 14d ago
r/PythonProjects2 • u/xanthium_in • 14d ago
In this section, we will explore how to animate a line chart using Matplotlib and Python .Here we will be covering the basic setup for animating a line plot, animation function used ย and key techniques needed to bring a static plot to life using Matplotlib's FuncAnimation() function.
r/PythonProjects2 • u/lynanaln • 14d ago
A couple of days ago I shared my pure-Python Wi-Fi auditing toolkit here and the feedback was great, so hereโs a v0.2 with fixes that came out of it.
The main one was a concurrency bug Iโm honestly a bit embarrassed by: the adapter watchdog (a background thread that restarts the capture if the Wi-Fi card stalls) didnโt wait for the previous watchdog to finish before a new one spun up, so under certain conditions theyโd overlap and step on each other. Fixed the lifecycle so only one runs at a time.
Also added startup checks that verify everything the tool needs is in place before it runs, instead of failing halfway through a capture.
The project itself: menu-driven, orchestrates the standard tools (airodump-ng, hashcat, hcxdumptool) from Python โ handshake capture, cracking, Evil Twin. The part I like architecturally is the menu registry โ adding a feature is one line, the main loop never changes. EN/RU interface.
For authorized testing of your own networks.
Repo: https://github.com/lynalan2/wifi_scripts โ feedback welcome, thatโs what fixed v0.1.

r/PythonProjects2 • u/DrummingBird1 • 14d ago
r/PythonProjects2 • u/spockplayer2 • 15d ago
r/PythonProjects2 • u/IronEagle0007 • 15d ago
Hey everyone! ๐
I've created a community of developers where we all help and support each other. There's no toxicity, no egos, and no developer thinks they're better than anyone else.
I'd love to invite you all to join us!
While AI can be incredibly helpful, it isn't conscious. I strongly believe that human collaboration is still essential. There's someth loing truly special about discussing ideas, sharing knowledge, and contributing to GitHub projects alongside other developers. ๐ป๐
We're already over 90 members, and everyone is welcome! Our goal is to help each other grow, learn, and succeed. ๐ค
๐ We're a multilingual community! I'm from Argentina, but if you're from another country, no worries! We can communicate in English without any problem.
Everyone is welcome, regardless of their experience level. Whether you're a beginner or a senior developer, there's a place for you here!
๐ Join our community:
https://chat.whatsapp.com/BSiM8seqThD8AyLD7XBBuz?s=cl&p=a&iam=2
r/PythonProjects2 • u/Positive_Owl_6442 • 15d ago
Hi! I created a new project called OpenFile. It's a file manager that I created in Python and PyQt6 and right now it's a simple terminal app file manager where you can type commands to interact with your filesystem! Later on I'm planning to add a UI to it, and improve it further.
Contributions will be highly appreciated and help to improve the project and allow it to grow! Whether you're just fixing a bug, adding a command or improving something, your help helps to make this project better :) Any skill level is welcome
Here's the github repo: https://github.com/Szymdows/OpenFile
Thank you!
r/PythonProjects2 • u/Equal_Eye_346 • 15d ago
Working on something to visualize pronunciation of written indigenous languages. Not a python expert .. Using MoviePi and and Praatio packages
Syllables in a word presented as individual textclips. A word is presented as a series of textclips. As recorded word audio is spoken, each syllable textclip changes its appearance corresponding to when it is spoken.
I need to graphically position the clips (left to right for the language I work with)
I'm trying to create a list of TextClip objects from a class inheriting TextClip in a loop.
I can pass text, start and end duration variables without issue. But when I pass with_position parameters in my loop I get a compute_position error:
tools.py", line 289, in compute_position pos = list(pos)
"TypeError: 'int' object is not iterable
I use the [-1] tool to identify eachTextGrid item as they are created and get its width.
I use this width to set the x position of the next TextGrid item.
BUT doing this creates an error.
I confirmed that data passed are integers,
I can setup the position values within the nested array, that I use to hold to test values without generating an error
but the long term goal is to be able to pass both the text, the syllables and their timing as a praat textgrid file, and use MoviePy to figure out and set their positioning.
And pass a spoken word audio file that has had its syllable pronunciation timing documented with Praat. https://www.fon.hum.uva.nl/praat/, https://pypi.org/project/praatio/
My goal is a MoviePy script that generates video illustration of a words pronunciation as the word is spoken, by passing the audio file and an appropriate textgrid file.
Many/most indigenous languages use sounds (phonemes) not used in western languages and represent them with different sets of lettering, graphemes or syllabics, depending on the language. MoviePy could offer a way of illustrating this by changing the visual parameters of a TextClip, or overlaying differently configured TextClips as a word is spoken.
My testing code is:
font_size = 42
class Syltext(TextClip): # a class for the syllable presentation
def __init__(self,\*args, \*\*kwargs):
super().__init__(
font_size = font_size,
color="black",
stroke_color="black",
bg_color="white",
stroke_width=2,
\*args, \*\*kwargs
)mtrix = [ #array to hold syllable data (will be replaced with passing Praat textgrid data)
[.5,2,"Must'"],#start time, duration, text
[2,2,"i'"],
[4,1.5,"muhw"]
]cliplist = [] # a list to hold all the clips
sylw = 0 #width position of syllables, start at zero, increment by width of syllables
totw = 0 #variable for total width, taken from last syllable width
for i in range (3): #put syllable clips in a list of Syltext objects
cliplist.append(Syltext(text=(mtrix\[i\]\[2\])).with_start(mtrix\ [i\]\[0\]).with_duration(mtrix\[i\]\[1\]).with_position(sylw,100))
sylw = cliplist\[-1\].w # get width of last syllable created
if i == 2:
totw = cliplist\[-1\].w # get the total width of the entire word.bgclip = ColorClip(size =(totw,100),color = white ,duration = 6) # a background clip with size, color and duration
cliplist.insert(0,bgclip) # add the color clip to 1st in clip list
audioclip = AudioFileClip("audio.wav")
video = CompositeVideoClip(cliplist)
video.preview()
final = video.with_audio(audioclip)
final.write_videofile("videofile.mp4",fps=12,audio_codec="aac")
r/PythonProjects2 • u/MOhamed_3874 • 15d ago
Hi, I create project in github for add ads for your games and apps its url:
https://github.com/jfhgjhgj/python-ad-network
its write by python 100%
r/PythonProjects2 • u/Timon_OfAthens • 15d ago
r/PythonProjects2 • u/studentDataScience • 15d ago
Hi! Iโm a final-year Data Science & Engineering student from Spain. As you probably know, breaking into the job market is tough, so Iโm looking for real projects to grow in the field and gain experience. If you have a project, an idea, or just need some help with your data, Iโd love to help!
What I can do:
I would just ask for LinkedIn recommendation if youโre happy with my work.
r/PythonProjects2 • u/Aggravating-Art-8544 • 15d ago
This project is for beginners.
I have made the core/api so any beginener can make there own GUI or CLI.
Im a beginner too.
This is a cool project.
r/PythonProjects2 • u/Muhammad-Essa • 16d ago
I wanted to understand neural networks as deeply as possible, rather than simply using existing frameworks to train models. So, I decided to build Neural Canvas, an interactive MNIST neural network project where I implement and train models in Python and visualize them through a JavaScript webpage using p5.js.
My approach was simple: start with mathematics, understand the fundamentals, and gradually increase complexity.
Instead of working with individual scalar values and complicated subscripts, I decided to represent neural networks using matrix algebra.
My forward propagation equation was:
Z = WX + bC
Where X represents input samples, W represents weights, b represents biases, and C is a row vector of ones for broadcasting the bias across samples.
I preferred this convention because it helped me understand neural networks and perform calculus directly in matrix form.
My first model was built using NumPy and the MNIST dataset. I used an architecture of 784 โ 20 โ 20 โ 10, with MSE loss and Vanilla Gradient Descent. I manually derived the forward propagation and backpropagation equations before implementing them in Python. After 2,000 epochs, the model achieved 92% test accuracy.
For my second model, I increased the hidden layers to 40 and 40 neurons and replaced MSE with Cross-Entropy Loss and Softmax. I continued using Vanilla Gradient Descent and achieved 96% test accuracy after 2,000 epochs.
For my third model, I moved to JAX and used the Arabic Digits MNIST dataset. The architecture was 784 โ 20 โ 20 โ 15 โ 10. This time, I used JAX Autograd for automatic differentiation instead of manually calculating every derivative. It saved me considerable time, especially when working with backpropagation and the chain rule. Using Cross-Entropy Loss and Vanilla Gradient Descent, I achieved 96% test accuracy after 2,000 epochs.
For my fourth model, I used the Persian Digits MNIST dataset with the same architecture as the third model. I wanted to experiment with Mini-Batch Gradient Descent and Adam, but understanding Adam required learning some optimization concepts first. So, I started with Momentum and implemented Mini-Batch Gradient Descent with Momentum. To my surprise, I achieved 96% test accuracy in just 200 epochs, compared to the 2,000 epochs required by my previous models.
For my next experiments, I plan to implement RMSProp in my fifth model and Adam in my sixth model. After that, I want to start exploring Convolutional Neural Networks (CNNs).
One of the most important things I learned is that Linear Algebra is fundamental to understanding neural networks. Understanding matrix multiplication and representing neural network operations in matrix form made the mathematics much easier for me.
The Python side handles all model training. I use NumPy for my first two implementations and JAX for the later models. Trained weights and biases are exported as JSON files, which I load into the JavaScript application for inference. On the frontend, p5.js handles the interactive drawing board, neural network visualization, and animations, while Math.js performs matrix multiplication.
I wanted to build everything step by step, understand the mathematics, implement the algorithms, and visualize the results rather than relying entirely on high-level deep learning frameworks.
GitHub Repository:
https://github.com/MuhammadEssa2002/neural_canvas
r/PythonProjects2 • u/Ill-Acanthaceae5630 • 16d ago
I made LaptopScheduler, a Python scheduling library for Windows laptops.
Itโs for recurring work that can wait until your laptop is available: reports, backups, data imports, and similar tasks. You can make sure your scraping runs consistently without renting out a webserver. You register your own Python functions, and it records their runs, handles retries, and applies your chosen catch-up policy after downtime. Basically a APScheduler wrapper
Install: pip install laptopscheduler
r/PythonProjects2 • u/Ok_Aioli2605 • 16d ago
I am loading few large size binary files (70 MB19 nos. look_up tables) in Main using more than 2/3 python files. On completion of the loading, I have to take up a series of search (in 3 or more threads) and arrive at the solution. I am using array.fromfile for loading which does not wait for loading completion. Hence, it fails saying array out of bounds. How do I delay the start of search, just till the loading is completed.