OneGov Docs
The Design of OneGov Cloud
OneGov Org - OneGov Cloud’s Flagship Application
Feriennet - A Complicated Org
Write Forms with Formcode Syntax
OneGov Agency API
OneGov Election Day API
OneGov Cloud Modules
API Reference
gis
pdf
pas
fsi
org
pay
api
core
file
form
page
user
chat
town6
gever
quill
event
qrcode
Submodules
qrcode.model
agency
ticket
search
people
notice
server
shared
gazette
activity
intranet
feriennet
directory
recipient
async_http
winterthur
onboarding
websockets
newsletter
foundation
swissvotes
reservation
foundation6
election_day
stepsequence
landsgemeinde
translator_directory
OneGov Docs
API Reference
qrcode
qrcode.model
View page source
qrcode.model
Classes
QrCode
Generates QR Codes
Module Contents
class
qrcode.model.
QrCode
(
payload
:
str
|
bytes
,
border
:
int
|
None
=
None
,
box_size
:
int
|
None
=
None
,
fill_color
:
str
|
None
=
None
,
back_color
:
str
|
None
=
None
,
img_format
:
str
|
None
=
None
,
encoding
:
Literal
[
'base64'
]
|
None
=
None
)
[source]
Generates QR Codes
_border
=
4
[source]
_box_size
=
10
[source]
_fill_color
=
'black'
[source]
_back_color
=
'white'
[source]
_format
=
'png'
[source]
_encoding
=
None
[source]
payload
[source]
border
[source]
box_size
[source]
fill_color
[source]
back_color
[source]
img_format
[source]
encoding
[source]
classmethod
from_payload
(
payload
:
str
|
bytes
)
→
io.BytesIO
[source]
property
image
:
io.BytesIO
[source]
Create an image from the payload
property
encoded_image
:
bytes
[source]
property
content_type
:
str
[source]