Skip to content

AgentNero-ch/devkit-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevKit CLI

Developer productivity toolkit - a collection of useful command-line tools for everyday tasks.

Python 3.8+ License: MIT

Features

  • File Organizer - Organize files by type, date, or get statistics
  • Password Generator - Generate secure passwords with strength checking
  • Expense Tracker - Track expenses with categories and reports
  • Format Converter - Convert between JSON, YAML, TOML, CSV
  • Snippet Manager - Save, search, and manage code snippets

Installation

# Clone the repository
git clone https://github.com/username/devkit-cli.git
cd devkit-cli

# Install dependencies
pip install -r requirements.txt

# Install the package
pip install -e .

Usage

File Organizer

# Organize files by type (Images, Documents, Videos, etc.)
devkit organize by-type ~/Downloads
devkit organize by-type ~/Downloads --move  # Move instead of copy

# Organize files by date (YYYY/MM structure)
devkit organize by-date ~/Documents

# Show file statistics
devkit organize stats ~/Downloads

Password Generator

# Generate a password (default: 16 chars, all character types)
devkit password generate

# Generate with custom options
devkit password generate -l 24 -n 5 --show-entropy

# Generate without symbols
devkit password generate --no-symbols

# Check password strength
devkit password check "MyP@ssw0rd!"

Expense Tracker

# Add an expense
devkit expense add 25.50 "Lunch" -c "Food"
devkit expense add 1200 "Rent" -c "Housing" --currency EUR

# List recent expenses
devkit expense list
devkit expense list -c "Food" --last 20

# Show summary by category
devkit expense summary --period month

# Export to CSV
devkit expense export --format csv -o my_expenses.csv

# Delete an expense
devkit expense delete 5

Format Converter

# Convert between formats
devkit convert file config.yaml config.json
devkit convert file data.json data.csv
devkit convert file settings.toml settings.yaml

# Preview a file with syntax highlighting
devkit convert preview config.json

# Validate a file
devkit convert validate data.yaml

# Show file info
devkit convert info config.json

Code Snippet Manager

# Add a snippet
devkit snippet add "Quick Sort" -c "def quicksort(arr): ..." -l python -t "sort,algorithm"

# Add from file
devkit snippet add "React Hook" -f useAuth.ts -t "react,hooks"

# List all snippets
devkit snippet list
devkit snippet list -t "react" -l "javascript"

# Show a snippet with syntax highlighting
devkit snippet show 1

# Copy to clipboard
devkit snippet copy 1

# Search snippets
devkit snippet search "sort"
devkit snippet search "react" --code  # Search in code too

# List all tags
devkit snippet tags

# List all languages
devkit snippet languages

Data Storage

  • Expenses: ~/.devkit/expenses.json
  • Snippets: ~/.devkit/snippets.json

Examples

Organize Downloads Folder

# Preview what will be organized
devkit organize stats ~/Downloads

# Organize by file type
devkit organize by-type ~/Downloads --move

Generate Strong Passwords

# Generate 5 passwords with 24 characters
devkit password generate -l 24 -n 5 --show-entropy

# Check if your current password is strong
devkit password check "hunter2"

Track Monthly Expenses

# Add expenses throughout the month
devkit expense add 45.00 "Groceries" -c "Food"
devkit expense add 12.50 "Netflix" -c "Entertainment"
devkit expense add 60.00 "Electric bill" -c "Utilities"

# See monthly summary
devkit expense summary --period month

# Export for spreadsheet
devkit expense export --format csv

Manage Code Snippets

# Save useful snippets
devkit snippet add "Python HTTP Server" -c "python3 -m http.server 8000" -l bash -t "python,server"
devkit snippet add "Git Undo" -c "git reset --soft HEAD~1" -l bash -t "git,undo"

# Find snippets later
devkit snippet search "server"
devkit snippet copy 1  # Copy to clipboard

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

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

Acknowledgments

  • Built with Click for CLI framework
  • Beautiful terminal output with Rich
  • YAML support with PyYAML

About

Developer productivity toolkit - file organizer, password generator, expense tracker, converter, and snippet manager

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages