Skip to main content

famnsdk

Async Python client for the Famn family organizer API.

Generated from the Famn OpenAPI description. It uses aiohttp and can reuse a session owned by the caller, which is how the Home Assistant integration consumes it.

Installation

pip install famnsdk

Usage

from famn_sdk import ApiClient

async def example(session):
    client = ApiClient(session=session)
    # api = SomeApi(client)
    # result = await api.some_operation(...)

An injected aiohttp.ClientSession remains owned by the caller. If no session is supplied, use async with ApiClient() as client: so the generated client closes the session it creates.

Regenerating

The generator rewrites README.md, pyproject.toml, config.json, .gitignore, src/famn_sdk/__init__.py, src/famn_sdk/apis.py and src/famn_sdk/models.py. Three things in this repository are hand written and are not reproduced by it:

  • src/famn_sdk/realtime.py, the WebSocket gateway client. It is not a file the generator writes, so it survives — but nothing in the generated __init__.py re-exports it. Import it from the submodule (from famn_sdk.realtime import RealtimeClient), never from the package root, so a regenerate cannot break callers.

  • The packaging metadata in pyproject.toml: license, license-files, the real description, the classifiers and [project.urls]. A regenerate drops these back to the generator's defaults, and a release published without them is not usable as a Home Assistant dependency.

  • The build-artifact rules in .gitignore (build/, dist/, *.egg-info/), without which a local python -m build leaves output that looks committable.

Run python scripts/check_handwritten.py after regenerating; CI runs it too.

Releasing

Releases are published to PyPI by the Upload Python Package GitHub Actions workflow, using PyPI trusted publishing, when a GitHub release is created. Bump version in pyproject.toml, __version__ in src/famn_sdk/__init__.py and packageVersion in config.json, then tag and publish the release.

License

MIT

Metadata

Release files for famnsdk 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for famnsdk 1.0.7
File Size Uploaded Provenance Actions
famnsdk-1.0.7.tar.gz 170.0 kB With provenance Details for famnsdk-1.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for famnsdk 1.0.7
File Interpreter ABI Platform Actions
famnsdk-1.0.7-py3-none-any.whl Python 3 none any Details for famnsdk-1.0.7-py3-none-any.whl

Total release size: 341.5 kB

Release files / famnsdk-1.0.7.tar.gz

Download URL famnsdk-1.0.7.tar.gz
Size 170.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c8d3fdb6cea057544ef4a2a2dbb6ce99aaf44d72c04bbfb07e7e5b9ab73ff9f3
BLAKE2b-256 checksum
How to use checksums
f3d86112e2661735a0114c5f08c7822bd8ad2f37171202ab029ee95be9be6e0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.

Transparency log

Release files / famnsdk-1.0.7-py3-none-any.whl

Download URL famnsdk-1.0.7-py3-none-any.whl
Size 171.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03e6108ddfcd383f4c5fba4796a93c79e82ceeffce12acbe15793414b2f9af05
BLAKE2b-256 checksum
How to use checksums
57b7498cc3db37ea858ca08db1dc764a8e9d722e13b4bc463af1e33e3eae17ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.

Transparency log

Security for famnsdk 1.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for famnsdk-1.0.7.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page