Socket
Book a DemoInstallSign in
Socket

fastutils-hmarcuzzo

Package Overview
Dependencies
Maintainers
0
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastutils-hmarcuzzo

A personal utility library I've developed to streamline and optimize backend development with FastAPI in my projects. From generic repositories and queries to enums, error handling, and more, fastutils_hmarcuzzo encompasses essential tools that have proven invaluable in my development journey, whether as a novice or a seasoned professional.

0.6.0
pipPyPI
Maintainers
0

Python library for FastAPI, boosting SQLAlchemy and Redis with pagination, error handling, and session management.

Supported Python Versions

FastUtils is a comprehensive Python library designed for FastAPI. It provides robust support for both asynchronous and synchronous operations with SQLAlchemy and asynchronous operations with Redis. Key features include dynamic pagination, custom error handling, automatic database session management within a context manager, and much more.

Source Code: https://github.com/hmarcuzzo/fast-utils

Features

  • Fully Async: Leverages Python's async capabilities for non-blocking database operations.
  • SQLAlchemy 2.0: Works with the latest SQLAlchemy version for robust database interactions.
  • Redis Support: Provides support for Redis for caching and other operations.
  • Dynamic Query Building: Supports building simple queries dynamically, including filtering, sorting, and pagination.
  • Built-in Offset Pagination: Comes with ready-to-use offset pagination.
  • Custom Error Handling: Provides custom error handling for better debugging and user experience.
  • Session Management: Automatically manages database sessions within a context manager.

Requirements

Before installing FastUtils, ensure you have the following prerequisites:

  • Python: Version 3.10 or newer.
  • FastAPI: FastUtils is built to work with FastAPI, so having FastAPI in your project is essential.
  • SQLAlchemy: FastUtils uses SQLAlchemy 2.0 for database operations, so you need SQLAlchemy 2.0 or newer.
  • Pydantic V2: FastUtils leverages Pydantic models for data validation and serialization, so you need Pydantic 2.0 or newer.
  • Redis: If you plan to use Redis with FastUtils, you need to have Redis installed and running in a version 5.0 or newer.

Installing

To install the fastutils-hmarcuzzo package, follow these steps:

Using pip

Run the following command:

pip install fastutils-hmarcuzzo

Using Poetry

Run the following command:

poetry add fastutils-hmarcuzzo

License

This project is licensed under the terms of the MIT license.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.