Skip to main content

Daktari is a tool to help the initial setup and ongoing maintenance of developer environments. It runs a series of checks (for example, that required software is installed) and provides suggestions on how to fix the issue if the check fails.

Configuration

In the root of the project repository, create a .daktari.py configuration file listing the checks you want run. For example,

from daktari.checks.git import *

version = "0.0.363"
title = "My Project"

checks = [
    GitInstalled(),
    GitLfsInstalled(),
    GitLfsSetUpForUser(),
    GitLfsFilesDownloaded(),
    GitCryptInstalled(),
]

Then run daktari to diagnose your environment:

$ daktari
✅ [git.installed] Git is installed
✅ [git.lfs.installed] Git LFS is installed
✅ [git.lfs.setUpForUser] Git LFS is set up for the current user
✅ [git.lfs.filesDownloaded] Git LFS files have been downloaded
❌ [git.crypt.installed] git-crypt is not installed
┌─💡 Suggestion ─────────┐
│ brew install git-crypt │
└────────────────────────┘

Custom Check

You can write a custom check as a Python class within .daktari.py, and include it in your list of checks. Example of a check implementation:

class GitCryptInstalled(Check):
    name = "git.crypt.installed"
    depends_on = [GitInstalled]

    suggestions = {
        OS.OS_X: "<cmd>brew install git-crypt</cmd>",
        OS.UBUNTU: "<cmd>sudo apt install git-crypt</cmd>",
        OS.GENERIC: "Install git-crypt (https://www.agwa.name/projects/git-crypt/)",
    }

    def check(self):
        return self.verify(can_run_command("git crypt version"), "git-crypt is <not/> installed")

Testing Daktari changes locally

Having cloned the repo into ~/daktari, you can make use of PYTHONPATH to run daktari using your local changes.

To do this, navigate into a directory that has a .daktari.py (e.g. another repository intending to use your change) and run:

PYTHONPATH=~/daktari python3 -m daktari --debug

Release instructions

Daktari is continuously deployed via a github action - see release.yaml. In case of a need to manually release, the steps are:

bumpversion --verbose patch
python -m build
twine check dist/*
twine upload dist/*

Metadata

Release files for daktari 0.0.363

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

Source distribution (sdist)

Source distribution for daktari 0.0.363
File Size Uploaded Provenance Actions
daktari-0.0.363.tar.gz 48.6 kB Without provenance Details for daktari-0.0.363.tar.gz

Built distribution (wheel)

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

Total release size: 117.6 kB

Release files / daktari-0.0.363.tar.gz

Download URL daktari-0.0.363.tar.gz
Size 48.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9503c55fbd2c23a25ab98fc4070141fe547ec5eedc46eee034ba372a4702e1b0
BLAKE2b-256 checksum
How to use checksums
01dba15d865b18aa25ea3d55714a2924627c03b5885bb0285dfd93eec3dff31f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / daktari-0.0.363-py3-none-any.whl

Download URL daktari-0.0.363-py3-none-any.whl
Size 69.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f8551f2dd3c9ac612df72a7268d5d829bf3a5f8f907f3c2a32ed6b2abcc38403
BLAKE2b-256 checksum
How to use checksums
d4aeb4966136156b8404ae3261a338cec90ccfd8616ccec2afb72b7a944d759d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for daktari 0.0.363

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.

Release history Release notifications | RSS feed

This release

0.0.363 This release

2 release files No provenance

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