Skip to main content

A simple Firebase Remote Config binding for Pydantic

Project description

Firebase Remote config validator for Pydantic

PyPI - Version Pydantic v2

A simple Firebase Remote Config binding for Pydantic, using remote server configuration only.

Installation

Package is publicly available on PyPi and can be install using any supported package manager:

pip install pydantic-firebase-remoteconfig

Usage

You simply need to implement your BaseRemoteConfigModel class and use the appropriate async validation class method. Let's imagine you have a server remote configuration with a foo variable with bar value:

from pydantic_firebase_remoteconfig import BaseRemoteConfigModel


class MyRemoteConfigModel(BaseRemoteConfigModel):
    foo: str


config = await MyRemoteConfigModel.model_validate_remoteconfig()
print(config.foo)
# bar

With custom model configuration

TBD

Key prefix

TBD

Parameter group selection

TBD

Complex model using nested delimiter

TBD

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydantic_firebase_remoteconfig-0.2.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file pydantic_firebase_remoteconfig-0.2.1.tar.gz.

File metadata

File hashes

Hashes for pydantic_firebase_remoteconfig-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c4ca14a5fc385b4ed04b8055b99302119089a003d338128ae9239c5760ff9209
MD5 446a103558e607406303d75666012797
BLAKE2b-256 0a804d74c837e895299318db1a3cdd81c893e7781b074bfbd24605c002296fad

See more details on using hashes here.

File details

Details for the file pydantic_firebase_remoteconfig-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pydantic_firebase_remoteconfig-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1b185792ce1466bcb58d3787b1219a7303470c23f6807f48b8505f084c6cd4e1
MD5 104f5ed8686a775ddc530fd998c9b017
BLAKE2b-256 eae5861c82ee806191c6be93937836986cdba42f7b7c527213554beba48e0102

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page