slowcli


Nameslowcli JSON
Version 0.1.7 PyPI version JSON
download
home_pageNone
SummaryA deliberately slow CLI application with complex argument structures and heavy imports
upload_time2025-07-09 06:08:53
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords cli slow argparse argcomplete complex-args
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # SlowCLI

A deliberately slow CLI application with complex argument structures, heavy imports, and nested arguments. This project demonstrates various advanced argparse and argcomplete features while simulating real-world slow startup scenarios.

## Features

- **Complex Argument Structures**: Nested subcommands with multiple levels
- **Dynamic Arguments**: Arguments that change based on context and previous inputs
- **Heavy Imports**: Simulates slow startup with heavy library imports
- **Auto-completion**: Full argcomplete integration for enhanced UX
- **Nested Arguments**: Deep argument hierarchies with conditional logic
- **Multiple Output Formats**: JSON, YAML, CSV, and human-readable output
- **Async Operations**: Simulated async operations for realistic performance

## Installation

### From PyPI (when published)
```bash
pip install slowcli
```

### From Source
```bash
git clone https://github.com/yourusername/slowcli.git
cd slowcli
pip install -e .
```

## Usage

### Basic Commands

```bash
# Main help
slowcli --help

# Data processing with complex options
slowcli data process --input large_file.csv --format json --compress gzip --validate

# Network operations with nested arguments
slowcli network scan --targets 192.168.1.0/24 --ports 80,443,8080 --timeout 30 --retries 3

# Analysis with dynamic arguments
slowcli analyze --algorithm ml --model-type random-forest --features auto --cross-validate
```

### Advanced Features

#### Auto-completion
```bash
# Enable auto-completion for bash
eval "$(register-python-argcomplete slowcli)"

# For zsh
eval "$(register-python-argcomplete slowcli)"
```

#### Complex Nested Commands
```bash
# Deep nested command structure
slowcli data process --input file.csv \
    --transform normalize \
    --filter "column > 100" \
    --output processed.json \
    --format json \
    --compress gzip \
    --validate \
    --log-level debug
```

## Command Structure

```
slowcli
├── data
│   ├── process
│   ├── analyze
│   ├── transform
│   └── export
├── network
│   ├── scan
│   ├── monitor
│   └── test
├── analyze
│   ├── ml
│   ├── stats
│   └── visualize
└── system
    ├── info
    ├── monitor
    └── optimize
```

## Configuration

The application supports configuration through:
- Environment variables
- Configuration files (YAML, TOML, JSON)
- Command-line arguments (highest priority)

## Performance Characteristics

This CLI is intentionally slow to simulate real-world scenarios:
- **Startup Time**: 2-5 seconds (heavy imports)
- **Command Processing**: 1-3 seconds per command
- **Complex Operations**: 5-15 seconds for data processing

## Development

### Setup Development Environment
```bash
git clone https://github.com/yourusername/slowcli.git
cd slowcli
pip install -e ".[dev]"
```

### Running Tests
```bash
pytest tests/
```

### Building for Distribution
```bash
python setup.py sdist bdist_wheel
```

## Contributing

1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Add tests
5. Submit a pull request

## License

MIT License - see LICENSE file for details.

## Why "Slow"?

This CLI is designed to demonstrate:
- Real-world startup delays from heavy imports
- Complex argument parsing scenarios
- Performance optimization techniques
- User experience considerations for slow applications

