Skip to main content

Artifactum · atfm

PyPI Python Downloads Tests Coverage License: MIT

atfm.io · pip install artifactum · import artifactum as atfm · the atfm command

A registry and lineage tracker for the files data teams produce: datasets, models, results and figures.

Every file you publish gets a permanent ID, and Artifactum records where it came from: the artifacts your code read, the git commit and code that ran, and who published it. Files stay in storage your team controls, a shared directory or a Google Cloud Storage bucket; Artifactum stores only metadata.

Install

pip install artifactum
atfm init

The package is artifactum. pip install atfm works too: atfm is a placeholder we publish so nobody else can take the name, and it only installs artifactum.

init asks for your API token (from Settings at atfm.io) and where to store files. Or give them and skip the questions:

atfm init --token atfm_... --storage ~/atfm-files

Storage

Artifactum never holds your files. Each one is copied to your team's storage when it's published and fetched from there when someone reads it, then cached locally.

Storage Location to give init Install
A shared directory (lab server, cluster, network drive) /groups/lab/atfm pip install artifactum
Google Cloud Storage gs://my-team-bucket/atfm pip install 'artifactum[gcs]'

A shared directory needs no cloud account: everyone on the team just needs to reach it at the same path, since the registry records where each file is. Files are stored by content, under <location>/<hash[:2]>/<hash>/<filename>, and never overwritten.

For Google Cloud Storage, each person signs in once with gcloud auth application-default login and needs read and write access to the bucket.

To try Artifactum on your own, a folder like ~/atfm-files is enough. When you bring in your team, move what you've published to shared storage; the files are copied, checked against their hashes and their records updated, and the old copies are left in place:

atfm storage move /groups/lab/atfm      # or gs://my-team-bucket/atfm

Use

import artifactum as atfm
import pandas as pd

events = pd.read_parquet(atfm.artifact("C4LN9E2A"))  # fetched and cached locally
features = build_features(events)
features.to_parquet("features.parquet")

atfm.publish(
    "features.parquet",
    description="Feature matrix, nulls dropped",
    tags=["features"],
)
# C4LN9E2A is recorded as the parent automatically, along with the git commit and code.

From the shell (bash, R, Nextflow, Snakemake, ...):

eval "$(atfm run start 'align reads')"      # lineage is recorded across the commands below
bwa mem "$(atfm get GRCH38RF)" "$(atfm get FQ7R1A2B)" > aligned.sam
atfm publish aligned.bam -d "Reads aligned with BWA-MEM" --code align.sh
eval "$(atfm run end)"

atfm get prints a local path and atfm publish prints the new ID, so both compose with other commands. Use --parent ID to set parents explicitly.

Add --json to get, publish, describe, log or run status to get one JSON object on stdout instead, for tools that parse rather than split strings. Messages and errors stay on stderr, and a failure exits non-zero.

$ atfm get C4LN9E2A --json
{"id": "C4LN9E2A", "path": "/home/me/.artifactum/cache/3f9a..."}
$ atfm publish model.rds -p C4LN9E2A --json
{"id": "M0DL3V3X", "file": "/home/me/project/model.rds", "parents": ["C4LN9E2A"], "run_id": null}

From R, call the command and read its JSON with jsonlite:

atfm <- function(...) {
  out <- system2("atfm", c(..., "--json"), stdout = TRUE)
  if (!is.null(attr(out, "status"))) stop("atfm failed")
  jsonlite::fromJSON(paste(out, collapse = ""))
}

counts <- read.csv(atfm("get", "C4LN9E2A")$path)
saveRDS(fit, "model.rds")
atfm("publish", "model.rds", "-p", "C4LN9E2A", "-d", shQuote("GLM on cleaned counts"))$id

There's no R package yet. If you'd like one, email hello@atfm.io.

Browsing from the terminal:

atfm log K9PWQM7T      # upstream lineage
atfm browse            # interactive browser (preview: recent artifacts, no search yet)

License

MIT. See LICENSE.

Metadata

Release files for artifactum 0.2.4

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

Source distribution (sdist)

Source distribution for artifactum 0.2.4
File Size Uploaded Provenance Actions
artifactum-0.2.4.tar.gz 46.7 kB With provenance Details for artifactum-0.2.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for artifactum 0.2.4
File Interpreter ABI Platform Actions
artifactum-0.2.4-py3-none-any.whl Python 3 none any Details for artifactum-0.2.4-py3-none-any.whl

Total release size: 82.2 kB

Release files / artifactum-0.2.4.tar.gz

Download URL artifactum-0.2.4.tar.gz
Size 46.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1cb4ed2a3e6e4341b7dc4fe84c3963235c1fe3de24127e38fac64dd8537a5281
BLAKE2b-256 checksum
How to use checksums
9a35aa3a4c283a5aab52c76c0928f63402483b40b5bca2a9d85d57b0a8842e5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / artifactum-0.2.4-py3-none-any.whl

Download URL artifactum-0.2.4-py3-none-any.whl
Size 35.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
830c7ce41bfc1081ee239f15f2d74dcdbd313f174afa320e693c9e7c888c8870
BLAKE2b-256 checksum
How to use checksums
02b43fccca30c96c1c6c03e14e302c9dfc5e7dc80c3871762d8dd8ffe2e714c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for artifactum 0.2.4

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for artifactum-0.2.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

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