New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pymin

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pymin

A 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.

  • 0.0.12
  • PyPI
  • Socket score

Maintainers
1

PyMin

pymin (0.0.12)

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

Environment Information

Environment Information

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 with version control (pm add)
    • 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 (△)
    • Smart requirements.txt management:
      • Only main packages are listed
      • Dependencies are automatically managed
      • Prevents redundant dependency declarations
    • 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:

$ pipx install pymin

System Requirements

ComponentRequirement
Python>=3.8
OSPlatform independent

Usage

Command Interface

PyMin provides a streamlined command interface with intuitive aliases:

CommandDescription
pmMain command (recommended)
pyminAlternative full name

Available Commands

Environment Management
CommandDescriptionAlias/Options
infoShow environment information
venvCreate a virtual environmentenv
activateActivate the virtual environmenton
deactivateDeactivate current virtual environmentoff
Package Management

Both add and remove commands support multiple packages in one operation add supports version specification using package==version format

CommandDescriptionAlias/Options
listList installed packages-a: all, -t: tree
addAdd and install packages
removeRemove packages from requirements.txtrm, -y: auto-confirm
updateUpdate all packages to latest versionsup, -y: auto-confirm
fixFix package inconsistencies-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 (⚠)
  • Adds unlisted installed packages to requirements.txt (△)
PyPI Integration
CommandDescriptionAlias/Options
checkCheck package name availability
searchSearch for similar package names-t: threshold
releaseBuild and publish package to PyPI--test: Test PyPI

Command Examples

Environment Management
# 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 env           # Alias for venv

# Activate/Deactivate
$ pm activate      # or pm on
$ pm deactivate    # or pm off
Package Management
# Add packages
$ pm add fastapi
$ pm add fastapi==0.100.0    # Specific version
$ pm add fastapi sqlalchemy  # Multiple packages

# Remove packages
$ pm rm fastapi
$ pm rm -y fastapi           # Auto confirm

# 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 fix                     # Fix requirements.txt
PyPI Integration
# 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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc