No project description provided
Project description
fountain_life_service_clients
Auto-generated fully-typed Python API clients for the Fountain Life ecosystem.
Installation
pip install fountain-life-service-clients
Development (this monorepo)
yarn update-clients at the repository root runs poetry run poe generate here. That requires a Poetry environment with dev dependencies (including poethepoet, which provides the poe CLI). After cloning, install them once from the repo root:
yarn workspace py-clients install
If poetry run poe generate fails with a missing OpenAPI file under packages/schemas/src/openapi-schema-files/, run yarn turbo run generate --force --filter=schemas first so OpenAPI artifacts exist for every schema-files/*.json snapshot.
Usage
fountain_life_service_clients supports calling a service's API directly via
the service Lambda function.
import json
from fountain_life_service_clients.file_service import FileServiceClient
# A well-typed service client that already knows which Lambda and
# path to call. Custom Alpha options can optionally be supplied as well.
file_service = FileServiceClient(
headers={
"LifeOmic-Account": "fountainlife",
"LifeOmic-Policy": json.dumps(
{"rules": {"readData": True}}
),
}
)
res = await file_service.list_files({})
print(res.status_code)
# `res.body` is well-typed.
items = res.body["items"]
Migration Guide
Project details
Release history Release notifications | RSS feed
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 fountain_life_service_clients-4.3.0.tar.gz.
File metadata
- Download URL: fountain_life_service_clients-4.3.0.tar.gz
- Upload date:
- Size: 24.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.0 CPython/3.13.13 Linux/6.17.0-1010-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7a9fa02e29bbbd1294bc4a275379bc25748d08a97f88abe26e27d0310ce9773
|
|
| MD5 |
d49a371c617f15956339a5ff2109863a
|
|
| BLAKE2b-256 |
fe41405a3a5a0123b4dfd4e16edae318744e447f580d735e20ea3bdb46cc122b
|
File details
Details for the file fountain_life_service_clients-4.3.0-py3-none-any.whl.
File metadata
- Download URL: fountain_life_service_clients-4.3.0-py3-none-any.whl
- Upload date:
- Size: 46.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.0 CPython/3.13.13 Linux/6.17.0-1010-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49c7a1860e34751ca291d128c12727cc4dd64cc9c97cc48af7efe275475bd666
|
|
| MD5 |
f4fcf584aeb6e5cdfb392739169738ef
|
|
| BLAKE2b-256 |
2c7102c1f0b327dd53d239efbcb7bc16477b42516ceaae19d43b5f3f9ca604cd
|