Skip to content
andrewthomasleePublic

About

A collection of Python scripts available with Nix

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

moscripts

ci release docs license built with Nix

Small Python CLIs packaged with Nix: one uv workspace built by uv2nix into one package. Docs and slides: https://andrewthomaslee.github.io/moscripts/.

Command Does
motmp create and edit temporary marimo notebooks with a managed venv
mpv_playlists play a playlist from ~/Music/Playlists with mpv
password_generator secure, customizable passwords
human_timestamp a human-readable timestamp in any time zone

Use

Needs Nix with flakes enabled.

nix run github:andrewthomaslee/moscripts#password_generator -- --help
nix profile add github:andrewthomaslee/moscripts   # all four on PATH

In a flake that follows external-systems/pkgs:

inputs.moscripts = {
  url = "github:andrewthomaslee/moscripts";
  inputs.org-pkgs.follows = "org-pkgs";
};

Develop

Needs Nix and devenv.

devenv allow     # editable venv, auto-activates on cd (after `devenv hook`)
fmt              # format and lint
check            # nix flake check: ruff, ty, pytest, uv-lock, docs
docs-build       # static docs to ./result-docs; open index.html from disk
devenv up        # live docs on :8981 and slides on :8982

CI is the external-systems org CI: nix flake check on PRs; on main, the docs deploy to GitHub Pages and a 0.2.<commits> release is tagged. See Development.

License

MIT

About

A collection of Python scripts available with Nix

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages