Skip to main content

Transaction tracking, deduplication, retry handling and audit trail for Python-based RPA and backend automation.

Project description

rpa-tracker

Python PyPI License Status

rpa-tracker is a lightweight Python library for transaction tracking, retry control, deduplication and auditability in RPA and backend automation workflows.


Install

pip install rpa-tracker

Why rpa-tracker?

It is designed for long-running, multi-platform processes where:

  • a single transaction touches multiple systems
  • retries must be controlled and observable
  • business errors must stop the flow
  • system errors may be retried
  • full traceability is required for operations and reporting

This library focuses on governance and execution control, not orchestration engines or schedulers.


Key Concepts

Transaction

A logical unit of work identified by a UUID.

Platform

A system involved in the transaction flow, defined in a central catalog with execution order and retry policy.

Stage

The execution of a transaction in a specific platform.

Execution Result

Derived from an error code:

  • 0 → success
  • < 0 → system error (retryable)
  • > 0 → business error (non-retryable)

Core Features

  • Transaction lifecycle tracking
  • Platform-based execution flow
  • Configurable retry policies per platform
  • Unlimited or limited retries
  • Business vs system error handling
  • Deduplication strategies per process
  • Full audit trail (events, attempts, timestamps)
  • SQLAlchemy-based persistence
  • Reporting-ready data model
  • Designed for batch / hourly RPA execution

Architecture Overview

Process / Job
   |
   |-- DeduplicationStrategy (process-specific)
   |-- PlatformRegistry (catalog)
   |-- RetryPolicy (per platform)
   |
   |-- SqlTransactionTracker
           |
           |-- TxProcess   (transaction)
           |-- TxStage     (platform execution)
           |-- TxEvent     (attempts / audit)

The tracker does not decide business rules.
It only applies the configuration provided by the process.


Minimal Example

from rpa_tracker.catalog.platform import PlatformDefinition
from rpa_tracker.catalog.registry import PlatformRegistry
from rpa_tracker.retry.policy import RetryPolicy
from rpa_tracker.tracking.sql_tracker import SqlTransactionTracker

PlatformRegistry.register(
    PlatformDefinition(code="A", retry_policy=RetryPolicy(max_attempts=1), order=1)
)

tracker = SqlTransactionTracker(session)
uuid, is_new = tracker.start_or_resume("MY_PROCESS", payload)

Retry Behavior

  • Business errors (error_code > 0)
    → transaction is REJECTED and stops

  • System errors (error_code < 0)
    → stage is TERMINATED and retried based on policy

  • Retry limits are platform-specific

  • Unlimited retries are supported


Reporting

from rpa_tracker.reporting.transaction_report_repository import (
    TransactionReportRepository
)

repo = TransactionReportRepository(session)
repo.summary_by_state(start, end)

Design Principles

  • Explicit configuration over magic
  • Process-driven policies
  • No orchestration assumptions
  • SQL-first, audit-friendly
  • Conservative, production-oriented design

When to Use

  • Multi-platform RPA processes
  • Hourly or batch execution models
  • Strong audit and traceability requirements
  • Controlled retries and failure handling

When NOT to Use

  • Real-time streaming systems
  • Stateless microservices
  • One-step scripts

License

GNU General Public License v3 (GPLv3)


Author

Jonathan Bolo
Senior Software & RPA Architect


JBoloDev

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

rpa_tracker-0.0.7.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

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

rpa_tracker-0.0.7-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file rpa_tracker-0.0.7.tar.gz.

File metadata

  • Download URL: rpa_tracker-0.0.7.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rpa_tracker-0.0.7.tar.gz
Algorithm Hash digest
SHA256 30cf20c68a5c7c1532ac456892cd489463bea150dd3347722011359dee1d8a66
MD5 b1dd5d1b65757855b146c649ef2a2b4e
BLAKE2b-256 6f7acf3d1861fed92515ef5c8d19faf0c2fb3f4bafd546065709bea2e0f6331b

See more details on using hashes here.

Provenance

The following attestation bundles were made for rpa_tracker-0.0.7.tar.gz:

Publisher: publish.yml on jbolo/rpa-tracker

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

File details

Details for the file rpa_tracker-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: rpa_tracker-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 24.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rpa_tracker-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 99e8f47f83a9168e51907de5f26865ee8f6353dc7bae5c996e8cd7a6eb83c5f9
MD5 571099364c67dea4206a6466641452e8
BLAKE2b-256 1f0c27e12b3c0dc70044f891aed54bf783e8911bceb6a4d1f93e82caaff2e024

See more details on using hashes here.

Provenance

The following attestation bundles were made for rpa_tracker-0.0.7-py3-none-any.whl:

Publisher: publish.yml on jbolo/rpa-tracker

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