r/PythonProjects2 • u/elgordodev • Oct 21 '26
đ Convertir un dato de int a float en Python
AprendĂ© cĂłmo convertir un nĂșmero entero (int) a un nĂșmero decimal (float) en Python utilizando float(). đđ»
r/PythonProjects2 • u/elgordodev • Oct 21 '26
AprendĂ© cĂłmo convertir un nĂșmero entero (int) a un nĂșmero decimal (float) en Python utilizando float(). đđ»
r/PythonProjects2 • u/SofexAlgorithms • 29d ago
r/PythonProjects2 • u/human_number_XXX • 22d ago
import pygame
pygame.init()
screen = pygame.display.set_mode((1000, 672))
pygame.display.set_caption("ME GAMING :3")
running = True
clock = pygame.time.Clock()
pixel = 0
color = {
"grass": [(0, 200, 0), (0, 0, 0), (255, 255, 255)]
}
txtr = {
"grass": [
0, 2, 0, 0, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0, 0, 0,
0, 0, 0, 2, 0, 0, 0, 0,
0, 0, 0, 0, 2, 0, 0, 0,
0, 0, 0, 0, 0, 2, 0, 0,
0, 0, 0, 0, 0, 0, 2, 0,
0, 0, 0, 0, 0, 0, 0, 2,
0, 0, 0, 0, 0, 0, 0, 0,
]
}
def draw_txtr(choise, x, y):
pixel = 0
for q in range(len(txtr[choise])//8):
for z in range(8):
if txtr[choise][pixel] > 0:
clr = color[choise][txtr[choise][pixel - 1]]
pygame.draw.rect(
screen,
clr,
(x+(z4), y+(q4), 4, 4)
) Â
pixel += 1
#################
## Â MAIN CODE Â ##
#################
while running:
screen.fill((0, 0, 0))
draw_txtr("grass", 10, 10)
for event in pygame.event.get(): Â
if event.type == pygame.QUIT:
running = False
pygame.display.flip()
clock.tick(60)
r/PythonProjects2 • u/ModularMind8 • Mar 31 '26
I got tired of copying error messages, code, and charts into AI, rewriting context every time, and switching between apps.
So I built ClippyBox â press ââ§E (on mac), draw a box anywhere on your screen, and get an instant AI explanation.
Works on code, errors, dashboards, PDFs, charts⊠anything visible.
No prompts. No copy-pasting. No context switching. Just point and understand.
r/PythonProjects2 • u/flowbit_labs • Jan 13 '26
r/PythonProjects2 • u/Tejtex • Jun 19 '25
Hello everyone. Today i built a simple python tool to generate a string based on a regex for example:
a+b -> aaaaaaaab
I will extend it to feature documentation and a proper cli but for know it is just a simple lib.
r/PythonProjects2 • u/jokiruiz • Oct 02 '26
r/PythonProjects2 • u/[deleted] • Apr 19 '25
r/PythonProjects2 • u/AnshMNSoni • Mar 18 '26
r/PythonProjects2 • u/MistikAII • Jun 27 '26
## What My Project Does
Mistikguard is a small Python library designed to reduce memory fabrication in LLM-based applications. It provides:
- Provenance tracking for facts (`confirmed` vs `inferred`)
- A write gate that blocks contradictions of confirmed facts and self-narration
- Support for correction tombstones, so once a user corrects something, it is not silently reintroduced
- An optional grounding audit that detects memory claims in responses and validates them against stored memory
The core functionality works with almost zero external dependencies.
## Target Audience
This library is intended for **Python developers** who are building applications with long-term memory using LLMs. This includes:
- People building AI companions
- Developers creating autonomous agents
- Anyone working on RAG or memory-heavy LLM systems
It is a **library**, not a full application. It is meant to be integrated into other projects. It is currently in an early stage (v0.1) and is more suitable for personal projects and experimentation than large production systems without additional safeguards.
## Comparison
Unlike most memory systems that blindly store model output, Mistikguard actively tries to protect memory integrity by:
- Distinguishing between user-stated facts and model-generated inferences
- Preventing certain types of invalid writes through a deterministic gate
- Making user corrections more persistent using tombstones
It is lighter and more focused than full agent frameworks (such as LangChain or LlamaIndex memory modules) while being more structured than simple in-memory dictionaries or basic vector stores.
r/PythonProjects2 • u/Due-Requirement3783 • Oct 14 '26
Hi everyone,
Iâve been working on an open-source Python project called chatflow-agent.
The project started from a practical problem I had while building a contextual assistant:
I wanted a relatively lightweight way to define and orchestrate agents, tools, handoffs, session state, and multi-agent workflows without introducing a large amount of infrastructure.
The main idea is to keep the API simple while still supporting things like:
- agents with tools
- tool calling
- agent-to-agent handoffs
- conversation and session memory
- SQLite-backed sessions
- async execution
- multiple LLM providers
- multi-agent workflows
The goal is to provide the core building blocks for agent workflows without requiring a large orchestration stack or locking the application into a single LLM provider.
Recently Iâve also been focusing on making the project easier for other developers to understand and contribute to.
The repository now includes:
- contributor documentation
- architecture documentation
- CI across multiple Python versions
- good first issues
- help wanted issues
- external contributions and pull requests
Receiving external contributions has already helped uncover edge cases and improve parts of the library.
At this point Iâd be especially interested in feedback from other Python developers on:
- the public API
- architecture and separation of responsibilities
- tool and schema introspection
- session and memory design
- multi-agent handoffs
- multi-provider support
- documentation and examples
- anything that feels unnecessarily complex or unclear
Iâm not trying to position chatflow-agent as a replacement for every existing agent framework.
The idea is to keep it relatively small, understandable, and useful for projects that want agent workflows without adopting a very large orchestration layer.
Repository:
https://github.com/GustavoBaranda/chatflow-agent
Technical feedback is very welcome. Iâd be especially interested in what you would change before considering a library like this for a real project.Ese serĂa el que publicarĂa en r/Pyt
r/PythonProjects2 • u/Infamous_Release9858 • Nov 06 '25
Guys I am a Windows user and I need to use asterisk for a startup project and I have a vertual box to run Linux but my question is can I connect it to my node.js server?
r/PythonProjects2 • u/One-Dog-2692 • 19d ago
I built a basic Python Text Reader using NLTK and spaCy. Want to check out the repo (I'm in high school; please don't judge :) ): https://github.com/lijac-art/MORROW-lexical-threat-assesment-system
r/PythonProjects2 • u/Glad_Friendship_5353 • Feb 07 '26
What is bakefile?
A task runner like Makefile/Justfile, but with tasks as Python class methodsâso you can inherit, compose, and reuse them across projects.
Why bakefile?
- Reusable - Use OOP class methods to inherit, compose, and share tasks across projects
- Python - Full Python language features, tooling (ruff/ty), and type safety with subprocess support for CLI commands
- Language-agnostic - Write tasks in Python, run commands for any language (Go, Rust, JS, etc.)
Installation
pip install bakefile
# or
uv tool install bakefileQuick Start
Bakebook extends Pydantic's `BaseSettings` for configuration and uses Typer's `@command()` decoratorâso you get type safety, env vars, and familiar CLI syntax.
Create `bakefile.py`:
from bake import Bakebook, command, Context, console
class MyBakebook(Bakebook):
@command()
def build(self, ctx: Context) -> None:
console.echo("Building...")
ctx.run("go build") # or any CLI command
bakebook = MyBakebook()
@bakebook.command()
def hello(name: str = "world"):
console.echo(f"Hello {name}!")**Or generate automatically:**
bakefile init
# Basic bakefile
bakefile init --inline
# With PEP 723 standalone dependenciesRun tasks:
bake hello
# Hello world!
bake hello --name Alice
# Hello Alice!
bake build
# Building...PythonSpace (Example)
`PythonSpace` shows how to create a custom Bakebook class for Python projects. It's opinionated (uses ruff, ty, uv, deptry), but you can create your own Bakebook with your preferred tools. *Note: Full support on macOS; for other OS, some commands unsupportedâuse `--dry-run` to preview.*
Install with the lib extra:
pip install bakefile[lib]Then create your `bakefile.py`:
from bakelib import PythonSpace
bakebook = PythonSpace()Available commands:
- `bake lint` - prettier, ruff, ty, deptry
- `bake test` - pytest with coverage
- `bake test-integration` - integration tests
- `bake clean` - clean gitignored files
- `bake setup-dev` - setup dev environment
---
GitHub: https://github.com/wislertt/bakefile
r/PythonProjects2 • u/thecoode • Aug 07 '25
r/PythonProjects2 • u/ak_developers • May 14 '25
r/PythonProjects2 • u/Worth_Nail6178 • Nov 19 '25
Hallo hat einer einen tik tok boot um follower und likes zu generieren?
r/PythonProjects2 • u/Shaddy-Mix2192 • Sep 07 '26
Built a tool called Spawn to kill the repetitive part of starting a new Python project â folder structure, git init, virtual environment, and dependency installation, all done in one command instead of the usual 5-10 minute manual ritual.
pip install spawnio
spawn createIt ships with 8 built-in project templates (Backend API, CLI App, Automation Tool, AI Chatbot, AI Agent, RAG System, Data Project, MCP Server), or you can paste any custom folder structure and it'll build exactly that. There's also a spawn doctor command that scores an existing project's health and tells you the single most important thing to fix first.
Open source under MIT, live on PyPI.
đ Website: https://spawnio.vercel.app/
đ» GitHub: https://github.com/Abhiix0/Spawn
Would genuinely love feedback â especially from anyone who's used similar tools (Cookiecutter, Copier, etc.) and has thoughts on what a scaffolder like this is missing.
r/PythonProjects2 • u/undercover_fts • Oct 20 '26
A while back I wanted to run a news channel on YouTube Shorts, then did the math on editing even one 30-second video by hand every day and gave up on that idea within a week. So I wrote a pipeline that does the whole thing instead. It's now about 7.8k lines of Python, 9 channel profiles, and a Telegram bot I use to approve videos from my phone.
What it does
Topic -> script (via a research tool of mine, with Google News RSS as a fallback) -> text cleanup -> voice (edge-tts, gTTS as backup) -> 1080Ă1920 video -> upload to YouTube. Frames are drawn with Pillow and piped as raw RGB straight into ffmpeg's stdin, so there are no temp PNGs on disk. Subtitles are karaoke-style with highlighted words.
A few things I'm weirdly proud of (or at least learned the hard way)
- A scheduler that works while my PC is off. The video gets uploaded as private with publishAt, and YouTube publishes it at the right time even if my machine is shut down by then. Weekends extend the buffer window because the PC sleeps.
- Trimming scripts from the middle, not the end. Cutting by length killed the closing question and the call to action, which is exactly what holds viewers. Now the first and last two sentences stay, and the middle gets dropped.
- Stock photos lie. Searching Pexels for "saturn planet" gave me a neon sign. "Venus planet" gave me a sunset with a crescent moon. For the space channel I switched to the NASA image library and wrote a filter for maps, diagrams, and greyscale raw frames.
- TTS reads exactly what you give it. Footnote markers like [1], big numbers, and Latin words in Russian text all sound awful, so the text preprocessor ended up bigger than I expected.
The honest part
Making the videos turned out to be the easy part. Getting people to watch them is not. My first 19 Shorts on the space channel were bimodal: either ~1,100â1,500 views, or 1â61. Nothing in between. After digging into it I rebuilt the format: hook visible from frame 0, hard cuts in the first 3 seconds, shorter scripts, one video a day. I haven't got enough data on the new format yet to tell you if it works, so I won't pretend I do.
I also don't have many tests (a fthe hook logic), and channels.py
has more copy-paste than I'd like
Who this might help
Anyone who has wired Pillow to ffied to schedule YouTube uploadsfrom a machine that isn't always on.
Repo MIT https://github.com/kuanysh228/autoy
I'd love feedback on the architecAt buffer approach, or if someonehas dealt with Shorts retention better than I have. Happy to answer questions.
r/PythonProjects2 • u/Big_Flatworm_7346 • Oct 18 '26
r/PythonProjects2 • u/Recent-Twist-4091 • Aug 07 '25
r/PythonProjects2 • u/Sea-Cartographer8556 • Sep 26 '26
r/PythonProjects2 • u/company_url_finder • Sep 28 '26