Skip to main content

fastapi-users-ormar-ext

Extension to use ormar in fastapi-users

Installation

To install use:

pip install fastapi-users-ormar-ext

Usage

Example:

from typing import Optional

import ormar

from fastapi_users_ormar_ext import (
    OrmarBaseUserTableUUID,
    OrmarBaseOAuthAccountTableUUID,
)

class BaseMeta(ormar.ModelMeta):
    """Base metadata for models."""

    database = database
    metadata = meta


class User(OrmarBaseUserTableUUID):
    class Meta(BaseMeta):
        pass

    phone: str = ormar.String(nullable=False, max_length=100)


class OAuthAccount(OrmarBaseOAuthAccountTableUUID):
    class Meta(BaseMeta):
        pass

    user: User = ormar.ForeignKey(User, nullable=False, ondelete="cascade")

TODO

[ ] Think of a way to force user field overriding in OrmarBaseOAuthAccountTableUUID [ ] Add tests

Metadata

Release files for fastapi-users-ormar-ext 0.1.2

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-users-ormar-ext 0.1.2
File Size Uploaded Provenance Actions
fastapi_users_ormar_ext-0.1.2.tar.gz 2.9 kB Without provenance Details for fastapi_users_ormar_ext-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastapi-users-ormar-ext 0.1.2
File Interpreter ABI Platform Actions
fastapi_users_ormar_ext-0.1.2-py3-none-any.whl Python 3 none any Details for fastapi_users_ormar_ext-0.1.2-py3-none-any.whl

Total release size: 6.6 kB

Release files / fastapi_users_ormar_ext-0.1.2.tar.gz

Download URL fastapi_users_ormar_ext-0.1.2.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b53e2771c066006efde8a7a12d5fad1ac42a9ca25d3addfccba529f917e76e26
BLAKE2b-256 checksum
How to use checksums
06005bb9f62c2c8618209c4664c8adfa047d26abdc240d1a783becc6f1f9e63d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.9.18 Darwin/23.1.0

Release files / fastapi_users_ormar_ext-0.1.2-py3-none-any.whl

Download URL fastapi_users_ormar_ext-0.1.2-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c5533d5a5a6709c8a56b2e428e38ef564cc4ec8be4e670b78b787eef1a4d831c
BLAKE2b-256 checksum
How to use checksums
01d131799d9a3a6eb42165af076f60d52e94651cf924ff720d4dc697883b5be7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.9.18 Darwin/23.1.0

Security for fastapi-users-ormar-ext 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

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