Skip to main content

A Firefly III enrichment engine that makes your data glow

Project description

ff-iii-luciferin

CI PyPI Python License

ff-iii-luciferin is a Python enrichment engine for
Firefly III transactions.

⚠️ This project is currently in beta. APIs may still change.

It provides a clean, async-first API for post-processing financial data: descriptions, notes, tags, and categories — without polluting your domain logic.


✨ Key Features

  • 🔌 Async client for Firefly III API (built on httpx)
  • 📝 Update transaction descriptions and notes
  • 🏷️ Add or manage tags
  • 🗂️ Assign or change categories
  • 🚫 Filter unwanted transactions (e.g. uncategorized, split-only)
  • ⚠️ Explicit handling of API, network, and data errors
  • 🧱 Generated OpenAPI client kept internal (not public API)

📦 Installation

From PyPI:

pip install ff-iii-luciferin

Python 3.12+ required.


⚙️ Configuration

The client requires access to your Firefly III instance and a personal access token.

Provide them via environment variables:

FIREFLY_URL=https://your-firefly-instance/api
FIREFLY_TOKEN=your_access_token

Using python-dotenv is optional but recommended for local development.


🚀 Quick Start

Minimal async example:

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:
        transactions = await client.fetch_transactions()
        categories = await client.fetch_categories()

        await client.update_transaction_description(
            transaction_id=123,
            description="Updated description",
        )

        await client.update_transaction_notes(
            transaction_id=123,
            notes="Additional notes",
        )

        await client.add_tag_to_transaction(
            transaction_id=123,
            tag="processed",
        )

        await client.assign_transaction_category(
            transaction_id=123,
            new_category_id=1,
        )
    finally:
        await client.close()


asyncio.run(main())

📄 License

MIT License.

MIT License — see LICENSE for details.

Project details


Download files

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

Source Distribution

ff_iii_luciferin-1.0.0b4.tar.gz (87.6 kB view details)

Uploaded Source

Built Distribution

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

ff_iii_luciferin-1.0.0b4-py3-none-any.whl (430.3 kB view details)

Uploaded Python 3

File details

Details for the file ff_iii_luciferin-1.0.0b4.tar.gz.

File metadata

  • Download URL: ff_iii_luciferin-1.0.0b4.tar.gz
  • Upload date:
  • Size: 87.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ff_iii_luciferin-1.0.0b4.tar.gz
Algorithm Hash digest
SHA256 6a71d5b0805321cfbe278819ae7baa50278e25d089a51595796f7d5ed6f497fe
MD5 3eefe8ccbd99a1fdb43af3ebabcca0d7
BLAKE2b-256 c254f014b486eb24c44f8f06826e0ec3f1d23787a1d1b35475904fa70777d43e

See more details on using hashes here.

File details

Details for the file ff_iii_luciferin-1.0.0b4-py3-none-any.whl.

File metadata

  • Download URL: ff_iii_luciferin-1.0.0b4-py3-none-any.whl
  • Upload date:
  • Size: 430.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ff_iii_luciferin-1.0.0b4-py3-none-any.whl
Algorithm Hash digest
SHA256 cc482b6d099d2ee1e1258712ca5d5681b803f11fb7d849ed5ef75a0ae2feffb5
MD5 ff91581f1dc0e72d43f35d2725e5ae7c
BLAKE2b-256 4b9db7b4e67a57a2db2ba698584bb2d48aba0c8de6114b5b4f4c9ae989f43b83

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