Skip to main content

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

This version

4.4.0

Download files

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

Source Distribution

fountain_life_service_clients-4.4.0.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

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

fountain_life_service_clients-4.4.0-py3-none-any.whl (46.7 kB view details)

Uploaded Python 3

File details

Details for the file fountain_life_service_clients-4.4.0.tar.gz.

File metadata

  • Download URL: fountain_life_service_clients-4.4.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

Hashes for fountain_life_service_clients-4.4.0.tar.gz
Algorithm Hash digest
SHA256 46131babf4d901c07799c2882489b4b6540c016d861e5991096e1bf9cd4a5b23
MD5 be89da71a07dd0c81a6cfd1c0f0cf6af
BLAKE2b-256 96d3d868aafe95bd39b1c06afc017b60cfe20a7da6b6f7f613e72305a84949a6

See more details on using hashes here.

File details

Details for the file fountain_life_service_clients-4.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fountain_life_service_clients-4.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5bf4b397dfacb46c888e095c05b6069fd3ddf83ce4ccb5d7aa808ba74e7a98ee
MD5 9f4340bd2d8881186f9a135e26970dd3
BLAKE2b-256 23a5a3d5dd08a74fc2d6e80585ea2e274ba4e145393485d4d97cfdd94c5a3fd9

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