Skip to main content

High-velocity, zero-friction environment scaffolding.

Project description

Pulsar demo

A modular CLI tool for high-velocity environment scaffolding.

PyPI Version CI Release Codecov Python Documentation License

Setting up a new project often requires the same manual steps: configuring linters, writing .gitignore and .dockerignore files, setting up virtual environments, and linking IDEs. Protostar automates this boilerplate so you can skip the setup and get straight to writing code.


Protostar demo

📖 Official Documentation

Ready to dive deeper? The README only scratches the surface.

Head over to the Official Documentation for:

  • Command Reference: Full flags and capabilities for init and generate.
  • Domain Presets: Matrices for Scientific, Astrophysics, ML, DSP, and Embedded workflows.
  • Configuration & Shell Autocomplete: Setting up global defaults, CLI autocompletion, and advanced AST overrides.
  • Architecture Mechanics: Deep dives into the Orchestrator, Executor, and Manifest lifecycle.

💡 Design Philosophy

Protostar is built to save you time and stay out of your way. It adheres to a strict separation of concerns to avoid generating bloated artifacts you'll inevitably just delete manually:

  1. init vs. generate: The protostar init command is designed to be run exactly once at the inception of a repository to lay the foundational architecture. The protostar generate command provides discrete, repeatable scaffolding for files you create regularly (like C++ classes or LaTeX reports).

  2. Manifest-First, Side-Effects-Last: Many bootstrapping scripts run a sequence of shell commands and fail unpredictably midway through. Protostar separates state definition from execution. Modules declare their requirements into a centralized EnvironmentManifest. Disk I/O and subprocesses only execute in a single, deterministic phase at the very end.

  3. Fail Loud, Fail Early: Pre-flight checks ensure all system dependencies (like uv, git, cargo, or direnv) are present before any state is mutated. If a check fails, the environment remains completely untouched.

  4. Non-Destructive by Default: Protostar never blindly overwrites your existing work. It dynamically appends to .gitignore files, intelligently merges IDE JSON configurations, uses deterministic AST modification to deep-merge TOML configurations, and safely aborts if generated files already exist.

  5. Actionable Telemetry: When things break, Protostar bubbles up the exact stderr so you know immediately if a network request or dependency resolution failed. For unexpected internal crashes, it automatically generates a URL-encoded GitHub issue containing your system environment vector to eliminate debugging entropy.


⚡️ Performance & Latency Isolation

Protostar is built to be lightweight, so Python's startup overhead never slows down your local development.

We measure initialization latency using two benchmarking approaches:

  1. Fast-Path Execution: Measures the latency of non-interactive commands (e.g., protostar help init).
  2. TUI-Path Execution: Measures the overhead of triggering the interactive questionary wizards.

Our CI pipeline enforces a strict performance budget using hyperfine, gating any PR that introduces significant regressions in either path. We maintain historical tracking to ensure long-term architectural stability rather than chasing absolute CI metrics (which are subject to heavy VM variance).


📦 Installation

macOS (Homebrew)

brew install jacksonfergusondev/tap/protostar

Universal (uv)

For isolated CLI tool installation on any OS, uv is highly recommended:

uv tool install protostar

Universal (pip)

pip install protostar

Note: If you install Protostar into an existing Python environment with pip, it will bring in questionary and prompt_toolkit for the interactive wizard. For guaranteed isolation and to avoid dependency conflicts, prefer uv tool or Homebrew.


🚀 Quick Start

Protostar is designed to be run right after you mkdir a new project.

The Interactive Wizard

If you run protostar without any arguments, it launches an interactive Terminal User Interface (TUI). This wizard allows you to visually select your languages, tools, and presets without needing to memorize CLI flags.

mkdir orbital-mechanics-sim
cd orbital-mechanics-sim
protostar

Headless Scaffolding

For rapid, repeatable initialization, bypass the TUI entirely by providing your desired environment matrix as CLI flags.

protostar init --python --astro --docker --direnv -m --mypy --pytest --pre-commit

Result: Scaffolds a Python environment alongside astrophysics dependencies, generates data/catalogs and data/fits directories, writes optimized .gitignore and .dockerignore files, configures a .envrc file, injects a pragmatic .markdownlint.yaml ruleset, and sets up your testing and static analysis tools with dynamic pre-commit hooks.


🤝 Collaboration

This tool uses a highly decoupled, plugin-style architecture. The CLI parser dynamically evaluates module registries at runtime.

  • To add support for a new language: Subclass BootstrapModule.
  • To add a new dependency pipeline: Subclass PresetModule.

We maintain strict engineering standards to ensure reliability, including 100% type-hinting, isolated pytest environments (mocked subprocesses and tmp_path disk isolation), and automated ruff formatting.

Please see the Documentation for full details on our development setup, architectural rules, and pull request guidelines.

📧 Contact

GitHub LinkedIn Email


📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

protostar-0.7.2.tar.gz (123.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

protostar-0.7.2-py3-none-any.whl (50.8 kB view details)

Uploaded Python 3

File details

Details for the file protostar-0.7.2.tar.gz.

File metadata

  • Download URL: protostar-0.7.2.tar.gz
  • Upload date:
  • Size: 123.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for protostar-0.7.2.tar.gz
Algorithm Hash digest
SHA256 3c78b92feeed6ab62f5b0a924581830892ccabf606aafcb6d191b01610bb4a2b
MD5 c81162a0f47805d4490b5d0c97407371
BLAKE2b-256 a317375fd5b52c2263ab27f532ee66dea2ac8db9ee439c84660c20d539aff9d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for protostar-0.7.2.tar.gz:

Publisher: release.yml on JacksonFergusonDev/protostar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file protostar-0.7.2-py3-none-any.whl.

File metadata

  • Download URL: protostar-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 50.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for protostar-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1a0d58e91122f0152b33b33a568767badde721c6a7258f29f98f6dfb0dbb92e9
MD5 5af7ab3e8b4a3a87294be13bbd223d74
BLAKE2b-256 cae740e6af06a1b3031730fbc539bc2815a65065df0a549ae58da65aebacb9b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for protostar-0.7.2-py3-none-any.whl:

Publisher: release.yml on JacksonFergusonDev/protostar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page