Skip to main content

A simple Firebase Remote Config binding for Pydantic

Project description

Firebase Remote config validator for Pydantic

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

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.1.0.tar.gz (3.5 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.1.0.tar.gz.

File metadata

File hashes

Hashes for pydantic_firebase_remoteconfig-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5bc42469d1ea09d59fa98dd0b1c9af239812ada09ab0bd3fbfe189175e2ed234
MD5 e4bce2c5014c3cc63a8abd9e060f451c
BLAKE2b-256 f4353e9bf3af272cb60d767339795241b3f17343825ec1390f0b4b8b684cb195

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydantic_firebase_remoteconfig-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ef8e6b5059c096f3784da78e8dddd2b4b50d5051bea3335fb127026aab04a30
MD5 f998f1da30f0333bd1556109b3dd4eed
BLAKE2b-256 32a28e7602b9470bde3fecc9aaa0a204b6018689b5a5c93ed7ff2577c35aabbb

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