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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydantic_firebase_remoteconfig-0.1.0.tar.gz.
File metadata
- Download URL: pydantic_firebase_remoteconfig-0.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bc42469d1ea09d59fa98dd0b1c9af239812ada09ab0bd3fbfe189175e2ed234
|
|
| MD5 |
e4bce2c5014c3cc63a8abd9e060f451c
|
|
| BLAKE2b-256 |
f4353e9bf3af272cb60d767339795241b3f17343825ec1390f0b4b8b684cb195
|
File details
Details for the file pydantic_firebase_remoteconfig-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pydantic_firebase_remoteconfig-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ef8e6b5059c096f3784da78e8dddd2b4b50d5051bea3335fb127026aab04a30
|
|
| MD5 |
f998f1da30f0333bd1556109b3dd4eed
|
|
| BLAKE2b-256 |
32a28e7602b9470bde3fecc9aaa0a204b6018689b5a5c93ed7ff2577c35aabbb
|