Skip to content

pythonanywhere-clis v1.0.0

Choose a tag to compare

@RuoXi0324 RuoXi0324 released this 21 Jun 13:55

πŸŽ‰ pythonanywhere-clis v1.0.0

CLI tool for automating PythonAnywhere deployments. Local project β†’ Live website, one step.

✨ Features

Account Management

  • pa init β€” Configure account with interactive/CLI modes
  • pa register β€” Register a new PythonAnywhere account
  • pa account list|switch|remove β€” Multi-account management
  • pa account token β€” Auto-fetch/create API token
  • pa account extend β€” Extend free tier expiry
  • pa account login β€” Store password for crawler operations

File Management

  • pa files ls|upload|download|rm β€” Full remote file management
  • pa files share|unshare|share-status β€” File sharing control

Console Management

  • pa console list|create|send|kill|activate|get-or-create

Web App Management

  • pa webapp create|config|static|reload|delete|enable|disable|logs|ssl|hits
  • pa webapp reload-crawler β€” Reload via browser automation

Deployment

  • pa deploy β€” One-click deployment with progress bar
  • pa deploy --dry-run β€” Preview before executing

System & Tasks

  • pa status cpu|disk β€” System resource monitoring
  • pa tasks list|create|delete|enable|disable β€” Scheduled tasks
  • pa always-on list|create|delete β€” Always-on tasks

πŸ”§ Technical

  • Dual auth: Token (API) + Session (crawler) for full coverage
  • Custom exception hierarchy for structured error handling
  • Encrypted password storage
  • Config validation with clear error messages
  • 412 tests with 90% coverage
  • Progress bar for file operations
  • Git Bash (MSYS2) path auto-correction

πŸ“¦ Installation

pip install pythonanywhere-clis

πŸ“– Documentation