Skip to content

Conversation

@tsmathis
Copy link
Collaborator

@tsmathis tsmathis commented Dec 9, 2025

@esoteric-ephemera, should we have a cli?

Needs input validation and guardrails to prevent destructive behavior, but basic interactive use for scaffolding:

lux) ~/dev/MPContribs/mpcontribs-lux lux-cli > lux project scaffold
Name space for user project: tsmathis
Structure of user project [directory, module]: directory
Project names to scaffold in user project name space: projA projB
Include analysis module? [y/N]: N
Include pipeline module? [y/N]: y
Include project README.md? [y/N]: y
Include file for extra python requirements/libraries? [y/N]: N
The following project scaffold will be created in 'mpcontribs-lux.mpcontribs.projects':
 tsmathis
├──  projA
│   ├──  pipelines
│   │   ├── __init__.py
│   │   └── pipeline_1.py
│   ├──  schemas
│   │   ├── __init__.py
│   │   └── schema_1.py
│   ├── __init__.py
│   └── README.md
└──  projB
    ├──  pipelines
    │   ├── __init__.py
    │   └── pipeline_1.py
    ├──  schemas
    │   ├── __init__.py
    │   └── schema_1.py
    ├── __init__.py
    └── README.md
Proceed? y/N [y/N]: y
Project scaffold created at 'mpcontribs-lux.mpcontribs.projects.tsmathis'!

can add other utilities as well

@tsmathis tsmathis changed the base branch from master to schemas December 9, 2025 01:46
@tsmathis
Copy link
Collaborator Author

tsmathis commented Dec 9, 2025

module scaffold structure:

(lux) ~/dev/MPContribs/mpcontribs-lux lux-cli > lux project scaffold --user-space tsmathis --projects projA --projects projB --structure module --include-analysis --include-pipeline
The following project scaffold will be created in 'mpcontribs-lux.mpcontribs.projects':
 tsmathis
├──  projA
│   ├── __init__.py
│   ├── analysis_1.py
│   ├── pip-extra-requirements.txt
│   ├── pipeline_1.py
│   ├── README.md
│   └── schema_1.py
└──  projB
    ├── __init__.py
    ├── analysis_1.py
    ├── pip-extra-requirements.txt
    ├── pipeline_1.py
    ├── README.md
    └── schema_1.py
Proceed? y/N [y/N]: N
Aborted!

@esoteric-ephemera
Copy link
Collaborator

Sure! Either a CLI or a notebook/something for standardizing the structure would be good. Maybe just moving the cli into the lux namespace fully + adding a __main__.py to run the cli?

@tsmathis
Copy link
Collaborator Author

tsmathis commented Dec 9, 2025

Sure! Either a CLI or a notebook/something for standardizing the structure would be good. Maybe just moving the cli into the lux namespace fully + adding a __main__.py to run the cli?

Sure, can do 👍

Base automatically changed from schemas to master December 9, 2025 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants