Skip to content

RamonSouzaDev/python-best-practices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python 2026: The State of the Art 🐍

High-Performance • True Parallelism • Modern Toolchain


👋 Hello, I'm Ramon Mendes - Software Developer

Mastering the Next Generation of Python Engineering

This project serves as a definitive 2026 Reference Implementation for modern Python development. It moves beyond the legacy stack (pip, pandas, GIL-limited execution) to embrace the performance revolution defined by Rust-based tooling and Python 3.14's free-threading capabilities.

  • 🔭 Project Goal: Demonstrate a production-ready, high-speed Python environment.

  • 🌱 Tech Stack:

    • Runtime: Python 3.14 (Free-threaded / NoGIL supported)
    • Dependency Management: uv (100x faster than pip)
    • Linting & Formatting: Ruff (Instantaneous analysis)
    • API Framework: FastAPI + Pydantic v2
    • Data Processing: Polars (Rust-backed, multi-core dataframes)
  • 📫 Contact: dwmom@hotmail.com


🚀 Key Features & Releases Implemented

1. The New Toolchain (uv & ruff)

Gone are the days of sluggish pip installs and slow linting using flake8.

  • uv: We use Astral's uv for package management. It resolves dependencies in milliseconds.
  • ruff: A single tool replacing Black, Isort, and Flake8. Pre-configured in pyproject.toml.

2. High-Performance Base

  • FastAPI: Asynchronous by default.
  • Polars: Used instead of Pandas for data processing. It utilizes all CPU cores effectively, matching the 2026 parallel computing paradigm.

3. Dockerized & Ready

A multi-stage Dockerfile ensures the application is lightweight and secure, with a production-ready gunicorn + uvicorn setup hidden behind a clean interface.


🛠️ Installation & Running

Using Docker (Recommended)

  1. Clone the repository:

    git clone https://github.com/RamonSouzaDev/python-best-practices.git
    cd python-best-practices
  2. Build and Run:

    docker compose up --build
  3. Access the Application: Open http://localhost:8000 to see the Live Documentation & Demo.

Local Development (The 2026 Way)

  1. Install uv (if not installed):

    pip install uv
  2. Sync Dependencies:

    uv sync
  3. Run the App:

    uv run uvicorn src.main:app --reload
  4. Run Tests:

    uv run pytest

🧪 Testing & Code Quality

To run the full test suite and linting checks:

# Run Linter
uv run ruff check .

# Run Unit Tests
uv run pytest

Built with ❤️ by Ramon Mendes for the IBM Interview Studies

About

The best realeases of python and software development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors