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.

Moving your storage

atfm storage move copies files to a new location, checks each copy against its hash, and only then points their records there. IDs and lineage don't change, and the old copies are left in place for you to delete. If a move stops part way, nothing is repointed: fix the problem and run it again.

When you bring in your team, move what you've published to shared storage:

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

That moves only your own files. To move a whole team, a team admin moves everything the team has published (from a machine that can reach both locations), which also makes it the team's storage, and then each teammate points their own setup at it. Their files are already there, so nothing is copied twice:

atfm storage move gs://my-team-bucket/atfm --team   # the admin, once
atfm storage move gs://my-team-bucket/atfm          # then each teammate

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.

Each publish prints what happened on stderr: artifactum: Published features.parquet as F3TR8QX1, or, when identical content is already in the registry, that it was found and nothing was uploaded.

To track versions of something, give it a name. Artifacts published under the same name are versions of each other, and anything built from an older version is flagged as stale. Without a name there are no versions, even if two files share a file name.

atfm.publish("model.pkl", name="churn-model")

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.5.0

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.5.0
File Size Uploaded Provenance Actions
artifactum-0.5.0.tar.gz 49.9 kB With provenance Details for artifactum-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 87.2 kB

Release files / artifactum-0.5.0.tar.gz

Download URL artifactum-0.5.0.tar.gz
Size 49.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1a6763233c59ab98268cd8061fa3e25ff59497927918222c9ed419384ad1680b
BLAKE2b-256 checksum
How to use checksums
10939b63baa9e1b5aef49c8472d83184b964325f1c0c35e61eda7e0c263fc021
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 14, 2026.

Transparency log

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

Download URL artifactum-0.5.0-py3-none-any.whl
Size 37.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
efcceacb8a1b74a1e585d07e1e15ad17d1f20cecba865bf177fe8ceda3c97205
BLAKE2b-256 checksum
How to use checksums
77b8c8eab8a2896060bb0d9d0a9829ecf402afd387909554d2285afc715a77b0
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 14, 2026.

Transparency log

Security for artifactum 0.5.0

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.5.0.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 14, 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