pymin


Namepymin JSON
Version 0.0.18 PyPI version JSON
download
home_pageNone
SummaryA minimalist Python CLI tool for development workflow. Named after Taiwanese '歹命' (Pháiⁿ-miā), it turns common development pain points into simple solutions, providing package name validation, virtual environment management, and project information display with minimal configuration.
upload_time2025-02-16 17:26:47
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT
keywords pypi package-validation package-search package-check package-release cli virtual-environment dependency-management development-tools package-management requirements project-management
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PyMin

### pymin (0.0.18)

PyMin embodies Python's minimalist philosophy: a focused tool that does one thing exceptionally well. The name reflects our commitment to minimalism - minimal configuration, minimal complexity, but maximum effectiveness in Python development workflow.

Just as Python emphasizes readability and simplicity, PyMin provides a clean, intuitive interface for package management and development environment setup. No unnecessary features, no complex configurations - just straightforward, reliable development tools.

The name "PyMin" carries dual meanings:

**In English: "Py" (Python) + "Min" (Minimal/Minimalist)**
- Represents our commitment to minimalist design and focused functionality
- Follows Python's "Simple is better than complex" philosophy

**In Taiwanese: "歹命" (Pháiⁿ-miā)**
- A humorous reference to the common challenges in Python development
- Reflects developers' daily struggles with environment setup and package management
- Turns development pain points into a playful and helpful tool

This duality in naming captures both our design philosophy and the real-world problems we're solving, while adding a touch of Taiwanese developer humor to the Python ecosystem.

Built on top of standard Python tools (pip, venv, requirements.txt), PyMin enhances rather than replaces your familiar workflow. It seamlessly integrates with existing Python development practices, ensuring 100% compatibility with standard tools while providing enhanced functionality and better user experience.

A CLI tool for PyPI package management, providing package name validation, virtual environment management, and project information display with rich output formatting.