Perfect for testing and benchmarking CLI performance tools!

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "slowcli",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "Your Name <your.email@example.com>",
    "keywords": "cli, slow, argparse, argcomplete, complex-args",
    "author": null,
    "author_email": "Your Name <your.email@example.com>",
    "download_url": "https://files.pythonhosted.org/packages/cf/92/4d57f2bff191049d8af322d47021ca17058064f600f60feffc724bae2abf/slowcli-0.1.7.tar.gz",
    "platform": null,
    "description": "# SlowCLI\n\nA deliberately slow CLI application with complex argument structures, heavy imports, and nested arguments. This project demonstrates various advanced argparse and argcomplete features while simulating real-world slow startup scenarios.\n\n## Features\n\n- **Complex Argument Structures**: Nested subcommands with multiple levels\n- **Dynamic Arguments**: Arguments that change based on context and previous inputs\n- **Heavy Imports**: Simulates slow startup with heavy library imports\n- **Auto-completion**: Full argcomplete integration for enhanced UX\n- **Nested Arguments**: Deep argument hierarchies with conditional logic\n- **Multiple Output Formats**: JSON, YAML, CSV, and human-readable output\n- **Async Operations**: Simulated async operations for realistic performance\n\n## Installation\n\n### From PyPI (when published)\n```bash\npip install slowcli\n```\n\n### From Source\n```bash\ngit clone https://github.com/yourusername/slowcli.git\ncd slowcli\npip install -e .\n```\n\n## Usage\n\n### Basic Commands\n\n```bash\n# Main help\nslowcli --help\n\n# Data processing with complex options\nslowcli data process --input large_file.csv --format json --compress gzip --validate\n\n# Network operations with nested arguments\nslowcli network scan --targets 192.168.1.0/24 --ports 80,443,8080 --timeout 30 --retries 3\n\n# Analysis with dynamic arguments\nslowcli analyze --algorithm ml --model-type random-forest --features auto --cross-validate\n```\n\n### Advanced Features\n\n#### Auto-completion\n```bash\n# Enable auto-completion for bash\neval \"$(register-python-argcomplete slowcli)\"\n\n# For zsh\neval \"$(register-python-argcomplete slowcli)\"\n```\n\n#### Complex Nested Commands\n```bash\n# Deep nested command structure\nslowcli data process --input file.csv \\\n    --transform normalize \\\n    --filter \"column > 100\" \\\n    --output processed.json \\\n    --format json \\\n    --compress gzip \\\n    --validate \\\n    --log-level debug\n```\n\n## Command Structure\n\n```\nslowcli\n\u251c\u2500\u2500 data\n\u2502   \u251c\u2500\u2500 process\n\u2502   \u251c\u2500\u2500 analyze\n\u2502   \u251c\u2500\u2500 transform\n\u2502   \u2514\u2500\u2500 export\n\u251c\u2500\u2500 network\n\u2502   \u251c\u2500\u2500 scan\n\u2502   \u251c\u2500\u2500 monitor\n\u2502   \u2514\u2500\u2500 test\n\u251c\u2500\u2500 analyze\n\u2502   \u251c\u2500\u2500 ml\n\u2502   \u251c\u2500\u2500 stats\n\u2502   \u2514\u2500\u2500 visualize\n\u2514\u2500\u2500 system\n    \u251c\u2500\u2500 info\n    \u251c\u2500\u2500 monitor\n    \u2514\u2500\u2500 optimize\n```\n\n## Configuration\n\nThe application supports configuration through:\n- Environment variables\n- Configuration files (YAML, TOML, JSON)\n- Command-line arguments (highest priority)\n\n## Performance Characteristics\n\nThis CLI is intentionally slow to simulate real-world scenarios:\n- **Startup Time**: 2-5 seconds (heavy imports)\n- **Command Processing**: 1-3 seconds per command\n- **Complex Operations**: 5-15 seconds for data processing\n\n## Development\n\n### Setup Development Environment\n```bash\ngit clone https://github.com/yourusername/slowcli.git\ncd slowcli\npip install -e \".[dev]\"\n```\n\n### Running Tests\n```bash\npytest tests/\n```\n\n### Building for Distribution\n```bash\npython setup.py sdist bdist_wheel\n```\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Add tests\n5. Submit a pull request\n\n## License\n\nMIT License - see LICENSE file for details.\n\n## Why \"Slow\"?\n\nThis CLI is designed to demonstrate:\n- Real-world startup delays from heavy imports\n- Complex argument parsing scenarios\n- Performance optimization techniques\n- User experience considerations for slow applications\n\nPerfect for testing and benchmarking CLI performance tools!\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A deliberately slow CLI application with complex argument structures and heavy imports",
    "version": "0.1.7",
    "project_urls": {
        "Bug Tracker": "https://github.com/yourusername/slowcli/issues",
        "Documentation": "https://github.com/yourusername/slowcli#readme",
        "Homepage": "https://github.com/yourusername/slowcli",
        "Repository": "https://github.com/yourusername/slowcli"
    },
    "split_keywords": [
        "cli",
        " slow",
        " argparse",
        " argcomplete",
        " complex-args"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "08e629c9b445887e72e4dc8de55f3505117f7193e182d79614316a89dfa1bf9a",
                "md5": "261f709eaa838c43d386f220285f4a63",
                "sha256": "e480735627b1e1bf7f2df7490d02dcaa8fb385a0d790a2885113a173edcf03d9"
            },
            "downloads": -1,
            "filename": "slowcli-0.1.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "261f709eaa838c43d386f220285f4a63",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 36003,
            "upload_time": "2025-07-09T06:08:52",
            "upload_time_iso_8601": "2025-07-09T06:08:52.092781Z",
            "url": "https://files.pythonhosted.org/packages/08/e6/29c9b445887e72e4dc8de55f3505117f7193e182d79614316a89dfa1bf9a/slowcli-0.1.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "cf924d57f2bff191049d8af322d47021ca17058064f600f60feffc724bae2abf",
                "md5": "24ed8b88c9563b78a7ce48ffe3e4383e",
                "sha256": "c8a87c4564e10a61f76359b92b8c00cdbf4dff5760574d829a3478a0f1a53b48"
            },
            "downloads": -1,
            "filename": "slowcli-0.1.7.tar.gz",
            "has_sig": false,
            "md5_digest": "24ed8b88c9563b78a7ce48ffe3e4383e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 32655,
            "upload_time": "2025-07-09T06:08:53",
            "upload_time_iso_8601": "2025-07-09T06:08:53.743830Z",
            "url": "https://files.pythonhosted.org/packages/cf/92/4d57f2bff191049d8af322d47021ca17058064f600f60feffc724bae2abf/slowcli-0.1.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-09 06:08:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "yourusername",
    "github_project": "slowcli",
    "github_not_found": true,
    "lcname": "slowcli"
}
        
Elapsed time: 1.74199s