SShortSingh.
Back to feed

Fitz ORM promises single-type definition, auto migrations, and 8x faster RPS than SQLAlchemy

0
·1 views

A new Python-oriented ORM called Fitz aims to reduce the complexity of building typed database models by consolidating what traditionally requires three separate files — SQLAlchemy models, Pydantic schemas, and Alembic migrations — into a single type definition. In a standard FastAPI setup, developers must maintain parallel model definitions and manually configure Alembic to handle schema migrations, which can lead to inconsistencies. Fitz uses a decorator-based syntax where one type declaration serves as the single source of truth for database schema, API validation, JSON deserialization, and OpenAPI spec generation. The project claims benchmark results showing 8 times more requests per second and 5 times lower memory usage compared to SQLAlchemy under reproducible test conditions. The tool is positioned as a developer-experience improvement for teams building modern async APIs who want to reduce boilerplate and synchronization overhead across data layers.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

KathaGPT Lets You Run AI Models Locally Without Ollama or API Keys

KathaGPT is a free, open-source desktop application released under the MIT license that allows users to run large language models privately on their own machines. The app supports one-click downloading and local execution of popular models including Llama, Mistral, and Qwen. It requires no external API keys or third-party tools like Ollama, keeping all data processing entirely offline. KathaGPT is compatible with macOS, Windows, and Linux, making it accessible across major desktop platforms. The project is available on GitHub and aims to give users full control over their AI interactions without relying on cloud services.

0
ProgrammingDEV Community ·

Why Fresher Developers Should Ditch Clone Projects for Real-World Builds

A growing concern in the tech hiring space highlights that fresher developers who submit tutorial-based clone projects — such as Netflix or Amazon replicas — are largely overlooked by recruiters who have seen these portfolios repeatedly. Recruiters are instead looking for candidates who can demonstrate practical problem-solving skills relevant to real business needs. Experts suggest building original projects that address genuine problems, such as inventory management tools or attendance tracking systems, and incorporating professional features like authentication, dashboards, and error handling. A smaller number of well-documented, fully deployed projects is considered far more impactful than a large collection of incomplete or copied ones. A strong GitHub profile with clean code structure, meaningful commit history, and detailed README files is recommended to signal readiness for production-level work.

0
ProgrammingDEV Community ·

Why GPT Miscounts Letters in 'Strawberry': BPE Tokenization Explained

Large language models do not read text as individual letters but instead process it as chunks called tokens, produced by an algorithm called Byte-Pair Encoding (BPE). BPE works by repeatedly merging the most frequently co-occurring character pairs in training data until a vocabulary of roughly 50,000 tokens is built. As a result, the word 'strawberry' is split into 'straw' and 'berry', making the letter 'r' invisible to the model as a standalone character — which explains why AI systems often miscount letters. Capitalization and punctuation can also change how words are tokenized, sometimes multiplying token count and therefore API costs significantly. An interactive BPE simulator has been released to help users observe token formation in real time and understand these limitations firsthand.

0
ProgrammingDEV Community ·

EU Consumers Have Free Legal Tools to Force Refunds From Unresponsive Sellers

EU consumer law provides three formal dispute channels that give shoppers strong recourse when sellers ignore refund or return requests. Alternative Dispute Resolution (ADR) bodies offer free or near-free mediation, with most cases resolved within 90 days and binding outcomes for sellers. National consumer authorities such as Germany's Verbraucherzentrale and France's DGCCRF can impose fines on non-compliant businesses. The EU's Online Dispute Resolution (ODR) platform at ec.europa.eu/consumers/odr handles cross-border complaints, automatically routing cases to the appropriate authority and managing translation. Consumers are advised to document their case, send a formal notice citing relevant EU directives, and file through whichever channel applies — a process that typically takes under 20 minutes.

Fitz ORM promises single-type definition, auto migrations, and 8x faster RPS than SQLAlchemy · ShortSingh