Skip to main content

ff-iii-luciferin

CI PyPI Python codecov

ff-iii-luciferin is an async Python client and a small set of domain helpers for working with Firefly III transactions. It fetches transactions and categories, exposes simplified models, and updates a transaction's description, notes, tags, or category.

Python 3.12 or newer is required. CI tests Python 3.12–3.15, including package installation on each version and live Firefly III tests on 3.12 and 3.15.

Install

pip install ff-iii-luciferin

Quickstart

Set FIREFLY_URL to the instance root (without /api/v1) and FIREFLY_TOKEN to a personal access token. The client does not read environment variables itself; this example passes them explicitly.

import asyncio
import os

from ff_iii_luciferin.api import FireflyClient


async def main() -> None:
    client = FireflyClient(
        base_url=os.environ["FIREFLY_URL"],
        token=os.environ["FIREFLY_TOKEN"],
    )
    try:
        about = await client.get_about()
        print(f"Firefly III: {about.version}")

        transactions = await client.fetch_transactions(max_pages=1)
        for tx in transactions:
            print(tx.id, tx.date, tx.amount, tx.description, tx.external_id)

    finally:
        await client.close()


asyncio.run(main())

fetch_transactions() defaults to withdrawals; pass tx_type for another Firefly III transaction type. Multipart and invalid transactions are skipped during listing, while get_transaction() raises FireflyAPIError for an unsupported multipart transaction.

Documentation

The full documentation covers setup, transaction updates, matching semantics, and the public API reference. The OpenAPI-generated transport models are implementation details and are not part of that reference.

Local development

With Docker and Python 3 installed, start an isolated Firefly III demo and run a read-only example:

bash scripts/demo/start.sh
set -a; source .firefly-demo/env; set +a
uv run python examples/min_usage_search.py

The demo listens on http://127.0.0.1:18080 and seeds accounts, categories, withdrawals, a deposit, and a transfer in SQLite. Repeated starts reuse the data without duplicating seed records. bash scripts/demo/stop.sh stops the container while keeping the database. .firefly-demo/ contains a token and app key; keep it private. New containers use fireflyiii/core:latest; set FIREFLY_DEMO_IMAGE=fireflyiii/core:version-6.7.4 to pin an image before the first start. An existing container keeps its image until recreated.

To run the live test against an isolated instance, set FIREFLY_E2E_URL and FIREFLY_E2E_TOKEN, then run uv run pytest tests/test_firefly_e2e.py. Without those variables, the test is skipped. The GitHub Actions E2E workflow starts its own disposable instance.

Build the documentation locally with:

uv sync --locked --group docs
uv run --locked --group docs zensical build --strict

Preview the documentation locally with uv run --group docs zensical serve.

See LICENSE for the MIT license.

Metadata

Release files for ff-iii-luciferin 1.5.0

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

Source distribution (sdist)

Source distribution for ff-iii-luciferin 1.5.0
File Size Uploaded Provenance Actions
ff_iii_luciferin-1.5.0.tar.gz 108.8 kB Without provenance Details for ff_iii_luciferin-1.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ff-iii-luciferin 1.5.0
File Interpreter ABI Platform Actions
ff_iii_luciferin-1.5.0-py3-none-any.whl Python 3 none any Details for ff_iii_luciferin-1.5.0-py3-none-any.whl

Total release size: 558.1 kB

Release files / ff_iii_luciferin-1.5.0.tar.gz

Download URL ff_iii_luciferin-1.5.0.tar.gz
Size 108.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cffa4d290bd015bafcfdd7223ceab2812a7b1f80224c76dd87d4ebd68176bf5f
BLAKE2b-256 checksum
How to use checksums
e539fec1f3519ecdabd7b7eb06c1197da7b99ed8e744b2acf5883902c9163b26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ff_iii_luciferin-1.5.0-py3-none-any.whl

Download URL ff_iii_luciferin-1.5.0-py3-none-any.whl
Size 449.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d9468bda753b3ad918c0dd12745c94c3150fa80b7af2bf771217a148f2ae12b5
BLAKE2b-256 checksum
How to use checksums
b02c145edfbffdfaacbe125a7a63143cdd1f086ee5c900a7c3869b45486c1160
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for ff-iii-luciferin 1.5.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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