Skip to main content

Fastapi Helpers

This pip packages will help you to make your life easier when working with fastapi and ormar.

For installing this package:

pip install fastapi-helpers

If you need a default settings for your app, it includes an implementation BaseSettings of pydantic.

from fastapi_helpers import DefaultSettings
from utils import env_path
from typing import Optional

class Settings(DefaultSettings):
    app_name = "your-app-name"
    redis_url: Optional[str] = 'redis://localhost:6379'
    version: Optional[str] = '1.0.0.0'
    port: Optional[str] = "8000"
    env: Optional[str] = "dev" #dev, test, prod


settings = Settings(env_path)

If you need a logger, it includes an implementation a colored console, and in prod envs it will log to aws with the help of watchtower.

from fastapi_helpers import DefaultLogger
from .config import settings

logger = DefaultLogger("your-app-name", settings)

If you need to connect to a db superfast, the only thing you need to do is to:

from fastapi_helpers import DbConfig
from core.config import settings
from core.logger import logger

db_config = DbConfig(settings, logger)

There are other tools for making the usage of ormar and fastapi even easier.

I would really like to make this tools bigger, but I´m looking for help for documenting this package.

Happy codding!

Release files for fastapi-helpers 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastapi-helpers 0.3.0
File Size Uploaded
fastapi_helpers-0.3.0.tar.gz 12.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fastapi-helpers 0.3.0
File Interpreter ABI Platform
fastapi_helpers-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 32.0 kB

Release files / fastapi_helpers-0.3.0.tar.gz

Download URL fastapi_helpers-0.3.0.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d1e458795d4d21cb8f32205a0c8dd48fafae2c551606eed9e666aac99a44bd73
BLAKE2b-256 checksum
How to use checksums
d1b42879ac725288f8b1d68abf9b15a7876aabdf8429d7e134b0f034cf4dfc3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / fastapi_helpers-0.3.0-py3-none-any.whl

Download URL fastapi_helpers-0.3.0-py3-none-any.whl
Size 19.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6507511773c9d26db25cb7cc6caae6b566a0d1101e7cf0b2285b0bd50455f059
BLAKE2b-256 checksum
How to use checksums
a748d03f142d5d2fb0e98d123fec8cd3c2f227051d3639b13a7c3408f21a5bdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.5

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.18

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page