#### Demo
![Demo](https://raw.githubusercontent.com/TaiwanBigdata/pymin/main/docs/images/demo.gif?raw=true)

#### Environment Information
![Environment Information](https://raw.githubusercontent.com/TaiwanBigdata/pymin/main/docs/images/env_info.png?raw=true)


# Features

## Core Features

1. Environment Management
   - Virtual environment creation and management (`pm venv`/`pm env`)
   - One-command environment switching (`pm activate`/`pm deactivate`)
   - Comprehensive environment information display (`pm info`)
   - Automatic dependency installation and removal from requirements.txt
   - Cross-platform compatibility

2. Package Management
   - Smart dependency visualization with tree structure (`pm list -t`)
   - Efficient package installation and version management:
     * Add new packages with version control
     * Update existing packages to specific versions
     * Support for both requirements.txt and pyproject.toml
   - Intelligent package removal with dependency cleanup (`pm rm`)
   - Comprehensive package inconsistency detection and auto-fix (`pm fix`):
     * Version mismatches (≠)
     * Missing packages (✗)
     * Redundant dependencies (⚠)
     * Unlisted installed packages (△)
   - Dual dependency management support:
     * Smart requirements.txt management
     * pyproject.toml integration with PEP 621 compliance
     * Synchronized dependency tracking across both files
     * Case-sensitive package name handling
     * Automatic version normalization
   - Bulk package operations support
   - One-command package updates (`pm update`/`pm up`)
   - Version conflict detection and resolution
   - Clear visual indicators for package status

3. PyPI Integration
   - Package name availability check (`pm check`)
   - Similar package name search with threshold control (`pm search -t`)
   - One-command package publishing (`pm release`)
   - Test PyPI support for pre-release testing (`pm release --test`)
   - Secure credential management


# Installation

## Quick Start

Install via pipx:
```bash
$ pipx install pymin
```

### System Requirements
| Component | Requirement                |
|-----------|----------------------------|
| Python    | >=3.8 |
| OS        | Platform independent       |


# Usage

## Command Interface

PyMin provides a streamlined command interface with intuitive aliases:

| Command | Description                      |
|---------|----------------------------------|
| `pm`    | Main command (recommended)       |
| `pymin` | Alternative full name            |

### Available Commands

#### Environment Management
| Command      | Description                                | Alias/Options   |
|--------------|--------------------------------------------|-----------------|
| `info`       | Show environment information               |                 |
| `venv`       | Create a virtual environment               | `env`, -y: auto-confirm |
| `activate`   | Activate the virtual environment           | `on`            |
| `deactivate` | Deactivate current virtual environment     | `off`           |

#### Package Management
Both `add` and `remove` commands support multiple packages in one operation
`add` supports version specification using `package==version` format
| Command    | Description                                | Alias/Options          |
|------------|--------------------------------------------|------------------------|
| `list`     | List installed packages                    | `ls`, -a: all, -t: tree      |
| `add`      | Add or Update packages                     | -p: use pyproject.toml |
| `remove`   | Remove packages from requirements.txt      | `rm`                   |
| `update`   | Update all packages to latest versions     | `up`, -y: auto-confirm |
| `fix`      | Fix package inconsistencies                | -p: use pyproject.toml, -y: auto-confirm |

The `fix` command automatically resolves all package inconsistencies:
- Installs missing packages (✗)
- Updates packages to match required versions (≠)
- Removes redundant packages from requirements.txt/pyproject.toml (⚠)
- Adds unlisted installed packages to requirements.txt/pyproject.toml (△)

#### PyPI Integration
| Command    | Description                                | Alias/Options       |
|------------|--------------------------------------------|---------------------|
| `check`    | Check package name availability            |                     |
| `search`   | Search for similar package names           | -t: threshold       |
| `release`  | Build and publish package to PyPI          | --test: Test PyPI   |

### Command Examples

#### Environment Management
```bash
# Show environment info
$ pm info

# Create and manage virtual environment
$ pm venv          # Create with default name 'env'
$ pm venv my_env   # Create with custom name
$ pm venv -y       # Create without confirmation
$ pm env           # Alias for venv

# Activate/Deactivate
$ pm activate      # or pm on
$ pm deactivate    # or pm off
```

#### Package Management
```bash
# Add packages
$ pm add fastapi                # Add to requirements.txt
$ pm add fastapi -p             # Add to pyproject.toml
$ pm add fastapi==0.100.0       # Add or Update to specific version
$ pm add fastapi sqlalchemy     # Multiple packages


# Remove packages
$ pm rm fastapi

# List packages
$ pm list                       # Show main packages
$ pm list -a                    # Show all packages
$ pm list -t                    # Show dependency tree

# Update and fix
$ pm update                     # Update all packages
$ pm update -y                  # Update without confirmation
$ pm fix                        # Fix based on requirements.txt (default)
$ pm fix -p                     # Fix based on pyproject.toml
$ pm fix -y                     # Fix without confirmation
$ pm fix -p -y                  # Fix based on pyproject.toml without confirmation
```

#### PyPI Integration
```bash
# Check package name
$ pm check my-package-name

# Search similar names
$ pm search fastapi           # Default similarity (80%)
$ pm search fastapi -t 0.85   # Custom threshold

# Publish package
$ pm release                  # Publish to PyPI
$ pm release --test           # Publish to Test PyPI
```


---
> This document was automatically generated by [ReadGen](https://github.com/TaiwanBigdata/readgen).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pymin",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "pypi, package-validation, package-search, package-check, package-release, cli, virtual-environment, dependency-management, development-tools, package-management, requirements, project-management",
    "author": null,
    "author_email": "Albert Liu <dreamerhyde@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/5b/bd/8cb91ac238af5ea4f82ac2d8513af2659983e6e4d20cd6544c38423c385e/pymin-0.0.18.tar.gz",
    "platform": null,
    "description": "# PyMin\n\n### pymin (0.0.18)\n\nPyMin embodies Python's minimalist philosophy: a focused tool that does one thing exceptionally well. The name reflects our commitment to minimalism - minimal configuration, minimal complexity, but maximum effectiveness in Python development workflow.\n\nJust as Python emphasizes readability and simplicity, PyMin provides a clean, intuitive interface for package management and development environment setup. No unnecessary features, no complex configurations - just straightforward, reliable development tools.\n\nThe name \"PyMin\" carries dual meanings:\n\n**In English: \"Py\" (Python) + \"Min\" (Minimal/Minimalist)**\n- Represents our commitment to minimalist design and focused functionality\n- Follows Python's \"Simple is better than complex\" philosophy\n\n**In Taiwanese: \"\u6b79\u547d\" (Ph\u00e1i\u207f-mi\u0101)**\n- A humorous reference to the common challenges in Python development\n- Reflects developers' daily struggles with environment setup and package management\n- Turns development pain points into a playful and helpful tool\n\nThis duality in naming captures both our design philosophy and the real-world problems we're solving, while adding a touch of Taiwanese developer humor to the Python ecosystem.\n\nBuilt on top of standard Python tools (pip, venv, requirements.txt), PyMin enhances rather than replaces your familiar workflow. It seamlessly integrates with existing Python development practices, ensuring 100% compatibility with standard tools while providing enhanced functionality and better user experience.\n\nA CLI tool for PyPI package management, providing package name validation, virtual environment management, and project information display with rich output formatting.\n\n#### Demo\n![Demo](https://raw.githubusercontent.com/TaiwanBigdata/pymin/main/docs/images/demo.gif?raw=true)\n\n#### Environment Information\n![Environment Information](https://raw.githubusercontent.com/TaiwanBigdata/pymin/main/docs/images/env_info.png?raw=true)\n\n\n# Features\n\n## Core Features\n\n1. Environment Management\n   - Virtual environment creation and management (`pm venv`/`pm env`)\n   - One-command environment switching (`pm activate`/`pm deactivate`)\n   - Comprehensive environment information display (`pm info`)\n   - Automatic dependency installation and removal from requirements.txt\n   - Cross-platform compatibility\n\n2. Package Management\n   - Smart dependency visualization with tree structure (`pm list -t`)\n   - Efficient package installation and version management:\n     * Add new packages with version control\n     * Update existing packages to specific versions\n     * Support for both requirements.txt and pyproject.toml\n   - Intelligent package removal with dependency cleanup (`pm rm`)\n   - Comprehensive package inconsistency detection and auto-fix (`pm fix`):\n     * Version mismatches (\u2260)\n     * Missing packages (\u2717)\n     * Redundant dependencies (\u26a0)\n     * Unlisted installed packages (\u25b3)\n   - Dual dependency management support:\n     * Smart requirements.txt management\n     * pyproject.toml integration with PEP 621 compliance\n     * Synchronized dependency tracking across both files\n     * Case-sensitive package name handling\n     * Automatic version normalization\n   - Bulk package operations support\n   - One-command package updates (`pm update`/`pm up`)\n   - Version conflict detection and resolution\n   - Clear visual indicators for package status\n\n3. PyPI Integration\n   - Package name availability check (`pm check`)\n   - Similar package name search with threshold control (`pm search -t`)\n   - One-command package publishing (`pm release`)\n   - Test PyPI support for pre-release testing (`pm release --test`)\n   - Secure credential management\n\n\n# Installation\n\n## Quick Start\n\nInstall via pipx:\n```bash\n$ pipx install pymin\n```\n\n### System Requirements\n| Component | Requirement                |\n|-----------|----------------------------|\n| Python    | >=3.8 |\n| OS        | Platform independent       |\n\n\n# Usage\n\n## Command Interface\n\nPyMin provides a streamlined command interface with intuitive aliases:\n\n| Command | Description                      |\n|---------|----------------------------------|\n| `pm`    | Main command (recommended)       |\n| `pymin` | Alternative full name            |\n\n### Available Commands\n\n#### Environment Management\n| Command      | Description                                | Alias/Options   |\n|--------------|--------------------------------------------|-----------------|\n| `info`       | Show environment information               |                 |\n| `venv`       | Create a virtual environment               | `env`, -y: auto-confirm |\n| `activate`   | Activate the virtual environment           | `on`            |\n| `deactivate` | Deactivate current virtual environment     | `off`           |\n\n#### Package Management\nBoth `add` and `remove` commands support multiple packages in one operation\n`add` supports version specification using `package==version` format\n| Command    | Description                                | Alias/Options          |\n|------------|--------------------------------------------|------------------------|\n| `list`     | List installed packages                    | `ls`, -a: all, -t: tree      |\n| `add`      | Add or Update packages                     | -p: use pyproject.toml |\n| `remove`   | Remove packages from requirements.txt      | `rm`                   |\n| `update`   | Update all packages to latest versions     | `up`, -y: auto-confirm |\n| `fix`      | Fix package inconsistencies                | -p: use pyproject.toml, -y: auto-confirm |\n\nThe `fix` command automatically resolves all package inconsistencies:\n- Installs missing packages (\u2717)\n- Updates packages to match required versions (\u2260)\n- Removes redundant packages from requirements.txt/pyproject.toml (\u26a0)\n- Adds unlisted installed packages to requirements.txt/pyproject.toml (\u25b3)\n\n#### PyPI Integration\n| Command    | Description                                | Alias/Options       |\n|------------|--------------------------------------------|---------------------|\n| `check`    | Check package name availability            |                     |\n| `search`   | Search for similar package names           | -t: threshold       |\n| `release`  | Build and publish package to PyPI          | --test: Test PyPI   |\n\n### Command Examples\n\n#### Environment Management\n```bash\n# Show environment info\n$ pm info\n\n# Create and manage virtual environment\n$ pm venv          # Create with default name 'env'\n$ pm venv my_env   # Create with custom name\n$ pm venv -y       # Create without confirmation\n$ pm env           # Alias for venv\n\n# Activate/Deactivate\n$ pm activate      # or pm on\n$ pm deactivate    # or pm off\n```\n\n#### Package Management\n```bash\n# Add packages\n$ pm add fastapi                # Add to requirements.txt\n$ pm add fastapi -p             # Add to pyproject.toml\n$ pm add fastapi==0.100.0       # Add or Update to specific version\n$ pm add fastapi sqlalchemy     # Multiple packages\n\n\n# Remove packages\n$ pm rm fastapi\n\n# List packages\n$ pm list                       # Show main packages\n$ pm list -a                    # Show all packages\n$ pm list -t                    # Show dependency tree\n\n# Update and fix\n$ pm update                     # Update all packages\n$ pm update -y                  # Update without confirmation\n$ pm fix                        # Fix based on requirements.txt (default)\n$ pm fix -p                     # Fix based on pyproject.toml\n$ pm fix -y                     # Fix without confirmation\n$ pm fix -p -y                  # Fix based on pyproject.toml without confirmation\n```\n\n#### PyPI Integration\n```bash\n# Check package name\n$ pm check my-package-name\n\n# Search similar names\n$ pm search fastapi           # Default similarity (80%)\n$ pm search fastapi -t 0.85   # Custom threshold\n\n# Publish package\n$ pm release                  # Publish to PyPI\n$ pm release --test           # Publish to Test PyPI\n```\n\n\n---\n> This document was automatically generated by [ReadGen](https://github.com/TaiwanBigdata/readgen).\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A minimalist Python CLI tool for development workflow. Named after Taiwanese '\u6b79\u547d' (Ph\u00e1i\u207f-mi\u0101), it turns common development pain points into simple solutions, providing package name validation, virtual environment management, and project information display with minimal configuration.",
    "version": "0.0.18",
    "project_urls": {
        "Homepage": "https://github.com/TaiwanBigdata/pymin",
        "Repository": "https://github.com/TaiwanBigdata/pymin.git"
    },
    "split_keywords": [
        "pypi",
        " package-validation",
        " package-search",
        " package-check",
        " package-release",
        " cli",
        " virtual-environment",
        " dependency-management",
        " development-tools",
        " package-management",
        " requirements",
        " project-management"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e6858a7096f61c686005b3adc90844de6ac0bd587ed702909a8126c4641fe289",
                "md5": "ccd6a5c2b89d30ec4cd49c7a09d2a18b",
                "sha256": "0b216e1a01b30ee4319063d02509bb891200e28061bbf02baf35bdb86004aa5e"
            },
            "downloads": -1,
            "filename": "pymin-0.0.18-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ccd6a5c2b89d30ec4cd49c7a09d2a18b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 78823,
            "upload_time": "2025-02-16T17:26:45",
            "upload_time_iso_8601": "2025-02-16T17:26:45.136772Z",
            "url": "https://files.pythonhosted.org/packages/e6/85/8a7096f61c686005b3adc90844de6ac0bd587ed702909a8126c4641fe289/pymin-0.0.18-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5bbd8cb91ac238af5ea4f82ac2d8513af2659983e6e4d20cd6544c38423c385e",
                "md5": "237ceece504d373298d67e4461e658ef",
                "sha256": "4a317282fdfe779a07ae13c4d732516257d26d8b998e169d9c5444ec769a4006"
            },
            "downloads": -1,
            "filename": "pymin-0.0.18.tar.gz",
            "has_sig": false,
            "md5_digest": "237ceece504d373298d67e4461e658ef",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 68795,
            "upload_time": "2025-02-16T17:26:47",
            "upload_time_iso_8601": "2025-02-16T17:26:47.125405Z",
            "url": "https://files.pythonhosted.org/packages/5b/bd/8cb91ac238af5ea4f82ac2d8513af2659983e6e4d20cd6544c38423c385e/pymin-0.0.18.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-16 17:26:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "TaiwanBigdata",
    "github_project": "pymin",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pymin"
}
        
Elapsed time: 1.43596s