-
Notifications
You must be signed in to change notification settings - Fork 0
API Reference
GamingOP69 edited this page Apr 30, 2025
·
1 revision
-
error_correction: Error correction level ('L', 'M', 'Q', 'H') -
box_size: Size of each QR code module in pixels -
border: Border size in modules -
version: QR code version (1-40), or None for auto
add_data(data, data_type=None)generate(file_path, **kwargs)
-
LOW: 7% data recovery -
MEDIUM: 15% data recovery -
QUARTILE: 25% data recovery -
HIGH: 30% data recovery
Base exception class for all QRCodeX errors.
- Data capacity exceeded
- Invalid file format
- Unsupported data type
- Invalid error correction level
- Always check data size limits
- Validate input data types
- Use try-except blocks for error handling
- Fork the repository
- Clone your fork
- Set up development environment
- Create a feature branch
- Use Black for formatting
- Follow PEP 8 guidelines
- Add type hints
- Write docstrings
- Write unit tests for new features
- Ensure all tests pass
- Maintain code coverage