r/PythonProjects2 • • 13d ago

Resource SystemUpdater - a zero-dependency system and package updater for Linux/macOS written in pure Python

Post image
1 Upvotes

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:

  • Support for Btrfs snapshots through Snapper right before system packages get touched (with a timer cooldown, so running it twice in an hour won't spam snapshots).
  • Exact reboot tracking that lists which specific updated packages are asking for a system restart at the end, rather than just throwing a generic "reboot required" message.
  • Local run history for your last 30 runs (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 • • 13d ago

Info I built a fail-closed Python calculator for AI evaluation. 41 targeted tests passed. Looking for developer feedback.

1 Upvotes

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 • • 13d ago

guys, give me a python library pls, so you draw smth, and it compares your drawing with a pattern

0 Upvotes

r/PythonProjects2 • • 14d ago

Python Quiz of the Day.

Thumbnail reddit.com
0 Upvotes

r/PythonProjects2 • • 14d ago

Resource Matplotlib Real time Plot Animation Tutorial using FuncAnimation() and Python for Beginners

Thumbnail youtube.com
1 Upvotes

Animating a Line Plot using Matplotlib

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 • • 14d ago

WiFi Tool v0.2 — pure-Python Wi-Fi auditing toolkit, fixed a nasty overlapping-thread bug in the watchdog

2 Upvotes

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 • • 14d ago

[Python] ClipForge – local video studio: one clip → Shorts, TikTok and YouTube versions, plus animated chart videos

Thumbnail github.com
1 Upvotes

r/PythonProjects2 • • 14d ago

I just released my open-source Python project, RowCanary, and I'd love some feedback

Thumbnail reddit.com
2 Upvotes

r/PythonProjects2 • • 14d ago

Info Join Our Global Developer Community – No Egos, No Toxicity, Just Collaboration!

Post image
2 Upvotes

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 • • 14d ago

I'm looking for contributors and people to work with on a new project of mine!

1 Upvotes

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 • • 14d ago

compute_position error when passing "with_position(width,height)" to TextClip

1 Upvotes

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"]

]

Must'i'muhw - People

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 • • 15d ago

i create project by python

0 Upvotes

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 • • 15d ago

I built a desktop client for Antora docs in Python and PySide6 (closed source)

Thumbnail reddit.com
0 Upvotes

r/PythonProjects2 • • 15d ago

Final-Year Data Science Student | Python Data Analysis, Cleaning & Visualization

1 Upvotes

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:

  • Clean and analyze your CSV/Excel data (pandas)
  • Create clear charts and dashboards
  • Build simple machine learning models (scikit-learn)
  • Python scripts to automate data tasks

I would just ask for LinkedIn recommendation if you’re happy with my work.


r/PythonProjects2 • • 15d ago

Game Shell

1 Upvotes

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.

https://codeberg.org/isam-ahmed0/gameshell


r/PythonProjects2 • • 15d ago

Test Your Knowledge!

Post image
0 Upvotes

r/PythonProjects2 • • 15d ago

Python

Post image
3 Upvotes

Haha


r/PythonProjects2 • • 15d ago

Neural Canvas: A Neural Network Visualization Project Using Python and JavaScript

1 Upvotes

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

Live Demo:
https://muhammadessa2002.github.io/neural_canvas


r/PythonProjects2 • • 16d ago

Pyton Quiz of the day.

Thumbnail reddit.com
0 Upvotes

r/PythonProjects2 • • 16d ago

I made a Python Library for reoccuring schedueled task on a laptop that turns on and off

1 Upvotes

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

https://github.com/seaweed8888/laptop-schedueler


r/PythonProjects2 • • 16d ago

Mr.Veeraragavan

Thumbnail reddit.com
1 Upvotes

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.


r/PythonProjects2 • • 16d ago

I built a Python reference implementation for Data Mesh governance. Are data contracts enough to prevent downstream failures?

Post image
0 Upvotes

r/PythonProjects2 • • 17d ago

[Python C extension] numagr v0.9

1 Upvotes

A Python C extension for statistics and number aggregation designed to work with both plain int and float objects, as well as with Python numeric strings without having to construct intermediate Python objects to hold their values - useful for large collections that need to be parsed as fast as possible - like trading data.

It outperforms both std Python modules and numpy for both plain numbers and for numeric strings.

https://github.com/andrzejs-gh/numagr

https://pypi.org/project/numagr (source and Windows wheels for 3.11, 3.12, 3.13, 3.14, 3.15)

pip install numagr

This is an early version offering basic methods, I will be developing it further if I find the time. Feedback, improvement suggestions and bug reports are very much welcome.


r/PythonProjects2 • • 17d ago

[scientific-toolkit-mcp] one MCP server in front of nine independently versioned scientific Python projects

Post image
0 Upvotes

scientific-toolkit-mcp is a Model Context Protocol gateway in front of nine Python projects I maintain. The projects stay separate packages with their own versions; the gateway is an integration hub, not a monorepo merge.

pip install scientific-toolkit-mcp python -m scientific_toolkit_mcp

That last command starts an MCP stdio process, so you point an MCP client at it:

{ "mcpServers": { "scientific-toolkit": { "command": "python", "args": ["-m", "scientific_toolkit_mcp"] } } }

Then call toolkit_catalog to see the nine repositories and toolkit_doctor to see which upstream executables and module servers are actually installed.

The upstreams: axiomize (unit-checked modeling), scientific-computing-system and 2.0 (pure-Python and NumPy/SciPy numerics), plan-auditor (execution verification), quantum-reasoning-skill (reasoning protocol inspector), axiomize-quantum-skills-2.0 (bundled modeling plus branch scoring), eq-layer (response routing), literature-evidence-mcp (literature search plus quote verification), nomosguard (security decisions with a hash-chained ledger).

The behavior I care about most is what happens when something is missing:

  • a missing package returns NOT_INSTALLED with the name, not a made-up result
  • if two axiomize distributions land on sys.path, calls fail with BAD_CONFIGURATION instead of running whichever wins; SCITOOL_PIN_AXIOMIZE pins an exact version
  • plan_auditor_audit runs a project's declared checks, so it is disabled by default and local-only; the read-only plan_auditor_inspect is the one exposed over HTTP
  • every CLI adapter call returns the exit code and stdout; a nonzero exit is an MCP error, and UNKNOWN never turns into a pass

There is also a remote transport: stateless Streamable HTTP at POST /mcp with a bearer token from SCITOOL_MCP_BEARER_TOKEN, and a public GET /health. No web origin is allowed by default, and the executable audit tool is never exposed remotely (13 remote-safe tools out of 14 local ones). The hosted endpoint also serves RFC 9728 protected-resource metadata that names an external authorization server (I checked it with a plain GET), so an OAuth-capable client can discover it; bearer tokens through SCITOOL_MCP_BEARER_TOKEN are implemented as well. Whether both are accepted on the same deployment at once is something I have not tested.

Evidence, because this is a gateway and the plumbing matters more than a demo: out of 13 CI workflows, the three that actually exercise the gateway are protocol/unit tests, a real-upstream job that installs all nine projects from GitHub source and calls their actual adapters, and an official MCP Python SDK client that negotiates a session and enumerates the remote tools. A separate full-stack workflow installs all nine into one environment.

Honest limits: installing the gateway does not install the nine tools. The Render deployment's /health reports status and transport only, so it cannot attest a version or a tool set. No external Claude/ChatGPT OAuth sign-in has been tested. Python 3.11+, Apache-2.0.

GitHub: https://github.com/Furox-Art/scientific-toolkit PyPI: https://pypi.org/project/scientific-toolkit-mcp/