DAPS
Definitely A Python Shell. A shell written in pure Python.
DAPS is available on PyPI!
pip install daps-pip
Usage
Basic shell commands work as expected, e.g. cd, ls, pipes (|), redirection (>, >>, <, 2>, &>), and background jobs (&).
Built-in commands include:
cd <dir>– Change directory. Runs any registeredon_cdhooks and checks for.dapsrc.clear– Clears the screen (and re-runs the greeter ifcleargreetis enabled).clearhist– Clears shell history. After running this, history won't be recorded again until the shell is restarted.exit– Exits the shell. Prompts for confirmation first ifconfirm_exitis enabled.jobs– Lists background jobs.fg [job_id]– Brings a background job to the foreground.bg [job_id]– Resumes a stopped job in the background.source <file>/. <file>– Runs a.dapsscript inline, so any variables it sets persist in your current shell (unlike a subshell).set/export/unset/readonly/declare– Standard POSIX-style variable builtins. BareVAR=valueassignment is also supported.secretpython– Drops into a live Python REPL inside the running shell process.
Inline interpreters
p!<code>– Runs<code>as Python, directly in the shell's own process (e.g.p!2 + 2).n!<code>– Runs<code>as JavaScript via Node.js (nodemust be installed).
Scripting
DAPS understands three kinds of scripts:
.dapsfiles – Run natively (not shelled out) viasource/.or by executing the file directly. Supportsif/elif/else/end,for <var> in <items>/end,while <cond>/end, andbreak/continue. Conditions are shell commands; exit code0is truthy..sh/.bash/.fish/.zsh/.kshfiles – Shelled out to the matching interpreter.- Shebang scripts – The shebang line decides the interpreter, same as normal Unix behavior.
Modules
Drop a .py file into ~/.config/daps/modules/ and its top-level functions become callable as modulename.function args... from the shell.
Plugins
Drop a .py file into ~/.config/daps/plugins/ defining main(bg, daps) (or the older main(bg)), and it's loaded automatically at startup. Plugins get a daps registry handle to extend the shell:
daps.add_prefix(prefix, handler)– e.g. a customr!for Ruby.daps.add_builtin(name, handler)– register a new flat command.daps.add_alias(name, expansion)– ship a default alias (only applies if the user hasn't already set one).daps.add_completer(fn)– contribute extra tab-completion candidates.daps.on_precmd(fn)/daps.on_postcmd(fn)– hooks that run before/after every command.daps.on_cd(fn)– hook that runs whenever the shell changes directory.daps.on_exit(fn)– hook that runs right before the shell exits.daps.set_prompt_hook(fn)– fully override the prompt text.daps.on(event, fn)/daps.emit(event, **data)– simple pub/sub between plugins.
Plugins can never override core builtins or the p!/n! prefixes.
Per-directory .dapsrc
If a directory contains a .dapsrc file, DAPS will offer to run it (as plain Python, exec'd against the shell's own namespace) whenever you cd into that directory. You must explicitly trust a directory first:
dapsrc.allow [path]– Trust.dapsrcin the given (or current) directory.dapsrc.deny [path]– Revoke trust for a directory.
Configuration
DAPS is configured via ~/.config/daps/config.py, a real Python file — not JSON. It's created automatically on first run with every option commented out. To configure the shell, edit the daps object it defines:
daps = Config()
daps.lock = False # Require PAM password auth on shell start
daps.motd = True # Show the message of the day on startup
daps.aliases = {} # Command aliases, e.g. {"ll": "ls -la"}
daps.devicename = False # Show product name instead of hostname in the prompt
daps.cleargreet = False # Re-run the greeter every time `clear` is run
daps.greeter = None # 'daps' for the built-in sysfetch, or a shell command string, or None
daps.language = None # Force a UI language: en, es, fr, de, ru, ja, pt, zh, it
daps.env = {} # Environment variables set at startup
daps.path = [] # Extra directories prepended to PATH at startup
daps.startup_commands = [] # Commands run once at startup, after the greeter
daps.history_size = 1000 # Max lines kept in ~/.daps.history
daps.prompt_symbols = {"root": "#", "user": "$"}
daps.confirm_exit = False # Ask for confirmation before `exit` closes the shell
daps.show_exec_time = False # Show how long each command took
daps.exec_time_threshold = 1.0 # Only show the timer if the command took at least this long
daps.starship = False # Use Starship for the prompt instead of the built-in one
Note: Built-in commands can't be overridden by aliases or plugin builtins.
greeter
Runs on shell startup. Set to "daps" to use the built-in sysfetch-style system info greeter, a shell command string to run something else (e.g. fastfetch), or None to disable it.
daps.greeter = "daps"
aliases
Simple command aliases:
daps.aliases = {
"ll": "ls -l",
}
cleargreet
Whether the greeter re-runs every time you use clear:
daps.cleargreet = True
devicename
Show the device's product name (e.g. ASUS E410MA) in the prompt instead of the hostname (e.g. fedora):
daps.devicename = True
starship
If you'd rather use Starship for prompt rendering instead of DAPS's built-in prompt (or a plugin's set_prompt_hook):
daps.starship = True
lock
Requires a password (checked via PAM against your system account) before the shell will start:
daps.lock = True
motd
Whether the "message of the day" banner (version, tips) is shown on startup:
daps.motd = False
language
Forces the UI language instead of auto-detecting it from your system locale. Affects things like error messages and sysfetch labels. One of en, es, fr, de, ru, ja, pt, zh, it:
daps.language = "fr"
env
A dict of environment variables to set every time the shell starts, before anything else runs:
daps.env = {
"EDITOR": "nvim",
"PROJECT_ENV": "dev",
}
path
Extra directories to prepend to PATH at startup:
daps.path = ["~/.local/bin", "~/scripts"]
startup_commands
A list of commands run once, in order, right after the greeter finishes. Supports cd (which actually changes the shell's working directory) and otherwise runs each command through the system shell:
daps.startup_commands = [
"cd ~/projects",
"echo Ready to work",
]
history_size
The maximum number of lines kept in ~/.daps.history. Older entries are trimmed on startup:
daps.history_size = 5000
prompt_symbols
The character shown after the username/host in the prompt, depending on whether you're root or a normal user:
daps.prompt_symbols = {"root": "#", "user": "$"}
confirm_exit
If enabled, running exit asks Exit shell? [y/N] before actually closing the shell:
daps.confirm_exit = True
show_exec_time
Prints how long each command took to run, right after it finishes:
daps.show_exec_time = True
exec_time_threshold
Only used when show_exec_time is enabled — the timer is only printed if the command took at least this many seconds:
daps.exec_time_threshold = 0.5
Example of a full config
daps = Config()
daps.lock = False
daps.motd = True
daps.aliases = {"ll": "ls -l"}
daps.devicename = True
daps.cleargreet = True
daps.greeter = "daps"
daps.language = None
daps.env = {"EDITOR": "nvim"}
daps.path = ["~/.local/bin"]
daps.startup_commands = ["cd ~/projects"]
daps.history_size = 5000
daps.prompt_symbols = {"root": "#", "user": "$"}
daps.confirm_exit = True
daps.show_exec_time = True
daps.exec_time_threshold = 0.5
daps.starship = False
More Information
- More features are coming soon!
- DAPS is protected by the GNU license, meaning any contributions or derivatives of the program must be fully open source.
© 2026, Nytrix Labs
Metadata
Release files for daps-testing 1.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| daps_testing-1.1.9.tar.gz | 32.6 kB | Without provenance | Details for daps_testing-1.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| daps_testing-1.1.9-py3-none-any.whl | Python 3 | none | any | Details for daps_testing-1.1.9-py3-none-any.whl |
Total release size: 65.4 kB
Release files / daps_testing-1.1.9.tar.gz
| Download URL | daps_testing-1.1.9.tar.gz |
|---|---|
| Size | 32.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96256e951b2c9e95c3bf8e3a98870241a0fa09d88be71dc870d7a6b70bc7d1ba
|
|
BLAKE2b-256 checksum How to use checksums |
1ccd5b544bb56ce2ad952bfdf268c6df70df597dd8c51150df7e05abe081292e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / daps_testing-1.1.9-py3-none-any.whl
| Download URL | daps_testing-1.1.9-py3-none-any.whl |
|---|---|
| Size | 32.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10070bfa3918a0b9f983185867ecd1dc9c62d076c3987bd05913dfb7d0b85189
|
|
BLAKE2b-256 checksum How to use checksums |
3e9cba475af955e650900c8d210a2373ee04692272b9f26e072f6ca7dffc1dda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for daps-testing 1.1.9
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.