pyqrcode

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ErrorCorrectL = 1
	ErrorCorrectM = 0
	ErrorCorrectQ = 3
	ErrorCorrectH = 2
)

Error correction levels of qrcode.constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code struct {
	// contains filtered or unexported fields
}

QR symbol built like qrcode.QRCode with box size 1, the fitted version and the best mask

func Make

func Make(data string, errorCorrection, border int) (*Code, error)

Fits data into the smallest version of the level and applies the best mask like qrcode add_data and make

func (*Code) Matrix

func (c *Code) Matrix() [][]bool

Module matrix with the border modules around it, the get_matrix of qrcode

func (*Code) PrintASCII

func (c *Code) PrintASCII(invert bool) string

Half block art of the symbol with its border, the output of print_ascii without a tty

type DataOverflowError

type DataOverflowError struct{ Msg string }

Error a data set too large for the chosen version raises, the text qrcode prints

func (*DataOverflowError) Error

func (e *DataOverflowError) Error() string

type VersionError

type VersionError struct{ Version int }

ValueError of a version outside 1 to 40, what best_fit raises once the data needs more than version 40

func (*VersionError) Error

func (e *VersionError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL