Skip to main content

Fincas

CI PyPI Python 3.12 Django 6.0 Qwik City 1.20 License: MIT

Fincas is an open-source ERP and a headless Qwik storefront that runs on it, in one repository. The back office (Django) holds quotes and orders, invoicing and a double-entry ledger, inventory and purchasing, and a CRM; the storefront (Qwik City) reads that same data live through the REST API and places orders into it. There is no product feed, no sync job and no second database to reconcile. You install the ERP as a Python package and run it as your own Django project, extended with plugins instead of forks.

Try it: the live demo runs the current release. Back office at demo.fincas.dev (sign in as demo / golden-demo), storefront at shop.demo.fincas.dev, both on the same ERP. The demo is shared and its data is reset from time to time.

Status: actively maintained, beta. One company per instance. Python 3.12, PostgreSQL 17, Django 6.0.

Import name: the PyPI distribution is fincas, but the Python package is golden_erp (the project's earlier name), and settings keep the GOLDEN_* prefix. You write pip install fincas, then from golden_erp.settings.prod import * and include("golden_erp.urls"). Both names stay as they are so existing deployments and plugins keep working.

The engagements list: every open deal with its stage, next action and value

My day: overdue and due-today tasks with one-click complete, snooze and reschedule
My day: what is overdue and due today
An engagement: next action, deal stage, contacts, documents and stage history
An engagement: next action, deal, contacts
The example Qwik City storefront running on the Fincas API
The example storefront on the Fincas API

Back office: a local install with make seed demo data. Storefront: its built-in demo catalog.

One ERP, one storefront, one source of truth

Most shops run an ERP and a storefront as two systems and spend their time keeping them in step. In Fincas the storefront has no catalog of its own: it is a Qwik City app in storefront/ that asks the ERP for everything, on every request.

  • The catalog is the ERP's catalog. Products, variants, categories, brands, prices with quantity breaks, stock levels and SEO titles and descriptions come straight from the API. Edit a product in the back office and the storefront shows it on the next page load.
  • Checkout lands in the back office. A guest checkout creates a real sales order with an ERP order number and its cart lines, priced by the server from the catalog (never from the browser), ready for staff in the order list.
  • Customer accounts read the ERP. Signed-in customers see their profile, their orders and each order's detail through the customer portal API, from the same records your staff work with.
  • Nothing secret ships to the browser. The storefront holds no API key. A visitor's browser gets a short-lived, least-privilege token that can read the catalog and public prices and create a guest order, and nothing else (the storefront contract).
  • Fast and themeable. Qwik resumes instead of hydrating, so pages ship almost no JavaScript up front. 75 themes switch at runtime, landing-page templates are included, and Playwright journeys with axe accessibility checks run in CI.
  • Headless means replaceable. Every endpoint is described by the OpenAPI 3 schema. Use the included storefront as it is, restyle it, or build your own on the same contract.

Run both locally: make run for the ERP, then make storefront-install and make storefront-dev (it talks to http://localhost:8000/api).

Install

From PyPI (to run Fincas)

python3.12 -m venv .venv && . .venv/bin/activate
pip install "fincas[prod]"

Fincas is a library: your deployment is a small Django project with a config/settings.py that starts from golden_erp.settings.prod and a config/urls.py that mounts golden_erp.urls. docs/getting-started.md takes you from an empty directory to a first login; docs/packaging.md covers the settings overlay and version pinning.

WeasyPrint renders the PDFs and needs Cairo and Pango from your OS (libpango-1.0-0 libpangocairo-1.0-0 libcairo2 on Debian and Ubuntu).

From source (to work on Fincas)

git clone https://github.com/Logos-Flux/fincas.git
cd fincas
python3.12 -m venv .venv && . .venv/bin/activate
pip install -r requirements/dev.txt
make migrate          # SQLite in the working directory
make seed             # demo company, catalog, customers, 90 days of orders and books
make run              # http://localhost:8000/erp/

make seed creates the superuser admin with the password admin. That is for a local machine only; pass --admin-password to manage.py seed_demo_data anywhere else. The API docs are at http://localhost:8000/api/docs/.

CONTRIBUTING.md has the full development setup, including Docker Compose and the storefront.

What's in it

  • Sales: quotes with revisions, sales orders with shipment groups and drop-ship lines, sales invoices, payments through pluggable gateways (Stripe and manual included), coupon codes, price lists with customer-tier breaks, tax rates.
  • Operations: multi-warehouse stock, purchase orders and receiving, pick tickets, carrier rates and labels (EasyPost), PDF quotes, orders, invoices and purchase orders (WeasyPrint).
  • Accounting: chart of accounts, fiscal periods, journal entries posted from documents by configurable rules, trial balance checks.
  • CRM: one party record per person or organization (merge, undo, GDPR-style erasure), leads, pipelines and engagements with stage history, tasks, communications, custom fields, imports from another CRM's export, and adapters for Aircall, Gmail, ClickUp, Klaviyo and Google Ads.
  • Storefront and API: a Qwik City storefront in storefront/ that runs on the live ERP (see above), a REST API with an OpenAPI 3 schema (Swagger UI and Redoc included), a least-privilege storefront identity, and a customer portal.
  • Extending it: plugins add navigation, dashboard widgets, payment gateways, carriers, CRM adapters, outbox consumers and URLs; HMAC-signed outbound webhooks; a label layer to rename nouns in the staff UI; generated, WCAG AA-checked back-office themes.
  • Assistant: an optional AI chat drawer for staff, routed through llmhub: direct provider keys (Anthropic or any OpenAI-compatible endpoint) or your own gateway.

One company per instance

Each Fincas instance serves one company: one database, one core.Company row, one deployment. Another company gets its own instance. System check core.E070 refuses a second Company (docs/deployment.md).

Plugins

Fincas is extended without editing core files. A plugin is a class listed in GOLDEN_PLUGINS:

# hello_fincas/plugin.py
from core.plugins import BasePlugin


class HelloPlugin(BasePlugin):
    name = "hello"
    verbose_name = "Hello, Fincas"
    version = "0.1.0"

    def get_nav_items(self):
        return [{
            "type": "link",
            "label": "Hello",
            "section": "analytics",
            "url_name": "erp-dashboard",
            "icon": "fas fa-chart-line",
        }]
# config/settings.py
GOLDEN_PLUGINS = ["hello_fincas.plugin.HelloPlugin"]

docs/plugins.md covers every hook, lifecycle signals, the outbox, plugin URLs and testing a plugin.

LLM features

Every LLM call goes through llmhub and is configured on the staff-only /erp/llm/ page or by environment: direct provider keys (ANTHROPIC_API_KEY, or OPENAI_BASE_URL and OPENAI_API_KEY for any OpenAI-compatible endpoint), or an OpenAI-compatible gateway (LLMHUB_MODE=gateway, LLMHUB_GATEWAY_BASE_URL). python manage.py llmhub_check makes one small test call per configured purpose (--no-live checks resolution only).

Set LLMHUB_ALLOWED_BASE_URLS in production. It is empty by default, and while it is empty any staff user can point LLM traffic, including ERP data in prompts, at a host of their choosing from the settings page.

Documentation

The full index is docs/README.md. Start with:

Contributing and security

Bug reports, fixes and documentation are welcome: see CONTRIBUTING.md and the code of conduct. Report security issues privately, as described in SECURITY.md, not in a public issue.

License

MIT. Logo and brand assets: fincas-grid-brand/.

Metadata

Release files for fincas 0.4.4

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

Source distribution (sdist)

Source distribution for fincas 0.4.4
File Size Uploaded Provenance Actions
fincas-0.4.4.tar.gz 20.2 MB With provenance Details for fincas-0.4.4.tar.gz

Built distribution (wheel)

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

Total release size: 41.6 MB

Release files / fincas-0.4.4.tar.gz

Download URL fincas-0.4.4.tar.gz
Size 20.2 MB
Tags Source
SHA-256 checksum
How to use checksums
987e48b4bf012f6bf0c806b0ca8472037a769329bc874aaab82f2308414aebff
BLAKE2b-256 checksum
How to use checksums
3679a8075d447696ef8ba291ef4c603cab746eb0fe5ab3bdd7fab550014567d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Release files / fincas-0.4.4-py3-none-any.whl

Download URL fincas-0.4.4-py3-none-any.whl
Size 21.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
5b5949d2f55fa6606934a45566dd6bfcc531009bb37bfb12f949dc2a9ad4a6f5
BLAKE2b-256 checksum
How to use checksums
981cfd2c4944b95595ea96bb83b2f699e33fa17758f218f83a8d2efb670207c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Security for fincas 0.4.4

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 fincas-0.4.4.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 Nov 9, 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