Skip to content

Feat cli implementation 60#112

Open
mariam851 wants to merge 2 commits intorasbt:masterfrom
mariam851:feat-cli-implementation-60
Open

Feat cli implementation 60#112
mariam851 wants to merge 2 commits intorasbt:masterfrom
mariam851:feat-cli-implementation-60

Conversation

@mariam851
Copy link
Contributor

Hi @rasbt,

This PR introduces a Command Line Interface (CLI) for watermark, as discussed in issue #60. This enables the tool to be used in non-Python kernels (like R) or directly from the terminal via system("watermark") or shell commands.

Key Implementation Details:

Zero Dependencies: I chose to use the built-in argparse library instead of external tools like click. This keeps the package lightweight and avoids adding new dependencies, following your preference mentioned in the issue comments.

Entry Point: Added console_scripts to setup.py so that users can run watermark globally after installation.

Feature Parity: The CLI currently supports the most used flags:

-a / --author (Handles multi-word names with spaces/quotes).

-v / --python (Python version).

-p / --packages (Comma-separated package versions).

Screenshot (18)

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.

1 participant