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.0.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.0.tar.gz.

File metadata

File hashes

Hashes for pydantic_firebase_remoteconfig-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0def9f10b405c67a0e122d4554710bf858de16d92545fa065cbc3c21103396b5
MD5 192c4b6a3f2381827f71310a19b00287
BLAKE2b-256 b9bbcf4f45d1b729b69bc2e2b3342adbedfc9eaf087a9091376b73e0ec35e453

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydantic_firebase_remoteconfig-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6974c2839fe4be3ce21a4c9e6c4f0aa89d75d30635681ab6cc60edb5a1742dbc
MD5 0fb0a9a6cc02dd47df4c50b59eecf68d
BLAKE2b-256 010e8290ce7ef61cb77e5098e5d538331affa6a52eaa8178be3458615566c9e5

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