Skip to main content

A multi-purpose application framework embodying beauty in form.

Project description

Tiferet – Domain-Driven Design, beautifully balanced

PyPI Python License

Tiferet is a Python framework that brings Domain-Driven Design into focus with elegance and clarity.

Inspired by the Kabbalistic principle of harmony and beauty in balance, Tiferet helps you turn complex business logic into maintainable, configuration-driven applications — where purpose, structure, and execution feel naturally aligned.

At a glance

  • Builders-first app entry point via AppBuilder (exported as App)
  • Domain events as the core unit of behavior
  • YAML for features, workflows, dependency injection, errors, CLI commands
  • Clean layering: domain objects • aggregates • transfer objects • services
  • Structured, multilingual errors built-in
  • Easy to extend to CLI, web, scripts, TUI, … Current status: 2.0.0a10 (pre-release – actively evolving toward stable v2)

Quick Start – Add two numbers in ~3 minutes

# 1. Set up environment
python3 -m venv tiferet-demo && source tiferet-demo/bin/activate
pip install tiferet

Create these files in your project folder:

demo.py

from tiferet import App
app = App().load_app_service(
    app_yaml_file="config.yml"
)                               # App is the AppBuilder alias

result = app.run(
    interface_id="basic_calc",
    feature_id="calc.add",
    data={"a": 19, "b": 23}
)

print(f"19 + 23 = {result}")    # → 42

config.yml

interfaces:
  basic_calc:
    name: Basic Calculator
    description: Basic calculator interface

services:
  add_number_event:
    module_path: app.events.calc
    class_name: AddNumber

features:
  calc:
    add:
      name: Add Numbers
      commands:
        - service_id: add_number_event

app/events/calc.py
(the domain event itself – very minimal)

from tiferet.events import DomainEvent

class AddNumber(DomainEvent):
    def execute(self, a: int, b: int, **kwargs) -> int:
        return a + b

Run:

python demo.py

You should see:

19 + 23 = 42

→ Want a full calculator (add, subtract, multiply, divide, sqrt, …) with CLI, validation and proper error handling?
→ Continue with the step-by-step Calculator Tutorial →

Why Tiferet?

  • Configuration as code — features, DI, errors, CLI all live in YAML
  • Domain logic stays pure — focused events & aggregates
  • Infrastructure is injectable — file/db/utils behind clean service contracts
  • Built for evolution — today CLI, tomorrow FastAPI or TUI
  • Strong testability — events are easy to invoke in isolation

Documentation & Guides

Core architecture

Practical Guides

Domain Guides

Event Guides

Utility Guides

Other Component Guides

Tutorial
Build a complete Calculator (events + CLI + configs)

Contributing

We welcome bug reports, documentation improvements, feature ideas, and early adopters.

See CONTRIBUTING.md for the workflow (issues → TRD → feature branch → PR).

Questions, feedback, or just want to say hi?
Open an issue or reach out via email: andrew@greatstrength.me

Let's build software that feels as good as it works.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

tiferet-2.0.0b2.tar.gz (72.0 kB view details)

Uploaded Source

Built Distribution

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

tiferet-2.0.0b2-py3-none-any.whl (104.6 kB view details)

Uploaded Python 3

File details

Details for the file tiferet-2.0.0b2.tar.gz.

File metadata

  • Download URL: tiferet-2.0.0b2.tar.gz
  • Upload date:
  • Size: 72.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tiferet-2.0.0b2.tar.gz
Algorithm Hash digest
SHA256 be5285a4ae4d20bc84be14e98f8ad5ec860129549c4c82ad67e47b1417c00105
MD5 cde01a61ea0f49eac5cfcb36b5ff927d
BLAKE2b-256 f5e00d2b013bf3b8c999a6592ff727acac6bd404cf60c35c66aeb47d9bfb0666

See more details on using hashes here.

Provenance

The following attestation bundles were made for tiferet-2.0.0b2.tar.gz:

Publisher: python-publish.yml on greatstrength/tiferet

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tiferet-2.0.0b2-py3-none-any.whl.

File metadata

  • Download URL: tiferet-2.0.0b2-py3-none-any.whl
  • Upload date:
  • Size: 104.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tiferet-2.0.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 f38d506b9744c9151019e1017d6d38524658a995bf0e050ffa8119141b3e8683
MD5 28bc0a0d9374b7eb67b468e56980eb6f
BLAKE2b-256 6f9d4592a357408db6b835df2a118d51986e7e1587333bd63ef2d5d2b9511e56

See more details on using hashes here.

Provenance

The following attestation bundles were made for tiferet-2.0.0b2-py3-none-any.whl:

Publisher: python-publish.yml on greatstrength/tiferet

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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