A comprehensive toolkit for PyScript development, providing commands for project initialization, development server, production builds, testing, and code analysis.
From PyPI (recommended):
pip install pyscript-tools
For development:
git clone https://github.com/yourusername/pyscript-tools
cd pyscript-tools
pip install -e .
Initialize a new PyScript project. This command is fully implemented and:
- Creates a new project directory (or uses current directory with ".")
- Sets up initial project structure
- Copies template files
Example:
pyscript init my-app # Create in new directory
pyscript init . # Initialize in current directory
The following commands are currently placeholders and will be implemented in future releases:
Development server with hot reload
pyscript serve # Default port 8000
pyscript serve -p 3000 # Custom port
Production build process
pyscript build # Basic build
pyscript build --no-optimize # Skip optimization
Test runner with watch mode
pyscript test # Run tests once
pyscript test -w # Watch mode
Code analysis and best practices
pyscript lint # Check code
pyscript lint --fix # Auto-fix issues
This project is under active development. Feel free to contribute by implementing any of the planned features or suggesting new ones.