A comprehensive autonomous platform for industrial automation, CRM, and DevSecOps with AI-powered agents.
INSA Automation Corp provides an integrated platform for Oil & Gas and industrial automation companies, combining:
- AI-powered CRM with Bitrix24 integration
- IEC 62443 compliance automation
- Autonomous agent orchestration
- Industrial cybersecurity monitoring
- Multi-platform MCP server architecture
This project maintains strict code quality standards enforced through automated CI/CD checks:
| Tool | Purpose | Configuration |
|---|---|---|
| Ruff | Fast linting | pyproject.toml |
| Pylint | Deep analysis | pyproject.toml |
| Black | Code formatting | 100 char line-length |
| isort | Import sorting | Black-compatible profile |
| mypy | Type checking | Python 3.10+ types |
| pytest | Unit/integration tests | ≥70% coverage |
| radon | Complexity metrics | CC < 10 threshold |
| Bandit | Security scanning | Automated CI/CD |
View Documentation: .github/CODE_QUALITY.md
Run Locally:
pip install -e ".[dev]"
black . && isort . && ruff check . --fix
pytest --cov=automationA comprehensive Python script for managing and interacting with the HackyPi USB device.
HackyPi is a compact USB device powered by the RP2040 microcontroller that can simulate keyboard and mouse inputs, display graphics, and perform various automation tasks. This control script provides an easy way to manage your HackyPi device.
- Device Detection: Automatically detect when HackyPi is connected
- Script Management: Upload and manage scripts on the device
- Custom Script Creation: Generate scripts for keyboard, mouse, display, and automation tasks
- Backup & Restore: Backup device contents and restore from backup
- Library Management: Automatically copy required libraries to the device
- Python 3.6+
- HackyPi device with CircuitPython firmware
- HackyPi-Software repository cloned locally
- Clone the HackyPi-Software repository:
git clone https://github.com/sbcshop/HackyPi-Software.git- Make the control script executable:
chmod +x hackypi_control_script.pyDetect HackyPi device:
python3 hackypi_control_script.py --detectList available example scripts:
python3 hackypi_control_script.py --list-scriptsUpload a script to HackyPi:
python3 hackypi_control_script.py --upload path/to/script.pyCreate custom scripts:
# Create keyboard automation script
python3 hackypi_control_script.py --create keyboard --output my_keyboard_script.py
# Create mouse automation script
python3 hackypi_control_script.py --create mouse --output my_mouse_script.py
# Create display script
python3 hackypi_control_script.py --create display --output my_display_script.py
# Create automation script
python3 hackypi_control_script.py --create automation --output my_automation_script.pyBackup and restore device:
# Backup device contents
python3 hackypi_control_script.py --backup
# Restore device from backup
python3 hackypi_control_script.py --restore- Connect HackyPi device to your computer via USB
- Detect the device:
python3 hackypi_control_script.py --detect
- Create a custom script:
python3 hackypi_control_script.py --create keyboard --output my_script.py
- Upload the script:
python3 hackypi_control_script.py --upload my_script.py
- Disconnect and reconnect HackyPi to execute the script
- Simulate keyboard inputs
- Type text, press keys, key combinations
- Useful for automation and macros
- Control mouse movement
- Click, drag, scroll
- Random movement patterns
- Show text and graphics on HackyPi's display
- Custom messages and animations
- Complex multi-step automation
- Combine keyboard and mouse actions
- System automation tasks
If your HackyPi doesn't have CircuitPython installed:
- Press and hold the BOOT button
- Connect to USB while holding the button
- Copy
firmware.uf2from HackyPi-Software to the RPI-RP2 drive - Wait for installation to complete
- Scripts must be saved as
code.pyon the device to run automatically - Always test scripts in a safe environment first
- Some actions may require administrator privileges
- The device needs to be reconnected after uploading scripts
Device not detected:
- Ensure HackyPi is properly connected
- Check if CircuitPython is installed
- Try different USB ports
Script not running:
- Verify script is saved as
code.py - Check for syntax errors in the script
- Ensure required libraries are copied to device
Permission errors:
- Run script with appropriate permissions
- Check USB device permissions
- Only use HackyPi on systems you own or have permission to test
- Be aware that some actions may trigger security software
- Use responsibly and ethically
This script is provided as-is for educational and testing purposes.