Skip to main content

Overview

getDataDeps is a script that maps data dependencies across R and python files in your project. The tool currently tracks data dependencies for several import/export commands in R, python, and Stata.

Getting Started

  1. Install with: pip install getDataDeps
  2. On the command line run: getDataDeps . or getDataDeps ./path/to/project

If successful, the script will return output to the terminal as well as two files located in dataDepsOutput within the project directory.

One of the files will be a png file that contains the graph of how your data flows through the project, such as the one below.

Example Graph

Helpful tips

  1. Limit your import / export commands to two lines
    • The script looks for the import/export commands and then looks a maximum of one line below it.
  2. Provide space between your import / export commands and code before or after.
    • For example, if you save your data and put a print statement on the next line the script will see the print line, identify the text in between the quotes and add it to the JSON object.
  3. Use the path in the import / export commands.
    • Example: readRDS("./path/to/data.rds") works but readRDS(variableWithPathToData) will not. The script relies on finding the quotes and then extracting what sits between them.

These tips are mostly due to the limitations of how getDataDeps works. Feedback here is greatly appreciated! If there is a specific way you structure your import / exports that isn't covered let me know.

How it works

The script will iterate through your entire project folder, extract files that end in “.R”, “.py", or ".do", and collect information on data imports and data exports. The JSON object will be saved in the ‘dataDepsOutput’ folder as ‘dataDeps.json’ and the graph as ‘dataDepsGraph.png.

Metadata

Release files for getDataDeps 0.0.22

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

Built distribution (wheel)

Table of built distributions (wheels) for getDataDeps 0.0.22
File Interpreter ABI Platform Actions
getDataDeps-0.0.22-py2.py3-none-any.whl Python 3, Python 2 none any Details for getDataDeps-0.0.22-py2.py3-none-any.whl

Release files / getDataDeps-0.0.22-py2.py3-none-any.whl

Download URL getDataDeps-0.0.22-py2.py3-none-any.whl
Size 6.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
492c5533c3d2e4a507fc3ef57d73b7f009750beff20e33b58c1a8cb8ed232810
BLAKE2b-256 checksum
How to use checksums
93957c4e57db6e0428958938f60b6e2a862625497757a623ffcf1a32e5d74fad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

Security for getDataDeps 0.0.22

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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