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.4.tar.gz (124.3 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.4-py3-none-any.whl (50.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: protostar-0.7.4.tar.gz
  • Upload date:
  • Size: 124.3 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.4.tar.gz
Algorithm Hash digest
SHA256 f8f2e5dd3b5ea22718d33e5a57d82435020e26d316f0d7eb42763869017e3beb
MD5 1dfce63878c6287c23af6a7dbf200668
BLAKE2b-256 92667833217a8614659c23449943a00d7516c7e92a7ebff50ce4475119129e3a

See more details on using hashes here.

Provenance

The following attestation bundles were made for protostar-0.7.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: protostar-0.7.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 61e3c29a6e66b5ee9176efad39dc60270c6264f87d157ab10693ad53b4c6b845
MD5 5bb1da079690e3a1546b5fcf2312b54a
BLAKE2b-256 e24b5d76b95c9b87ff6b84220ace2dc0daec3dd6c7a8eac76521f79f8a59e60c

See more details on using hashes here.

Provenance

The following attestation bundles were made for protostar-0.7.4-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