Skip to main content

Smart reproducible analytical pipeline visualisation.

Project description

smartrappy

Smart reproducible analytical pipeline inspection.

SVG logo of smartrappy

PyPI Status Python Version License Ruff pre-commit Tests Codecov Read the documentation at https://aeturrell.github.io/smartrappy/ Downloads

Linux macOS Windows Source

Introduction

What is smartrappy for?

smartrappy is designed to help you understand the dependencies in a project, especially in a context where there may be a lot of legacy code that resembles tangled spaghetti.

What does this package do?

smartrappy analyses a Python project and infers the directed acyclic graph (DAG) of the code and data dependencies, including the last time any data were refreshed and whether the data exist at all on disk. It is not perfect, and will miss a lot in complex projects: but for simple projects using, say, pd.read_csv(), it does a good job of inferring the steps. It can also infer writing to and from most databases. The inferred DAG is then visualised, and there are several options for doing that—the default being to produce a visualisation in the terminal.

Quickstart

To use smartrappy as a command-line tool, install it with uv tool install smartrappy and run it with

uvx smartrappy /path/to/your/project

Or to use it within a Python script:

from smartrappy import analyse_project
from smartrappy.reporters import ConsoleReporter


model = analyse_project("/path/to/your/project")
reporter = ConsoleReporter()
reporter.generate_report(model)

Installation

To install smartrappy, you can use pip install smartrappy or uv add smartrappy if you are using Astral's uv. You can also use it as a standalone command-line tool with uv and the uvx command:

uvx smartrappy path/to/your/project

Documentation

You can find the full documentation for smartrappy at https://aeturrell.github.io/smartrappy/.

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

smartrappy-0.0.9.tar.gz (29.4 kB view details)

Uploaded Source

Built Distribution

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

smartrappy-0.0.9-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

Details for the file smartrappy-0.0.9.tar.gz.

File metadata

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

File hashes

Hashes for smartrappy-0.0.9.tar.gz
Algorithm Hash digest
SHA256 0ed518ad3dc63c4462d2c373b5896a028d1a4bc49d881d25617ec75c2e25afc9
MD5 4ad91f23c4e91bd4b9f0ab913ef6f6d1
BLAKE2b-256 b3fcf226792b76089fa92b9ce50f5915642ca2d261a8b02bb3f71431810589a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for smartrappy-0.0.9.tar.gz:

Publisher: release.yml on aeturrell/smartrappy

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

File details

Details for the file smartrappy-0.0.9-py3-none-any.whl.

File metadata

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

File hashes

Hashes for smartrappy-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 dba23dfba9af410eb377c8412460ff20aa071e549aa26419ad569b3435dfc6df
MD5 994b613426a625ee838019e47c14b5a3
BLAKE2b-256 3a25c9c58b65a027ebd4196cd3047caa5c6f0287ea4fbc0162378aa18264c46a

See more details on using hashes here.

Provenance

The following attestation bundles were made for smartrappy-0.0.9-py3-none-any.whl:

Publisher: release.yml on aeturrell/smartrappy

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