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__.pyre-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 realdescription, 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 localpython -m buildleaves 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
Metadata
Release files for famnsdk 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| famnsdk-1.0.6.tar.gz | 169.9 kB | With provenance | Details for famnsdk-1.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| famnsdk-1.0.6-py3-none-any.whl | Python 3 | none | any | Details for famnsdk-1.0.6-py3-none-any.whl |
Total release size: 341.2 kB
Release files / famnsdk-1.0.6.tar.gz
| Download URL | famnsdk-1.0.6.tar.gz |
|---|---|
| Size | 169.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5f0923694e02ee4f85a40d389a1645dcb357ce9e35b59e4b241c963e5d43fe0
|
|
BLAKE2b-256 checksum How to use checksums |
b50544544dd5d3abf7f133f3066c918eba6fac20741a9d50d87433cb23e459ff
|
| 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 3, 2026.
Transparency logRelease files / famnsdk-1.0.6-py3-none-any.whl
| Download URL | famnsdk-1.0.6-py3-none-any.whl |
|---|---|
| Size | 171.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
52b383368acb69b331b77783455af4ab515e82aada122b920d8a33c242a0ed22
|
|
BLAKE2b-256 checksum How to use checksums |
0042565060e86b3f0343918612c42e2d4691b6db2c06e4b10e08446a3b5fd80c
|
| 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 3, 2026.
Transparency logSecurity for famnsdk 1.0.6
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.
Attestation for famnsdk-1.0.6.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 3, 2026.
Transparency logA 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.