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.

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.3.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.3.0
File Size Uploaded Provenance Actions
artifactum-0.3.0.tar.gz 47.6 kB With provenance Details for artifactum-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 83.6 kB

Release files / artifactum-0.3.0.tar.gz

Download URL artifactum-0.3.0.tar.gz
Size 47.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1aea4165aee0b71fa243c558b438d7b5f28a93c88f1c0933bc34768822391f7d
BLAKE2b-256 checksum
How to use checksums
b69a7b1f64c6e27110c5137bae11f54862aaa6ace8d6a0d49215ac99021554b2
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.3.0-py3-none-any.whl

Download URL artifactum-0.3.0-py3-none-any.whl
Size 36.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
462d6350325747968df596306ef8c09a2565c6c9b57ce21bbb573b1822db52e1
BLAKE2b-256 checksum
How to use checksums
0506101a5b399ebf617e84c6b36fd5464cb2e7285ad5c030718c70cafcc98caf
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.3.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.3.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 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