Skip to main content

authx-core 💫

authx

codecov Pypi framework

Features

Utilities to help reduce boilerplate and reuse common functionality, Based to Support Building of Authx & Authx-lite ⚡:

  • SQLAlchemy Sessions: The AuthxDB class provides an easily-customized SQLAlchemy Session dependency.
    • Asynchronous Sessions: The authxAsyncGetEngine function returns a AsyncResult object, which can be used to wait for the engine to be ready.
    • Support Customs Models & Schemas: Supports custom user models (both ORM and pydantic) without sacrificing any type-safety.
  • Middleware: Log basic timing information for every request.
  • Inferring Router: Let FastAPI infer the response_model to use based on your return type annotation.
  • OpenAPI Simplification: Simplify your OpenAPI Operation IDs for cleaner output from OpenAPI Generator.
  • Views: Stop repeating the same dependencies over and over in the signature of related endpoints.
  • Repeated Tasks: Easily trigger periodic tasks on server startup.

It also adds a variety of more basic utilities that are useful across a wide variety of projects:

  • GUID Type: The provided GUID type makes it easy to use UUIDs as the primary keys for your database tables.
  • Enums: The authxStrEnum and authxCamelStrEnum classes make string-valued enums easier to maintain.
  • CamelCase & SnakeCase: Convenience functions for converting strings from authxSnake to authxCamel and vice versa.
  • authxModel: A reusable pydantic.BaseModel derived base class with useful defaults.
  • authxAPISettings: A subclass of pydantic.BaseSettings that makes it easy to configure FastAPI through environment variables.

Requirements

This package is intended for use with any recent version of FastAPI (depending on pydantic and FastAPI and SQLAlchemy), and Python 3.8+.

Installation

pip install authx_core

License

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

Metadata

Release files for authx_core 0.0.10

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

Source distribution (sdist)

Source distribution for authx_core 0.0.10
File Size Uploaded
authx_core-0.0.10.tar.gz 34.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for authx_core 0.0.10
File Interpreter ABI Platform
authx_core-0.0.10-py3-none-any.whl Python 3 none any Details

Total release size: 64.4 kB

Release files / authx_core-0.0.10.tar.gz

Download URL authx_core-0.0.10.tar.gz
Size 34.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bd8d944f6a40037b6278b24545ec6edc44300bc8f8d25602a5cea19bdb8d5baa
BLAKE2b-256 checksum
How to use checksums
cf7424b60db632824adb7e96edd838f5640793b1f34c22a290b4e31140735be6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.27.1

Release files / authx_core-0.0.10-py3-none-any.whl

Download URL authx_core-0.0.10-py3-none-any.whl
Size 30.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e2fcc877602fdc7659985c83d7a6574570a60abdc7578434805876a203396b2
BLAKE2b-256 checksum
How to use checksums
dd0b42a0ec678521bd8801b1dad859188adabd51228762a0f9226a8c9c068592
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.27.1

Release history Release notifications | RSS feed

This release

0.0.10 This release

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