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-toolsFor 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 directoryThe 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 portProduction build process
pyscript build # Basic build
pyscript build --no-optimize # Skip optimizationTest runner with watch mode
pyscript test # Run tests once
pyscript test -w # Watch modeCode analysis and best practices
pyscript lint # Check code
pyscript lint --fix # Auto-fix issuesThis project is under active development. Feel free to contribute by implementing any of the planned features or suggesting new ones.