Skip to main content

Artifactum · atfm

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), your server URL (https://atfm.io unless your team runs its own) 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.1

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.1
File Size Uploaded Provenance Actions
artifactum-0.2.1.tar.gz 44.7 kB With provenance Details for artifactum-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 79.7 kB

Release files / artifactum-0.2.1.tar.gz

Download URL artifactum-0.2.1.tar.gz
Size 44.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7df7c3b84e21bc38c6ebad528ffea97eeabc16212e86ac9ec8276f109c365cd0
BLAKE2b-256 checksum
How to use checksums
86d4cc43533575402e0823ddbc966b6f1cb01890194b7f6f4d271fc3e0a0b222
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.1-py3-none-any.whl

Download URL artifactum-0.2.1-py3-none-any.whl
Size 35.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03ab61469ed165b5478685c99eb331f5f0b32e88487bc9f13f31f2cc1aa42eab
BLAKE2b-256 checksum
How to use checksums
f84e9362ed5f4de74dca7589f7ce862e9dae46aa42b749c51824c98c196fafa9
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.1

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