feat: v0.3.0 — full Java framework parity#4
Merged
Conversation
Closes the parity gap with the Java Firefly Framework. Rewrites the transactional engine from scratch to mirror fireflyframework-orchestration, adds 9 new modules + 4 client protocols + 12 third-party adapters + 5 domain validators, and ships professional documentation + tests for every addition. ## Transactional engine (rewrite) - new pyfly.transactional.core foundation: ExecutionContext, RetryPolicy, StepInvoker (retry/backoff/jitter/timeout), TopologyBuilder DAG, BackpressureStrategy (adaptive/batched/circuit-breaker), OrchestrationEvents/Metrics/Tracer, DeadLetterService, RecoveryService, OrchestrationScheduler, OrchestrationValidator, EventGateway, ExecutionReport, InMemoryPersistenceProvider - brand-new pyfly.transactional.workflow: @workflow, @workflow_step, @wait_for_signal, @wait_for_timer, @wait_for_all/@wait_for_any, @child_workflow, @compensation_step, @workflow_query, @scheduled_workflow, WorkflowEngine + SignalService + TimerService + ChildWorkflowService + ContinueAsNewService + WorkflowQueryService + WorkflowBuilder - persistence adapters: Redis, SQLAlchemy, pyfly-cache - REST controllers: list executions, DLQ, workflow start/signal/query - SagaBuilder + TccBuilder + OrchestrationBuilder for programmatic patterns - @scheduled_saga, @scheduled_tcc, @step_event, @tcc_event annotations ## New modules - pyfly.eventsourcing: AggregateRoot, EventStore (in-memory + SQLAlchemy), SnapshotStore, TransactionalOutbox, ProjectionRunner, EventUpcaster, EventSourcedRepository - pyfly.callbacks: outbound HMAC-signed webhooks with retry/tracking - pyfly.webhooks: inbound webhook ingestion with signature validation + idempotency + listener pattern - pyfly.notifications: email/SMS/push port abstraction with adapter registry - pyfly.idp: identity-provider port with internal-DB reference adapter - pyfly.ecm: document storage / metadata / folders / e-signature ports - pyfly.plugins: @plugin / @extension / @extension_point with dependency-ordered lifecycle and ExtensionRegistry - pyfly.rule_engine: YAML DSL, AST evaluator, batch evaluation, in-memory rule-set repository - pyfly.config_server: Spring-Cloud-Config-Server analogue with filesystem + in-memory backends and a thin client - pyfly.starters: enable_core_stack / enable_application_stack / enable_data_stack / enable_domain_stack meta-packages mirroring the Java starter modules ## Adapters (12 new) - IDP: KeycloakIdpAdapter, AwsCognitoIdpAdapter, AzureAdIdpAdapter - ECM storage: AwsS3StorageAdapter, AzureBlobStorageAdapter - ECM e-signature: DocuSignESignatureAdapter, AdobeSignESignatureAdapter, LogaltyESignatureAdapter - Notifications: SendGridEmailProvider, TwilioSmsProvider, FirebasePushProvider, ResendEmailProvider ## Client protocols (4 new) - SoapClient + SoapClientBuilder - GrpcClientBuilder - GraphQLClient + GraphQLClientBuilder - WebSocketClient + WebSocketClientBuilder ## EDA enhancements - EventCircuitBreaker, InMemoryEdaDeadLetterStore, JsonEventSerializer / AvroEventSerializer / ProtobufEventSerializer, HeaderEventFilter / PredicateEventFilter ## Domain validators (16 total) IBAN, BIC, phone, credit card, CVV, currency, amount, account number, tax id, PIN, password strength, date, datetime, national id, sort code, interest rate. ## Numbers - 91 new source files (modules) + 22 new test files; 16 docs - 2732 tests passing (was 681 before this work) - 36 auto-configurations registered - Wheel pyfly-0.3.0a1-py3-none-any.whl builds cleanly and verifies in a fresh Python 3.12 venv 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes the parity gap with the Java Firefly Framework. Rewrites the transactional engine from scratch and adds nine new modules + four client protocols + twelve third-party adapters + five domain validators, with documentation and tests for every addition.
What's new
Transactional engine (rewrite)
pyfly.transactional.core— new shared foundation:ExecutionContext,RetryPolicy,StepInvoker(retry/backoff/jitter/timeout),TopologyBuilderDAG,BackpressureStrategy(adaptive/batched/circuit-breaker),OrchestrationEvents/Metrics/Tracer,DeadLetterService,RecoveryService,OrchestrationScheduler,OrchestrationValidator,EventGateway,ExecutionReport,InMemoryPersistenceProvider.pyfly.transactional.workflow— entirely new pattern:@workflow,@workflow_step,@wait_for_signal,@wait_for_timer,@wait_for_all/@wait_for_any,@child_workflow,@compensation_step,@workflow_query,@scheduled_workflow, plusWorkflowEngine,SignalService,TimerService,ChildWorkflowService,ContinueAsNewService,WorkflowQueryService,WorkflowBuilder.SagaBuilder+TccBuilder+OrchestrationBuilderfor programmatic pattern definition.@scheduled_saga,@scheduled_tcc,@step_event,@tcc_eventannotations.New modules
pyfly.eventsourcing—AggregateRoot,EventStore(in-memory + SQLAlchemy),SnapshotStore,TransactionalOutbox,ProjectionRunner,EventUpcaster,EventSourcedRepository.pyfly.callbacks— outbound HMAC-signed webhooks with retry/tracking.pyfly.webhooks— inbound webhook ingestion with signature validation + idempotency + listener pattern.pyfly.notifications— email/SMS/push port abstraction with provider adapters.pyfly.idp— identity-provider port + Keycloak / AWS Cognito / Azure AD / internal-DB adapters.pyfly.ecm— document storage / metadata / folders / e-signature ports + AWS S3 / Azure Blob / DocuSign / Adobe Sign / Logalty adapters.pyfly.plugins—@plugin/@extension/@extension_pointwith dependency-ordered lifecycle.pyfly.rule_engine— YAML DSL, AST evaluator, batch evaluation, repository.pyfly.config_server— Spring-Cloud-Config-Server analogue + client.pyfly.starters—enable_core_stack/enable_application_stack/enable_data_stack/enable_domain_stackmeta-packages.Client protocols (4 new)
SoapClient+SoapClientBuilderGrpcClientBuilderGraphQLClient+GraphQLClientBuilderWebSocketClient+WebSocketClientBuilderEDA enhancements
EventCircuitBreaker,InMemoryEdaDeadLetterStore, JSON/Avro/Protobuf serializers, header + predicate event filters.Domain validators (16 total)
IBAN, BIC, phone, credit card, CVV, currency, amount, account number, tax id, PIN, password strength, date, datetime, national id, sort code, interest rate.
Numbers
pyfly-0.3.0a1-py3-none-any.whlbuilds cleanly and verifies in a fresh Python 3.12 venvTest plan
uv pip install -e ".[full]"thenpytest --ignore=tests/data --ignore=tests/cli/test_installer.py— 2732 passinguv build— wheel + sdist build cleanlytests/test_hexagonal.pyvendor-isolation rules updated for new adapter pathstests/config/test_auto.pyupdated to expect 36 auto-configurations🤖 Generated with Claude Code