commit
a5047a552c
|
|
@ -0,0 +1,5 @@
|
|||
# Environment Variables Example
|
||||
# Copy this file to .env and fill in your values
|
||||
|
||||
# Example:
|
||||
# API_KEY=your_api_key_here
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
# Metadata Scrubber Tool
|
||||
|
||||
A tool for scrubbing metadata from files.
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
uv pip install -r requirements.txt
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
python -m src.main
|
||||
```
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
container_name: metadata-scrubber
|
||||
volumes:
|
||||
- .:/app
|
||||
env_file:
|
||||
- .env
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
# Commands module
|
||||
|
|
@ -0,0 +1 @@
|
|||
# Utility functions for commands
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
import typer
|
||||
from rich.console import Console
|
||||
from rich.panel import Panel
|
||||
|
||||
# Initialize the app and the console
|
||||
app = typer.Typer()
|
||||
console = Console()
|
||||
|
||||
|
||||
@app.command()
|
||||
def hello(name: str, formal: bool = False):
|
||||
"""
|
||||
Say hello to a user.
|
||||
If --formal is used, it greets more politely.
|
||||
"""
|
||||
if formal:
|
||||
message = (
|
||||
f"Good day to you, [bold magenta]{name}[/bold magenta]. It is a pleasure."
|
||||
)
|
||||
color = "green"
|
||||
else:
|
||||
message = f"Yo [bold cyan]{name}[/bold cyan]! What's up?"
|
||||
color = "yellow"
|
||||
|
||||
# Use Rich to print a pretty panel instead of a boring print()
|
||||
console.print(Panel(message, title="Greeting System", style=color))
|
||||
|
||||
|
||||
@app.command()
|
||||
def goodbye(name: str):
|
||||
"""
|
||||
Say goodbye.
|
||||
"""
|
||||
console.print(f"[red]Goodbye, {name}![/red] 👋")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app()
|
||||
Loading…
Reference in New Issue